Class RunControl<T extends Number & Comparable<T>>
java.lang.Object
nl.tudelft.simulation.dsol.experiment.RunControl<T>
- Type Parameters:
T
- the simulation time type to be able to implement a comparator on the simulation time.
- All Implemented Interfaces:
Serializable
,Treatment<T>
- Direct Known Subclasses:
ExperimentRunControl
RunControl is a data object that contains off-line run control information. It can be fed to an Experiment or a Replication
to set the run control parameters for a simulation run.
Copyright (c) 2021-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information DSOL Manual. The DSOL project is distributed under a three-clause BSD-style license, which can be found at DSOL License.
- Author:
- Alexander Verbraeck relative types are the same.
- See Also:
-
Constructor Summary
ConstructorDescriptionRunControl
(String id, T startTime, T warmupPeriod, T runLength) Construct an object with off-line run control information. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the description of this replication.Return the absolute end time of the simulation.getId()
Return the id of this replication.Return the RunControl object that contains the treatment information.Return the absolute start time of the simulation.Return the absolute moment when the warmup event will take place.int
hashCode()
void
setDescription
(String description) Sets the description of this replication.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface nl.tudelft.simulation.dsol.experiment.Treatment
getRunLength, getWarmupPeriod
-
Constructor Details
-
RunControl
Construct an object with off-line run control information.- Parameters:
id
- String; the id of the run control that will be used as the id for the replication; should be unique within the experiment.startTime
- T; the start time of the simulationwarmupPeriod
- T; the warmup period, included in the runlength (!)runLength
- T; the total length of the run, including the warm-up period- Throws:
NullPointerException
- when id, startTime, warmupPeriod or runLength is nullIllegalArgumentException
- when warmup period is negative, or run length is zero or negative, or when the warmup time is longer than or equal to the runlength
-
-
Method Details
-
getRunControl
Return the RunControl object that contains the treatment information.- Specified by:
getRunControl
in interfaceTreatment<T extends Number & Comparable<T>>
- Returns:
- RunControl; the RunControl object that contains the treatment information
-
getId
Return the id of this replication. -
setDescription
Sets the description of this replication.- Specified by:
setDescription
in interfaceTreatment<T extends Number & Comparable<T>>
- Parameters:
description
- String; the description of this replication
-
getDescription
Return the description of this replication.- Specified by:
getDescription
in interfaceTreatment<T extends Number & Comparable<T>>
- Returns:
- String; the description of this replication
-
getStartTime
Return the absolute start time of the simulation.- Specified by:
getStartTime
in interfaceTreatment<T extends Number & Comparable<T>>
- Returns:
- T; the absolute start time of the simulation
-
getEndTime
Return the absolute end time of the simulation.- Specified by:
getEndTime
in interfaceTreatment<T extends Number & Comparable<T>>
- Returns:
- T; the absolute end time of the simulation
-
getWarmupTime
Return the absolute moment when the warmup event will take place.- Specified by:
getWarmupTime
in interfaceTreatment<T extends Number & Comparable<T>>
- Returns:
- T; the absolute moment when the warmup event will take place
-
hashCode
public int hashCode() -
equals
-
toString
-