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, resetgetCorrespondingSchedulable, getObservations, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulablecurrent, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, currentTime, debugIsOn, debugOff, debugOn, epsilon, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOnpublic DesmoJModel(ISimulationModel model, String modelName)
public String description()
description in class desmoj.core.simulator.Modelpublic void doInitialSchedules()
doInitialSchedules in class desmoj.core.simulator.Modelpublic void finalise()
This method is called directly after the simulation have stopped.
finalise in interface ISimulationModelpublic ISimulationConfig getConfiguration()
getConfiguration in interface ISimulationModelpublic ISimEngineFactory getSimEngineFactory()
getSimEngineFactory in interface ISimulationModelpublic ISimulationControl getSimulationControl()
getSimulationControl in interface ISimulationModelpublic void init()
This method is called directly before the simulation starts.
init in interface ISimulationModelinit in class desmoj.core.simulator.Modelpublic void setSimulationControl(ISimulationControl control)
setSimulationControl in interface ISimulationModelpublic void setSimulationEngineFactory(ISimEngineFactory factory)
setSimulationEngineFactory in interface ISimulationModel