|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.netsim.Simulation
public class Simulation
The standart Simulation constructed by the SimulationFactory.
| Field Summary | |
|---|---|
private Experiment |
experiment
|
private Events |
inputevents
|
private NetworkModel |
model
|
private IVerinecRepository |
repository
|
private double |
stoptime
|
| Constructor Summary | |
|---|---|
Simulation()
constructs a new simulation with no infrastrructure or scheduled input events |
|
Simulation(IVerinecRepository repository,
Events inputevents)
constructs a new simulation with the network infrastrructure from the repository and scheduled input events. |
|
Simulation(IVerinecRepository repository,
Events inputevents,
double stoptime)
constructs a new simulation with the network infrastructure from the repository, scheduled input events and a given stop time. |
|
| Method Summary | |
|---|---|
Experiment |
getExperiment()
gets the experiment of this simulation |
Events |
getInputEvents()
gets the events that are scheduled initally by the simulator |
NetworkModel |
getModel()
gets the model of this simulation |
IVerinecRepository |
getRepository()
gets the repository containing the network definition |
double |
getStopTime()
gets the time value when the simulation stops |
void |
setExperiment(Experiment experiment)
sets the experiment of the simulation |
void |
setInputEvents(Events events)
sets the InputsEvents of the simulator. |
void |
setModel(NetworkModel model)
sets the model of the simulation |
void |
setRepository(IVerinecRepository repository)
sets the repository of the simulator. |
void |
setStopTime(double time)
sets the time to the value when the simulation stops. |
Events |
start()
starts the simulation and returns all Eventsthat happend during the
simulation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private IVerinecRepository repository
private Events inputevents
private double stoptime
private NetworkModel model
private Experiment experiment
| Constructor Detail |
|---|
public Simulation()
public Simulation(IVerinecRepository repository,
Events inputevents)
repository - the repository containing the definitions used to build up the
network infrastructureinputevents - Input Events of the simulator
public Simulation(IVerinecRepository repository,
Events inputevents,
double stoptime)
repository - the repository used to build up the network infrastructureinputevents - Inputs Events of the simulatorstoptime - stoptime of the simulation| Method Detail |
|---|
public Events start()
throws NetSimException
ISimulationEventsthat happend during the
simulation.
start in interface ISimulationEventsthat happend during
the simulation
NetSimExceptionISimulation.start()public void setRepository(IVerinecRepository repository)
ISimulation
setRepository in interface ISimulationrepository - a repositoryISimulation.setRepository(verinec.data.repository.IVerinecRepository)public void setInputEvents(Events events)
ISimulation
setInputEvents in interface ISimulationevents - InputeventsISimulation.setInputEvents(verinec.netsim.loggers.events.Events)public void setStopTime(double time)
ISimulation
setStopTime in interface ISimulationtime - stoptime of the simulationISimulation.setStopTime(double)public double getStopTime()
ISimulation
getStopTime in interface ISimulationISimulation.getStopTime()public IVerinecRepository getRepository()
ISimulation
getRepository in interface ISimulationISimulation.getRepository()public Events getInputEvents()
ISimulation
getInputEvents in interface ISimulationISimulation.getInputEvents()public Experiment getExperiment()
public NetworkModel getModel()
public void setExperiment(Experiment experiment)
experiment - a experimentpublic void setModel(NetworkModel model)
model - a model
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||