Interface ExecutionEngineDescriptor
-
- All Known Implementing Classes:
AbstractExecutionEngineDescriptor
@OpenApi public interface ExecutionEngineDescriptor
The 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 Modifier and Type Method Description boolean
canExecute(Element element)
Returntrue
if the specifiedelement
can be executed by an engine created from this descriptor, otherwisefalse
.ExecutionEngine
createEngine()
Returns the newly created engine instance.java.lang.String
getEngineName()
Returns an engine's name.boolean
isFindEngine(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(Element element)
Returntrue
if the specifiedelement
can be executed by an engine created from this descriptor, otherwisefalse
.- Parameters:
element
- an element to be checked.- Returns:
true
if the specifiedelement
can 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.
-
isFindEngine
@OpenApi boolean isFindEngine(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
-
-