Salome HOME
SimulationContextFacade has been moved into Siman-Common. Import document action...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / SimulationContextTypeService.java
1 /*****************************************************************************
2  * Company         OPEN CASCADE
3  * Application     SIMAN
4  * File            $Id$ 
5  * Creation date   22.10.2012
6  * @author         $Author$
7  * @version        $Revision$
8  * @copyright      OPEN CASCADE 2012
9  *****************************************************************************/
10
11 package org.splat.service;
12
13 import org.splat.dal.bo.som.SimulationContextType;
14 import org.splat.kernel.InvalidPropertyException;
15 import org.splat.service.technical.ProjectSettingsService;
16
17 /**
18  * Simulation context type service interface.
19  * 
20  * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
21  */
22 public interface SimulationContextTypeService {
23
24         /**
25          * Create a simulation context type.
26          * 
27          * @param name
28          *            context type name
29          * @param step
30          *            activity related to this context type
31          * @return the created context type
32          * @throws InvalidPropertyException
33          *             if some property of the type to be created is invalid
34          */
35         public SimulationContextType createType(String name,
36                         ProjectSettingsService.Step step) throws InvalidPropertyException;
37
38         /**
39          * Approve the simulation context type.
40          * 
41          * @param simCtxType
42          *            the type to approve
43          * @return true if approval succeeded
44          */
45         public boolean approve(SimulationContextType simCtxType);
46
47 }