T
- type of SimParams
this class usespublic abstract class BaseZmtSimState<T extends SimParams> extends ZmtSimState
SimState
of ZMT simulations.DEFAULT_INPUT_DIR, DEFAULT_OUTPUT_DIR
Constructor and Description |
---|
BaseZmtSimState() |
Modifier and Type | Method and Description |
---|---|
void |
awakeFromCheckpoint() |
protected Path |
getOutputPath() |
T |
getParams()
Returns the
SimParams object with the current configuration. |
abstract Class<? extends T> |
getParamsClass()
Returns the
SimParams class used by this simulation. |
void |
setOutputPath(Path outputPath)
Sets the path to write simulation output.
|
void |
setParams(SimParams params)
Sets the current configuration to the given
SimParams object. |
void |
start()
Sets seed from parameters.
|
createStatusMessage, finish, getOutput
addToAsynchronousRegistry, asynchronousRegistry, doLoop, doLoop, job, kill, nameThread, postCheckpoint, preCheckpoint, primeGenerator, printlnSynchronized, readFromCheckpoint, readFromCheckpoint, removeFromAsynchronousRegistry, seed, setJob, setSeed, version, writeToCheckpoint, writeToCheckpoint
protected Path getOutputPath()
public T getParams()
ZmtSimState
SimParams
object with the current configuration.getParams
in class ZmtSimState
SimParams
with the current configurationpublic void setParams(SimParams params)
ZmtSimState
SimParams
object.setParams
in class ZmtSimState
params
- the SimParams
object containing the desired
configurationpublic void setOutputPath(Path outputPath)
ZmtSimState
setOutputPath
in class ZmtSimState
outputPath
- the new output pathpublic void start()
public void awakeFromCheckpoint()
awakeFromCheckpoint
in class SimState
public abstract Class<? extends T> getParamsClass()
ZmtSimState
SimParams
class used by this simulation. Implementing
classes need to specify this in order to create and load suitable
parameter objects.
XStream
annotations are processed for this class and all which
are referenced.
getParamsClass
in class ZmtSimState
SimParams
class used by this simulation