Interface ExecutionEngineDescriptor
-
- All Known Implementing Classes:
AbstractExecutionEngineDescriptor
@OpenApi public interface ExecutionEngineDescriptorThe descriptor which provides such information as engine's name, engine's icon also can check whether an element can be executed by an engine which is created from this descriptor and can create an engine instance. All execution engines must provide this descriptor and register it toSimulationManager.- See Also:
ExecutionEngine,SimulationManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancanExecute(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)Returntrueif the specifiedelementcan be executed by an engine created from this descriptor, otherwisefalse.com.nomagic.magicdraw.simulation.listener.DurationListenercreateDurationListener(SimulationSession session)Deprecated.ExecutionEnginecreateEngine()Returns the newly created engine instance.java.lang.StringgetEngineName()Returns an engine's name.java.util.List<? extends com.nomagic.magicdraw.simulation.validation.ValidationSuite>getValidationSuite()Deprecated.booleanisFindEngine(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)All executions mostly start with fUMLEngine.
-
-
-
Method Detail
-
getEngineName
@OpenApi java.lang.String getEngineName()
Returns an engine's name. The name of an engine that can be created by this descriptor.- Returns:
- an engine's name.
-
canExecute
@OpenApi boolean canExecute(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
Returntrueif the specifiedelementcan be executed by an engine created from this descriptor, otherwisefalse.- Parameters:
element- an element to be checked.- Returns:
trueif the specifiedelementcan be executed by an engine created from this descriptor, otherwisefalse.
-
createEngine
@OpenApi ExecutionEngine createEngine()
Returns the newly created engine instance. Do not call this method directly, as created engine needs to be initialized.- Returns:
- the newly created engine instance.
-
getValidationSuite
@Deprecated java.util.List<? extends com.nomagic.magicdraw.simulation.validation.ValidationSuite> getValidationSuite()
Deprecated.Return the ValidationSuite of the implementing execution engine.- Returns:
- the ValidationSuite of the implementing execution engine
-
isFindEngine
@OpenApi boolean isFindEngine(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
All executions mostly start with fUMLEngine. If this method returns true, it doesn't use fUMLEngine, but search from engines list.- Parameters:
element- the element being executed.- Returns:
- boolean
-
createDurationListener
@Deprecated com.nomagic.magicdraw.simulation.listener.DurationListener createDurationListener(SimulationSession session)
Deprecated.Return specific DurationListener of an engine created from this descriptor.- Parameters:
session-SimulationSessionthat this duration listener registered to its engine- Returns:
- durationListener DurationListener
-
-