public class DesmoJModel extends desmoj.core.simulator.Model implements ISimulationModel
Constructor and Description |
---|
DesmoJModel(ISimulationModel model,
String modelName) |
Modifier and Type | Method and Description |
---|---|
String |
description() |
void |
doInitialSchedules() |
void |
finalise()
Cleans up when the simulation stops.
|
ISimulationConfig |
getConfiguration()
Returns the configuration of the simulation run.
|
ISimEngineFactory |
getSimEngineFactory() |
ISimulationControl |
getSimulationControl() |
void |
init()
Initialises the simulation.
|
void |
setSimulationControl(ISimulationControl control) |
void |
setSimulationEngineFactory(ISimEngineFactory factory) |
connectToExperiment, createReporter, getEntities, getEntity, getExperiment, getParameterManager, getReportables, hasSubModels, init, isConnected, isMainModel, isSubModel, reset
getCorrespondingSchedulable, getObservations, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulable
current, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, currentTime, debugIsOn, debugOff, debugOn, epsilon, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn
public DesmoJModel(ISimulationModel model, String modelName)
public String description()
description
in class desmoj.core.simulator.Model
public void doInitialSchedules()
doInitialSchedules
in class desmoj.core.simulator.Model
public void finalise()
This method is called directly after the simulation have stopped.
finalise
in interface ISimulationModel
public ISimulationConfig getConfiguration()
getConfiguration
in interface ISimulationModel
public ISimEngineFactory getSimEngineFactory()
getSimEngineFactory
in interface ISimulationModel
public ISimulationControl getSimulationControl()
getSimulationControl
in interface ISimulationModel
public void init()
This method is called directly before the simulation starts.
init
in interface ISimulationModel
init
in class desmoj.core.simulator.Model
public void setSimulationControl(ISimulationControl control)
setSimulationControl
in interface ISimulationModel
public void setSimulationEngineFactory(ISimEngineFactory factory)
setSimulationEngineFactory
in interface ISimulationModel