public abstract class CreateSimulator
extends java.lang.Object
Constructor and Description |
---|
CreateSimulator(java.lang.String model)
Creates a new instance which creates simulators for the model indicated
by its name
|
Modifier and Type | Method and Description |
---|---|
ISimulator |
createSimulator(boolean stepBackAllowed,
boolean alternativeStepAllowed,
Psystem psystem)
Creates a new simulator.
|
ISimulator |
createSimulator(boolean stepBackAllowed,
boolean alternativeStepAllowed,
java.lang.String simulatorClassId,
Psystem psystem)
Creates a new simulator, which specific classes are identified by an ID.
|
java.lang.String |
getModel()
Gets the model name of the Simulator
|
java.util.Iterator<java.lang.String> |
getSimulatorsIDs()
Gets an iterator on all simulators IDs
|
ISimulatorInfo |
getSimulatorsInfo() |
boolean |
supportsAlternativeStep()
Returns a boolean representing if the default simulator could be created
capable of performing alternative steps
|
boolean |
supportsAlternativeStep(java.lang.String id)
Returns a boolean representing if the simulator related to id could be
created capable of performing alternative steps
|
java.lang.String |
toString() |
public CreateSimulator(java.lang.String model) throws PlinguaCoreException
model
- the name of the model which the simulators created should
simulatePlinguaCoreException
- if any simulator class doesn't match the expected modifierspublic ISimulatorInfo getSimulatorsInfo()
public java.lang.String getModel()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public ISimulator createSimulator(boolean stepBackAllowed, boolean alternativeStepAllowed, java.lang.String simulatorClassId, Psystem psystem) throws java.lang.UnsupportedOperationException, PlinguaCoreException
stepBackAllowed
- if the simulator will allow steps backalternativeStepAllowed
- if the simulator will allow steps backsimulatorClassId
- the ID which identifies the class to simulate the modelpsystem
- the P-system to be simulatedPlinguaCoreException
- if an error occurred during the ISimulator
instantiation processjava.lang.UnsupportedOperationException
- if the simulator instantiation couldn't be committedpublic ISimulator createSimulator(boolean stepBackAllowed, boolean alternativeStepAllowed, Psystem psystem) throws java.lang.UnsupportedOperationException, PlinguaCoreException
stepBackAllowed
- if the simulator will allow steps backalternativeStepAllowed
- if the simulator will allow steps backpsystem
- the P-system to be simulatedPlinguaCoreException
- if an error occurred during the ISimulator
instantiation processjava.lang.UnsupportedOperationException
- if the simulator instantiation couldn't be committedpublic java.util.Iterator<java.lang.String> getSimulatorsIDs()
public boolean supportsAlternativeStep(java.lang.String id)
id
- the simulator identifierpublic boolean supportsAlternativeStep()