Salome HOME
871a0b9aa1d8937b60d1b9e1b702e91ec204bedf
[tools/siman.git] / StepService.java
1 /*****************************************************************************
2  * Company         EURIWARE
3  * Application     SIMAN
4  * File            $Id$ 
5  * Creation date   06.10.2012
6  * @author         $Author$
7  * @version        $Revision$
8  *****************************************************************************/
9
10 package org.splat.service;
11
12 import java.io.IOException;
13
14 import org.splat.dal.bo.som.Document;
15 import org.splat.dal.bo.som.Publication;
16 import org.splat.dal.bo.som.SimulationContext;
17 import org.splat.kernel.InvalidPropertyException;
18 import org.splat.kernel.MismatchException;
19 import org.splat.kernel.MissedPropertyException;
20 import org.splat.kernel.MultiplyDefinedException;
21 import org.splat.kernel.NotApplicableException;
22 import org.splat.som.Step;
23
24 /**
25  * @author RKV
26  * 
27  */
28 public interface StepService {
29
30         public Publication createDocument(Step aStep, Document.Properties dprop)
31                         throws MissedPropertyException, InvalidPropertyException,
32                         MultiplyDefinedException, IOException;
33
34         public Publication assignDocument(Step aStep, Document.Properties dprop)
35                         throws MissedPropertyException, InvalidPropertyException,
36                         NotApplicableException;
37
38         public Publication versionDocument(Step aStep, Publication base,
39                         Document.Properties dprop) throws MissedPropertyException,
40                         InvalidPropertyException, MultiplyDefinedException, IOException,
41                         MismatchException;
42
43         public SimulationContext addSimulationContext(Step aStep,
44                         SimulationContext.Properties dprop) throws MissedPropertyException,
45                         InvalidPropertyException, MultiplyDefinedException,
46                         RuntimeException;
47
48         /**
49          * @param firstStep
50          * @param context
51          * @return
52          */
53         public SimulationContext addSimulationContext(Step firstStep,
54                         SimulationContext context);
55
56         public boolean removeSimulationContext(Step aStep, SimulationContext context);
57 }