public abstract class CopyOfAbstractSimulator extends AbstractSimulator implements ISimulator
Constructor and Description |
---|
CopyOfAbstractSimulator(Psystem psystem)
Creates a simulator which will simulate the P-system passed as argument
|
Modifier and Type | Method and Description |
---|---|
Configuration |
getCurrentConfig()
Gets the current configuration
|
void |
reset()
Resets the simulator to the initial configuration
|
void |
setCurrentConfig(Configuration currentConfig)
Sets the current configuration of the simulator
|
void |
setPsystem(Psystem psystem)
Sets the simulator P-system
|
boolean |
step()
Makes one step of simulation and generate a new configuration
|
alternateStep, cleanPreviousConfigurations, countAlternatives, getInfoChannel, getPsystem, getTime, getVerbosity, isFinished, isTimed, run, runSteps, runUntilTimeOut, runUntilTimeOutorSteps, setInfoChannel, setTimed, setVerbosity, stepBack, stepsBackAvailable, stopThread, supportsAlternateSteps, supportsStepBack
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
alternateStep, cleanPreviousConfigurations, countAlternatives, getInfoChannel, getPsystem, getTime, getVerbosity, isFinished, isTimed, run, runSteps, runUntilTimeOut, runUntilTimeOutorSteps, setInfoChannel, setTimed, setVerbosity, stepBack, stepsBackAvailable, stopThread, supportsAlternateSteps, supportsStepBack
public CopyOfAbstractSimulator(Psystem psystem)
psystem
- The P system to be simulatedpublic void setPsystem(Psystem psystem)
ISimulator
setPsystem
in interface ISimulator
setPsystem
in class AbstractSimulator
psystem
- the simulator p-systemISimulator.setPsystem(org.gcn.plinguacore.util.psystem.Psystem)
public void reset()
reset
in interface ISimulator
reset
in class AbstractSimulator
public void setCurrentConfig(Configuration currentConfig)
setCurrentConfig
in interface ISimulator
setCurrentConfig
in class AbstractSimulator
currentConfig
- the configuration to be setpublic final boolean step() throws PlinguaCoreException
step
in interface ISimulator
step
in class AbstractSimulator
PlinguaCoreException
- if a semantic error occurspublic final Configuration getCurrentConfig()
getCurrentConfig
in interface ISimulator
getCurrentConfig
in class AbstractSimulator