public abstract class AbstractDnd2Sim extends AbstractSimulator
Constructor and Description |
---|
AbstractDnd2Sim(Psystem psystem,
boolean multiThread) |
Modifier and Type | Method and Description |
---|---|
int |
getK() |
boolean |
isMultiThread() |
void |
reset()
Resets the simulator to the initial configuration
|
void |
setCurrentConfig(Configuration configuration)
Sets the current configuration of the simulator
|
void |
setK(int k) |
void |
setPsystem(Psystem psystem)
Sets the simulator P-system
|
boolean |
step()
Takes one step of simulation and generate a new configuration
|
void |
stopThreads() |
alternateStep, cleanPreviousConfigurations, countAlternatives, getCurrentConfig, getInfoChannel, getPsystem, getTime, getVerbosity, isFinished, isTimed, run, runSteps, runUntilTimeOut, runUntilTimeOutorSteps, setInfoChannel, setTimed, setVerbosity, stepBack, stepsBackAvailable, stopThread, supportsAlternateSteps, supportsStepBack
public AbstractDnd2Sim(Psystem psystem, boolean multiThread)
public boolean isMultiThread()
public final void stopThreads()
public void setCurrentConfig(Configuration configuration)
ISimulator
setCurrentConfig
in interface ISimulator
setCurrentConfig
in class AbstractSimulator
configuration
- the configuration to be setpublic void setPsystem(Psystem psystem)
ISimulator
setPsystem
in interface ISimulator
setPsystem
in class AbstractSimulator
psystem
- the simulator p-systempublic boolean step() throws PlinguaCoreException
ISimulator
step
in interface ISimulator
step
in class AbstractSimulator
PlinguaCoreException
- if a semantic error occurspublic void reset()
ISimulator
reset
in interface ISimulator
reset
in class AbstractSimulator
public int getK()
public void setK(int k)