Interface Historical<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T get()
      Get value at current simulation time.
      T get​(Time time)
      Get value at a specific time.
      void set​(T value)
      Set value at the current simulation time.
    • Method Detail

      • set

        void set​(T value)
        Set value at the current simulation time. If a value is already stored for this time, it is replaced.
        Parameters:
        value - T; value
      • get

        T get()
        Get value at current simulation time. TODO specify what happens when no value was set for the current simulation time
        Returns:
        T; value at current simulation time
      • get

        T get​(Time time)
        Get value at a specific time. TODO specify what happens when no value has ever been set, or the value for the specified time can not be determined.
        Parameters:
        time - Time; time to get the value
        Returns:
        T; value at current time
        Throws:
        NullPointerException - when time is null