|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.netsim.SimulationFactory
public class SimulationFactory
Factory for Simulations that create Simulations.
To choose the implementation class, the system
property verinec.netsim.implementation is read. If this is not
set, a Simulationis created as default.
| Constructor Summary | |
|---|---|
SimulationFactory()
|
|
| Method Summary | |
|---|---|
private static ISimulation |
createSimulation()
Instantiate a simulation. |
static ISimulation |
createSimulation(Document eventDocument)
Instantiate a simulation createSimulation() |
private static ISimulation |
createSimulation(Events events)
Instantiate a simulation createSimulation() |
static ISimulation |
createSimulation(IVerinecRepository repository,
Document eventDocument)
Instantiate a simulation createSimulation() |
static ISimulation |
createSimulation(IVerinecRepository repository,
Document eventDocument,
double stoptime)
Instantiate a simulation. |
private static ISimulation |
createSimulation(IVerinecRepository repository,
Events events)
Instantiate a simulation createSimulation() |
private static ISimulation |
createSimulation(IVerinecRepository repository,
Events events,
double stoptime)
Instantiate a simulation. |
private static Class |
getImpl()
Determine the class to instantiate for the ISimulation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimulationFactory()
| Method Detail |
|---|
private static Class getImpl()
throws ClassNotFoundException
ClassNotFoundException - when no Class with the given name id found
private static ISimulation createSimulation()
throws NetSimException
The simulation implementation is determined by the method
getImpl().
The factory relies on the implementation of ISimulationto have a
constructor with one String parameter, the repository name.
NetSimException - if simulation can not be instantiated.
private static ISimulation createSimulation(Events events)
throws NetSimException
createSimulation()
events - inputevents that the simulator schedules initally, including
the stoptime and the repository name in the header
NetSimException - if simulation can not be instantiated.
public static ISimulation createSimulation(Document eventDocument)
throws NetSimException
createSimulation()
eventDocument - document that includes the inputevents that the simulator
schedules initally, including the stoptime and the repository
name in the header
NetSimException - if simulation can not be instantiated. This may be because of
invalid input events.
public static ISimulation createSimulation(IVerinecRepository repository,
Document eventDocument)
throws NetSimException
createSimulation()
repository - the repository describing the network topologyeventDocument - document that includes the inputevents that the simulator
schedules initally, including the stoptime and the repository
name in the header
NetSimException - if simulation can not be instantiated.
private static ISimulation createSimulation(IVerinecRepository repository,
Events events)
throws NetSimException
createSimulation()
repository - the repository describing the network topologyevents - inputevents that the simulator schedules initally. the events
also contain a stoptime for the simulator.
NetSimException - if simulation can not be instantiated.
private static ISimulation createSimulation(IVerinecRepository repository,
Events events,
double stoptime)
throws NetSimException
createSimulation(verinec.data.repository.IVerinecRepository, verinec.netsim.loggers.events.Events)
repository - the repository describing the network topologyevents - events that the simulator schedules initallystoptime - the time value when the simulation stops. this value
overwrites the value that is contained in the events object.
NetSimException - if simulation can not be instantiated.
public static ISimulation createSimulation(IVerinecRepository repository,
Document eventDocument,
double stoptime)
throws NetSimException
createSimulation(verinec.data.repository.IVerinecRepository, verinec.netsim.loggers.events.Events)
repository - the repository describing the network topologyeventDocument - document that includes the inputevents that the simulator
schedules initally, including the stoptime and the repository
name in the headerstoptime - the time value when the simulation stops. this value
overwrites the value that is contained in the events object.
NetSimException - if simulation can not be instantiated.
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||