nl.tudelft.simulation.dsol.experiment
Class RunControl

java.lang.Object
  extended by nl.tudelft.simulation.event.EventProducer
      extended by nl.tudelft.simulation.dsol.experiment.RunControl
All Implemented Interfaces:
Serializable, EventListener, EventListenerInterface, EventProducerInterface

public class RunControl
extends EventProducer
implements Serializable, EventListenerInterface

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.

Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:21:31 $
Author:
Peter Jacobs , Alexander Verbraeck
See Also:
Serialized Form

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

END_OF_RUN_EVENT

public static final EventType END_OF_RUN_EVENT
END_OF_RUN_EVENT is fired at the end of a run


treatment

protected Treatment treatment
treatment reflects the treatment to which this runcontrol belongs

Constructor Detail

RunControl

public RunControl(Treatment treatment)
Constructs a new RunControl object.

Parameters:
treatment - The parent treatment
Method Detail

start

public void start(SimulatorInterface simulator)
           throws RemoteException
starts the runControl

Parameters:
simulator - is the simulator
Throws:
RemoteException - on network failure

getTreatment

public Treatment getTreatment()
returns the treatment

Returns:
treatment

getReplications

public Replication[] getReplications()
Returns the replications of a run control.

Returns:
the replications of a run control.

getRunLength

public double getRunLength()
returns the runLength

Returns:
double the runlength

getWarmupPeriod

public double getWarmupPeriod()
returns the warmupPeriod

Returns:
double the warmup period

notify

public void notify(EventInterface event)
Specified by:
notify in interface EventListenerInterface
See Also:
#notify(nl.tudelft.simulation.event.EventInterface)

reset

public void reset()
resets the RunControl


setReplications

public void setReplications(Replication[] replications)
sets the replications

Parameters:
replications - the replications

setRunLength

public void setRunLength(double runLength)
sets the runLength

Parameters:
runLength - which is the runLength

setWarmupPeriod

public void setWarmupPeriod(double warmupPeriod)
sets the warmupPeriod

Parameters:
warmupPeriod - reflects the warmupPeriod

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.