|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.dsol.experiment.RunControl
public class RunControl
The RunControl specifies all parameters for the simulator.
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Field Summary | |
---|---|
static EventType |
END_OF_RUN_EVENT
END_OF_RUN_EVENT is fired at the end of a run |
protected Treatment |
treatment
treatment reflects the treatment to which this runcontrol belongs |
Fields inherited from class nl.tudelft.simulation.event.EventProducer |
---|
listeners |
Fields inherited from interface nl.tudelft.simulation.event.EventProducerInterface |
---|
FIRST_POSITION, LAST_POSITION |
Constructor Summary | |
---|---|
RunControl(Treatment treatment)
Constructs a new RunControl object. |
Method Summary | |
---|---|
Replication[] |
getReplications()
Returns the replications of a run control. |
double |
getRunLength()
returns the runLength |
Treatment |
getTreatment()
returns the treatment |
double |
getWarmupPeriod()
returns the warmupPeriod |
void |
notify(EventInterface event)
|
void |
reset()
resets the RunControl |
void |
setReplications(Replication[] replications)
sets the replications |
void |
setRunLength(double runLength)
sets the runLength |
void |
setWarmupPeriod(double warmupPeriod)
sets the warmupPeriod |
void |
start(SimulatorInterface simulator)
starts the runControl |
String |
toString()
|
Methods inherited from class nl.tudelft.simulation.event.EventProducer |
---|
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final EventType END_OF_RUN_EVENT
protected Treatment treatment
Constructor Detail |
---|
public RunControl(Treatment treatment)
treatment
- The parent treatmentMethod Detail |
---|
public void start(SimulatorInterface simulator) throws RemoteException
simulator
- is the simulator
RemoteException
- on network failurepublic Treatment getTreatment()
public Replication[] getReplications()
public double getRunLength()
public double getWarmupPeriod()
public void notify(EventInterface event)
notify
in interface EventListenerInterface
#notify(nl.tudelft.simulation.event.EventInterface)
public void reset()
public void setReplications(Replication[] replications)
replications
- the replicationspublic void setRunLength(double runLength)
runLength
- which is the runLengthpublic void setWarmupPeriod(double warmupPeriod)
warmupPeriod
- reflects the warmupPeriodpublic String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |