Class ExtendableStatsSlot

All Implemented Interfaces:
IntervalLike, Comparable<IntervalLike>

public class ExtendableStatsSlot extends Slot
  • Constructor Details

    • ExtendableStatsSlot

      public ExtendableStatsSlot(double beginTime, Supplier<Double> timeSupplier)
      Constructs an instance of ExtendableStatsSlot.
      Parameters:
      beginTime - the start time of the slot
      timeSupplier - a supplier that dynamically provides the current end time of the slot, must not be null
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Interval
    • max

      public double max()
      Description copied from interface: IntervalLike
      Returns the maximal (right) bound of interval or interval set, or Double.NaN if this instance is empty.
      Specified by:
      max in interface IntervalLike
      Overrides:
      max in class Interval
      Returns:
      right bound of interval or interval set, can be infinite or Double.NaN
    • close

      public void close()
      Finalizes this slot by fixing its end time to the current value provided by the Supplier. After this method is called, the slot's end time becomes immutable, and the dynamic behavior is disabled.

      All subclass overrides of this method must call close() method of a superclass.