public abstract class ASimulator extends AService implements ISimulator
Modifier and Type | Field and Description |
---|---|
protected IAspectConfiguration |
aspectConfiguration |
private IExperiment |
experiment |
protected ExperimentState |
experimentState |
protected GeppettoModelAccess |
geppettoModelAccess |
private boolean |
initialized |
private ISimulatorCallbackListener |
listener |
protected DomainModel |
model |
private double |
runtime |
private java.lang.String |
timeStepUnit |
Constructor and Description |
---|
ASimulator() |
Modifier and Type | Method and Description |
---|---|
void |
advanceTimeStep(double timestep,
Pointer pointer) |
IExperiment |
getExperiment() |
ISimulatorCallbackListener |
getListener() |
double |
getTime() |
java.lang.String |
getTimeStepUnit() |
void |
initialize(DomainModel model,
IAspectConfiguration aspectConfiguration,
ExperimentState experimentState,
ISimulatorCallbackListener listener,
GeppettoModelAccess modelAccess)
This interface assumes the simulator will use the domain model (IModel) to simulate.
|
boolean |
isInitialized() |
void |
setExperiment(IExperiment experiment) |
void |
setInitialized(boolean initialized) |
void |
setListener(ISimulatorCallbackListener listener) |
void |
setTimeStepUnit(java.lang.String timeStepUnit) |
addFeature, getFeature, getScope, getsetProjectId, isSupported, setProjectId, setScope
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, getName, simulate
addFeature, getFeature, isSupported, registerGeppettoService
private ISimulatorCallbackListener listener
private boolean initialized
private java.lang.String timeStepUnit
private double runtime
protected DomainModel model
protected IAspectConfiguration aspectConfiguration
protected ExperimentState experimentState
protected GeppettoModelAccess geppettoModelAccess
private IExperiment experiment
public void initialize(DomainModel model, IAspectConfiguration aspectConfiguration, ExperimentState experimentState, ISimulatorCallbackListener listener, GeppettoModelAccess modelAccess) throws GeppettoInitializationException, GeppettoExecutionException
ISimulator
initialize
in interface ISimulator
GeppettoInitializationException
GeppettoExecutionException
public ISimulatorCallbackListener getListener()
public boolean isInitialized()
isInitialized
in interface ISimulator
public void setInitialized(boolean initialized)
setInitialized
in interface ISimulator
public void setListener(ISimulatorCallbackListener listener)
listener
- public void setTimeStepUnit(java.lang.String timeStepUnit)
timeStepUnit
- public void advanceTimeStep(double timestep, Pointer pointer)
timestep
- aspect
- public double getTime()
getTime
in interface ISimulator
public java.lang.String getTimeStepUnit()
getTimeStepUnit
in interface ISimulator
public void setExperiment(IExperiment experiment)
experiment
- public IExperiment getExperiment()