|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.netsim.StaticSimulation
public class StaticSimulation
The static simulator does not simulate anything. It just returns the file httpoutput.xml from the examples folder as Elements.
| Field Summary | |
|---|---|
private Events |
inputevents
|
private IVerinecRepository |
repository
|
private double |
stoptime
|
| Constructor Summary | |
|---|---|
StaticSimulation()
creates an static simulation. |
|
StaticSimulation(IVerinecRepository repository,
Events inputevents)
creates a static simulation. |
|
StaticSimulation(IVerinecRepository repository,
Events inputevents,
double stoptime)
creates a static simulation. |
|
| Method Summary | |
|---|---|
Events |
getInputEvents()
gets the events that are scheduled initally by the simulator |
IVerinecRepository |
getRepository()
gets the repository containing the network definition |
double |
getStopTime()
gets the time value when the simulation stops |
void |
setInputEvents(Events events)
sets the InputsEvents of the simulator. |
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
| Constructor Detail |
|---|
public StaticSimulation(IVerinecRepository repository,
Events inputevents,
double stoptime)
repository - a repositoryinputevents - inputeventsstoptime - a stoptime
public StaticSimulation(IVerinecRepository repository,
Events inputevents)
repository - a repositoryinputevents - inputeventspublic StaticSimulation()
| 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()
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||