]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman-Common/src/org/splat/service/ScenarioService.java
Salome HOME
Creation of a new study is fixed. Database.getSessoin is not used now during creation...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / ScenarioService.java
index 44bdc4328b84c60f54e0fe3df5c7e54b93b121de..498f6eb91369d129e001847d2e559f09a97c1b1c 100644 (file)
@@ -17,18 +17,54 @@ import org.splat.kernel.MultiplyDefinedException;
 import org.splat.som.Step;
 
 /**
- * @author RKV
- * 
+ * Scenario service interface.
+ * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
  */
 public interface ScenarioService {
 
+       /**
+        * Add a new knowledge element to the scenario.
+        * 
+        * @param aScenario
+        *            the scenario
+        * @param kprop
+        *            knowledge element properties
+        * @return the created knowledge element
+        * @throws MissedPropertyException
+        *             if a mandatory property is missed
+        * @throws InvalidPropertyException
+        *             if some property doesn't exist
+        * @throws MultiplyDefinedException
+        *             if some property is defined several times
+        */
        public KnowledgeElement addKnowledgeElement(Scenario aScenario,
                        KnowledgeElement.Properties kprop) throws MissedPropertyException,
                        InvalidPropertyException, MultiplyDefinedException;
 
+       /**
+        * Check in the scenario.
+        * 
+        * @param aScenario
+        *            the scenario to check in
+        */
        public void checkin(Scenario aScenario);
 
+       /**
+        * Copy contents from other scenario up to its given step into the given scenario.
+        * 
+        * @param scenario
+        *            the target scenario
+        * @param lastep
+        *            the last processed step of the source scenario
+        */
        public void copyContentsUpTo(Scenario scenario, Step lastep);
 
+       /**
+        * Check if the scenario is empty, i.d. no one of its steps doesn't contain any knowledge elements or documents.
+        * 
+        * @param scenario
+        *            the scenario to check
+        * @return true if the scenario is empty
+        */
        public boolean isEmpty(Scenario scenario);
 }