Salome HOME
SimulationContextFacade has been moved into Siman-Common. Import document action...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / SimulationContextService.java
index 1cbf05c430dfbaa8a9a0948d39fbc47e6cd99372..e82b810d43dc0e059f2ac5f5668fa7b0613f4d4e 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * Company         EURIWARE
+ * Company         OPEN CASCADE
  * Application     SIMAN
  * File            $Id$ 
  * Creation date   16.10.2012
 package org.splat.service;
 
 import java.util.List;
+import java.util.Vector;
 
+import org.splat.dal.bo.som.ProgressState;
 import org.splat.dal.bo.som.SimulationContext;
 import org.splat.dal.bo.som.SimulationContextType;
 import org.splat.kernel.InvalidPropertyException;
+import org.splat.service.dto.SimulationContextFacade;
 import org.splat.service.technical.ProjectSettingsService;
 
 /**
@@ -24,6 +27,18 @@ import org.splat.service.technical.ProjectSettingsService;
  */
 public interface SimulationContextService {
 
+       /**
+        * Get simulation contexts which are currently in the given state.
+        * 
+        * @param aState
+        *            the progress state to filter contexts
+        * @return the list of found contexts as a vector of SimulationContextFacade
+        * @throws InvalidPropertyException
+        *             if the given state is invalid
+        */
+       public Vector<SimulationContextFacade> getSimulationContextsInState(
+                       ProgressState aState) throws InvalidPropertyException;
+
        /**
         * Get simulation context by its id.
         * 
@@ -55,20 +70,6 @@ public interface SimulationContextService {
        public List<SimulationContext> selectSimulationContextsWhere(
                        SimulationContext.Properties cprop);
 
-       /**
-        * Create a simulation context type.
-        * 
-        * @param name
-        *            context type name
-        * @param step
-        *            activity related to this context type
-        * @return the created context type
-        * @throws InvalidPropertyException
-        *             if some property of the type to be created is invalid
-        */
-       public SimulationContextType createType(String name,
-                       ProjectSettingsService.Step step) throws InvalidPropertyException;
-
        /**
         * Get all simulation context types.
         * 
@@ -88,7 +89,9 @@ public interface SimulationContextService {
 
        /**
         * Get simulation context types by example.
-        * @param sprop the example
+        * 
+        * @param sprop
+        *            the example
         * @return list of found context types
         */
        public List<SimulationContextType> selectTypesWhere(
@@ -96,7 +99,9 @@ public interface SimulationContextService {
 
        /**
         * Get a simulation context type by its name.
-        * @param name name of the context type
+        * 
+        * @param name
+        *            name of the context type
         * @return found context type
         */
        public SimulationContextType selectType(String name);
@@ -133,4 +138,10 @@ public interface SimulationContextService {
         */
        List<SimulationContext> getSimulationContextList();
 
+       /**
+        * @param simCtxType
+        * @return
+        */
+       public ProjectSettingsService.Step getAttachedStep(
+                       SimulationContextType simCtxType);
 }