Interface SimulationStatistic<T extends Number & Comparable<T>>

Type Parameters:
T - the absolute simulation time to use in the warmup event
All Known Implementing Classes:
SimCounter, SimPersistent, SimTally, Utilization

public interface SimulationStatistic<T extends Number & Comparable<T>>
SimulationStatistic is an interface for the DSOL statistics objects. The simulator can unsubscribe all statistics objects at the end of a run using this interface.

Copyright (c) 2020-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the description of this statistic.
    long
    Return the number of samples for this statistic.
    Return the simulator.
  • Method Details

    • getSimulator

      SimulatorInterface<T> getSimulator()
      Return the simulator.
      Returns:
      SimulatorInterface; the simulator for this dsol statistic
    • getDescription

      String getDescription()
      Return the description of this statistic.
      Returns:
      String; the description of this statistic
    • getN

      long getN()
      Return the number of samples for this statistic.
      Returns:
      int; the number of samples of this statistic