Salome HOME
The draft of the "Copy from existing study" action is added. The YACS step is introdu...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / technical / StepsConfigService.java
1 /*****************************************************************************
2  * Company         OPEN CASCADE
3  * Application     SIMAN
4  * File            $Id$ 
5  * Creation date   12.03.2013
6  * @author         $Author$
7  * @version        $Revision$
8  * @copyright      OPEN CASCADE 2012
9  *****************************************************************************/
10
11 package org.splat.service.technical;
12
13 import java.util.List;
14
15 import org.splat.dal.bo.som.ProjectElement;
16
17 /**
18  * Study steps configuration service.
19  * 
20  * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
21  */
22 public interface StepsConfigService {
23
24         /**
25          * Get steps of the given project element (study or scenario).
26          * 
27          * @param level
28          *            the project element (study or scenario)
29          * @return the list of steps
30          */
31         List<ProjectSettingsService.Step> getStepsOf(
32                         Class<? extends ProjectElement> level);
33
34         /**
35          * Check whether the workflow step involves a project element(s) of the given level.
36          * 
37          * @param stepNum
38          *            the step number
39          * @param level
40          *            the project element level
41          * @return true if there are project element's steps of the given level before the given step
42          */
43         public boolean stepInvolves(final int stepNum,
44                         final Class<? extends ProjectElement> level);
45
46         /**
47          * Get the steps.
48          * 
49          * @return the steps
50          */
51         public List<ProjectSettingsService.Step> getSteps();
52
53 }