Class ExtendableStatsSlot
java.lang.Object
com.amalgamasimulation.core.intervals.Interval
com.amalgamasimulation.core.scheduling.TimeInterval
com.amalgamasimulation.core.scheduling.Slot
com.amalgamasimulation.core.statistics.ExtendableStatsSlot
- All Implemented Interfaces:
IntervalLike,Comparable<IntervalLike>
-
Field Summary
Fields inherited from class com.amalgamasimulation.core.scheduling.Slot
minDuration, sequence -
Constructor Summary
ConstructorsConstructorDescriptionExtendableStatsSlot(double beginTime, Supplier<Double> timeSupplier) Constructs an instance ofExtendableStatsSlot. -
Method Summary
Methods inherited from class com.amalgamasimulation.core.scheduling.Slot
copy, dummy, minDuration, sequence, setMinDurationMethods inherited from class com.amalgamasimulation.core.scheduling.TimeInterval
beginTime, contains, duration, endTime, getExclusion, getIntersection, intersectsWithMethods inherited from class com.amalgamasimulation.core.intervals.Interval
asIntervalSet, contains, contains, equals, equalsWithinEpsilon, equalsWithinEpsilon, exclusion, hasNonZeroIntersectionWith, intersection, isEmpty, isUniverse, leftSubset, min, of, of, rightSubset, shift, size, toCodeString, toString, unionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.amalgamasimulation.core.intervals.IntervalLike
compareTo, complement, isFinite, isZeroLength, length
-
Constructor Details
-
ExtendableStatsSlot
Constructs an instance ofExtendableStatsSlot.- Parameters:
beginTime- the start time of the slottimeSupplier- a supplier that dynamically provides the current end time of the slot, must not benull
-
-
Method Details
-
hashCode
public int hashCode() -
max
public double max()Description copied from interface:IntervalLikeReturns the maximal (right) bound of interval or interval set, orDouble.NaNif this instance is empty.- Specified by:
maxin interfaceIntervalLike- Overrides:
maxin classInterval- Returns:
- right bound of interval or interval set, can be infinite or
Double.NaN
-
close
public void close()
-