Class HistoricalValue<T>

    • Constructor Detail

      • HistoricalValue

        public HistoricalValue​(HistoryManager historyManager)
        Constructor.
        Parameters:
        historyManager - HistoryManager; history manager
      • HistoricalValue

        public HistoricalValue​(HistoryManager historyManager,
                               T initialValue)
        Constructor.
        Parameters:
        historyManager - HistoryManager; history manager
        initialValue - T; initial value
    • Method Detail

      • set

        public final void set​(T value)
        Set value at the current simulation time. If a value is already given at this time, it is overwritten. Values should be set in chronological order.
        Specified by:
        set in interface Historical<T>
        Parameters:
        value - T; value
      • get

        public final T get()
        Get value at current simulation time.
        Specified by:
        get in interface Historical<T>
        Returns:
        T; value at current simulation time
      • get

        public final T get​(Time time)
        Get value at given time.
        Specified by:
        get in interface Historical<T>
        Parameters:
        time - Time; time to get the value
        Returns:
        T; value at current time