Salome HOME
More business logic has been moved from BO to services. ServiceLocator is created...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / ScenarioService.java
index df872e765594a8e18aea37f1d18fe2aec81701a2..8c55cfbfcb0eecba95963dc7af2674c22eed69da 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * Company         EURIWARE
+ * Company         OPEN CASCADE
  * Application     SIMAN
  * File            $Id$ 
  * Creation date   06.10.2012
@@ -12,6 +12,7 @@ package org.splat.service;
 import org.splat.dal.bo.kernel.User;
 import org.splat.dal.bo.som.KnowledgeElement;
 import org.splat.dal.bo.som.Scenario;
+import org.splat.dal.bo.som.Study;
 import org.splat.kernel.InvalidPropertyException;
 import org.splat.kernel.MissedPropertyException;
 import org.splat.kernel.MultiplyDefinedException;
@@ -24,6 +25,25 @@ import org.splat.som.Step;
  */
 public interface ScenarioService {
 
+       /**
+        * Add a new scenario to the study.
+        * 
+        * @param aStudy
+        *            the study
+        * @param sprop
+        *            scenario properties
+        * @return the added scenario
+        * @throws MissedPropertyException
+        *             if a mandatory property is missed
+        * @throws InvalidPropertyException
+        *             if some property doesn't exist
+        * @throws MultiplyDefinedException
+        *             if some property occurs several times
+        */
+       public Scenario addScenario(Study aStudy, Scenario.Properties sprop)
+                       throws MissedPropertyException, InvalidPropertyException,
+                       MultiplyDefinedException;
+
        /**
         * Add a new knowledge element to the scenario.
         *