public class TestSimulator extends ASimulator
aspectConfiguration, experimentState, geppettoModelAccess, model
Constructor and Description |
---|
TestSimulator() |
Modifier and Type | Method and Description |
---|---|
IFeature |
getFeature(GeppettoFeature feature) |
java.lang.String |
getId() |
java.lang.String |
getName() |
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() |
boolean |
isSupported(GeppettoFeature feature) |
void |
registerGeppettoService() |
void |
setInitialized(boolean initialized) |
void |
simulate()
The simulate method will tell the simulator to execute to run the simulation.
|
advanceTimeStep, getExperiment, getListener, setExperiment, setListener, setTimeStepUnit
addFeature, getScope, getsetProjectId, setProjectId, setScope
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFeature
public void simulate() throws GeppettoExecutionException
ISimulator
GeppettoExecutionException
public void initialize(DomainModel model, IAspectConfiguration aspectConfiguration, ExperimentState experimentState, ISimulatorCallbackListener listener, GeppettoModelAccess modelAccess) throws GeppettoInitializationException, GeppettoExecutionException
ISimulator
initialize
in interface ISimulator
initialize
in class ASimulator
GeppettoInitializationException
GeppettoExecutionException
public boolean isInitialized()
isInitialized
in interface ISimulator
isInitialized
in class ASimulator
public java.lang.String getName()
public java.lang.String getId()
public void setInitialized(boolean initialized)
setInitialized
in interface ISimulator
setInitialized
in class ASimulator
public double getTime()
getTime
in interface ISimulator
getTime
in class ASimulator
public java.lang.String getTimeStepUnit()
getTimeStepUnit
in interface ISimulator
getTimeStepUnit
in class ASimulator
public void registerGeppettoService()
public boolean isSupported(GeppettoFeature feature)
isSupported
in interface IService
isSupported
in class AService
public IFeature getFeature(GeppettoFeature feature)
getFeature
in interface IService
getFeature
in class AService