Class SingleReplication<T extends Number & Comparable<T>>

    • Constructor Detail

      • SingleReplication

        public SingleReplication​(String id,
                                 T startTime,
                                 T warmupPeriod,
                                 T runLength)
        construct a stand-alone replication.
        Parameters:
        id - String; the id of the replication; should be unique within the experiment.
        startTime - T; the start time of the simulation.
        warmupPeriod - R; the warmup period, included in the runlength (!)
        runLength - R; the total length of the run, including the warm-up period.
        Throws:
        NullPointerException - when id, startTime, warmupPeriod or runLength is null
        IllegalArgumentException - 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, or when a context for the replication cannot be created
      • SingleReplication

        public SingleReplication​(RunControl<T> runControl)
        Construct a stand-alone replication using a RunControl to store the run information.
        Parameters:
        runControl - RunControlInterface; the run control for the replication
        Throws:
        NullPointerException - when runControl is null
    • Method Detail

      • setContext

        protected void setContext()
        Set the context for this replication.
        Throws:
        IllegalArgumentException - in case a context for the replication cannot be created
      • removeFromContext

        public void removeFromContext()
        Remove the context for this replication.