verinec.netsim
Interface ISimulation

All Known Implementing Classes:
Simulation, StaticSimulation

public interface ISimulation

Defines the interface for simulators.

Version:
$Revision: 47 $
Author:
Dominik Jungo

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.
 

Method Detail

start

Events start()
             throws NetSimException
starts the simulation and returns all Eventsthat happend during the simulation.

Returns:
Eventsthat happend during the simulation
Throws:
NetSimException - if something goes wrong during the simulation

setRepository

void setRepository(IVerinecRepository repository)
sets the repository of the simulator. the repository is used to build up the network infrastructure.

Parameters:
repository - a repository

setInputEvents

void setInputEvents(Events events)
sets the InputsEvents of the simulator. These are events that the simulator schedules initally.

Parameters:
events - Inputevents

setStopTime

void setStopTime(double time)
sets the time to the value when the simulation stops.

Parameters:
time - stoptime of the simulation

getStopTime

double getStopTime()
gets the time value when the simulation stops

Returns:
stop stoptime of the simulation

getRepository

IVerinecRepository getRepository()
gets the repository containing the network definition

Returns:
the repository containing the network definition

getInputEvents

Events getInputEvents()
gets the events that are scheduled initally by the simulator

Returns:
the events that are scheduled initally by the simulator

Copyright © 2005 Verinec, DIUF