verinec.netsim
Class StaticSimulation

java.lang.Object
  extended by verinec.netsim.StaticSimulation
All Implemented Interfaces:
ISimulation

public class StaticSimulation
extends Object
implements ISimulation

The static simulator does not simulate anything. It just returns the file httpoutput.xml from the examples folder as Elements.

Version:
$Revision: 47 $
Author:
Dominik Jungo

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

repository

private IVerinecRepository repository

inputevents

private Events inputevents

stoptime

private double stoptime
Constructor Detail

StaticSimulation

public StaticSimulation(IVerinecRepository repository,
                        Events inputevents,
                        double stoptime)
creates a static simulation. The parameters here are just used to be compatible with the Simulation class. They are not used.

Parameters:
repository - a repository
inputevents - inputevents
stoptime - a stoptime

StaticSimulation

public StaticSimulation(IVerinecRepository repository,
                        Events inputevents)
creates a static simulation. The parameters here are just used to be compatible with the Simulation class. They are not used.

Parameters:
repository - a repository
inputevents - inputevents

StaticSimulation

public StaticSimulation()
creates an static simulation.

Method Detail

start

public Events start()
             throws NetSimException
Description copied from interface: ISimulation
starts the simulation and returns all Eventsthat happend during the simulation.

Specified by:
start in interface ISimulation
Returns:
Eventsthat happend during the simulation
Throws:
NetSimException
See Also:
ISimulation.start()

setRepository

public void setRepository(IVerinecRepository repository)
Description copied from interface: ISimulation
sets the repository of the simulator. the repository is used to build up the network infrastructure.

Specified by:
setRepository in interface ISimulation
Parameters:
repository - a repository
See Also:
ISimulation.setRepository(verinec.data.repository.IVerinecRepository)

setInputEvents

public void setInputEvents(Events events)
Description copied from interface: ISimulation
sets the InputsEvents of the simulator. These are events that the simulator schedules initally.

Specified by:
setInputEvents in interface ISimulation
Parameters:
events - Inputevents
See Also:
ISimulation.setInputEvents(verinec.netsim.loggers.events.Events)

setStopTime

public void setStopTime(double time)
Description copied from interface: ISimulation
sets the time to the value when the simulation stops.

Specified by:
setStopTime in interface ISimulation
Parameters:
time - stoptime of the simulation
See Also:
ISimulation.setStopTime(double)

getStopTime

public double getStopTime()
Description copied from interface: ISimulation
gets the time value when the simulation stops

Specified by:
getStopTime in interface ISimulation
Returns:
stop stoptime of the simulation
See Also:
ISimulation.getStopTime()

getRepository

public IVerinecRepository getRepository()
Description copied from interface: ISimulation
gets the repository containing the network definition

Specified by:
getRepository in interface ISimulation
Returns:
the repository containing the network definition
See Also:
ISimulation.getRepository()

getInputEvents

public Events getInputEvents()
Description copied from interface: ISimulation
gets the events that are scheduled initally by the simulator

Specified by:
getInputEvents in interface ISimulation
Returns:
the events that are scheduled initally by the simulator
See Also:
ISimulation.getInputEvents()

Copyright © 2005 Verinec, DIUF