nl.tudelft.simulation.dsol.experiment
Class Treatment

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

public class Treatment
extends EventProducer

The treatment is comprises the specification of input data, the runControl and the specification of output data. (Sol:1982, Oeren&Zeigler:1979)
(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:30 $
Author:
Peter Jacobs , Alexander Verbraeck
See Also:
Serialized Form

Field Summary
static short REPLICATION_MODE_STEADY_STATE
          the TERMINATING replication mode
static short REPLICATION_MODE_TERMINATING
          the TERMINATING replication mode
 
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
Treatment(Experiment experiment, int number)
          contructs a Treatment
Treatment(Experiment experiment, int number, short replicationMode)
          contructs a Treatment
 
Method Summary
 Experiment getExperiment()
          Returns the experiment
 int getNumber()
          returns the number of this replication
 Properties getProperties()
          returns the properties for this treatment
 short getReplicationMode()
          Returns the replication mode of this treatment.
 RunControl getRunControl()
          returns the RunControl
 long getStartTime()
          returns the startTime
 TimeUnitInterface getTimeUnit()
          returns the timeUnit
 void setExperiment(Experiment experiment)
          sets the experiment of this treatment
 void setProperties(Properties properties)
          sets the properties
 void setReplicationMode(short replicationMode)
          sets the replication mode of this treatment
 void setRunControl(RunControl runControl)
          sets the RunControl
 void setStartTime(long startTime)
          sets the startTime of the treatment
 void setTimeUnit(TimeUnitInterface timeUnit)
          sets the timeUnit of the treatment
 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

REPLICATION_MODE_TERMINATING

public static final short REPLICATION_MODE_TERMINATING
the TERMINATING replication mode

See Also:
Constant Field Values

REPLICATION_MODE_STEADY_STATE

public static final short REPLICATION_MODE_STEADY_STATE
the TERMINATING replication mode

See Also:
Constant Field Values
Constructor Detail

Treatment

public Treatment(Experiment experiment,
                 int number)
contructs a Treatment

Parameters:
experiment - reflects the experiment
number - the number of this treatment

Treatment

public Treatment(Experiment experiment,
                 int number,
                 short replicationMode)
contructs a Treatment

Parameters:
experiment - reflects the experiment
number - the number of this treatment
replicationMode - the replication mode of this treatment
Method Detail

getNumber

public int getNumber()
returns the number of this replication

Returns:
int the number

getExperiment

public Experiment getExperiment()
Returns the experiment

Returns:
the experiment

getProperties

public Properties getProperties()
returns the properties for this treatment

Returns:
Properties

getRunControl

public RunControl getRunControl()
returns the RunControl

Returns:
RunControl the runControl

getStartTime

public long getStartTime()
returns the startTime

Returns:
long the startTime

getTimeUnit

public TimeUnitInterface getTimeUnit()
returns the timeUnit

Returns:
timeUnit

setProperties

public void setProperties(Properties properties)
sets the properties

Parameters:
properties - the properties

setRunControl

public void setRunControl(RunControl runControl)
sets the RunControl

Parameters:
runControl - the control.

setStartTime

public void setStartTime(long startTime)
sets the startTime of the treatment

Parameters:
startTime - reflects the startTime

setTimeUnit

public void setTimeUnit(TimeUnitInterface timeUnit)
sets the timeUnit of the treatment

Parameters:
timeUnit - is the timeunit

toString

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

setExperiment

public void setExperiment(Experiment experiment)
sets the experiment of this treatment

Parameters:
experiment - the experiment

getReplicationMode

public short getReplicationMode()
Returns the replication mode of this treatment.

Returns:
the replication mode of this treatment.

setReplicationMode

public void setReplicationMode(short replicationMode)
sets the replication mode of this treatment

Parameters:
replicationMode - the replication mode


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