1 /*****************************************************************************
5 * Creation date 22.10.2012
8 * @copyright OPEN CASCADE 2012
9 *****************************************************************************/
11 package org.splat.service;
13 import org.splat.dal.bo.som.SimulationContextType;
14 import org.splat.kernel.InvalidPropertyException;
15 import org.splat.service.technical.ProjectSettingsService;
18 * Simulation context type service interface.
20 * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
22 public interface SimulationContextTypeService {
25 * Create a simulation context type.
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
35 SimulationContextType createType(String name,
36 ProjectSettingsService.Step step) throws InvalidPropertyException;
39 * Approve the simulation context type.
43 * @return true if approval succeeded
45 boolean approve(SimulationContextType simCtxType);