Uses of Class
com.amalgamasimulation.core.intervals.IntervalSet
Packages that use IntervalSet
Package
Description
-
Uses of IntervalSet in com.amalgamasimulation.core.intervals
Fields in com.amalgamasimulation.core.intervals declared as IntervalSetModifier and TypeFieldDescriptionstatic final IntervalSetIntervalSet.EMPTYEmpty interval set, i.e.static final IntervalSetIntervalSet.UNIVERSEUniverse interval set, i.e.Methods in com.amalgamasimulation.core.intervals that return IntervalSetModifier and TypeMethodDescriptionInterval.asIntervalSet()default IntervalSetIntervalLike.asIntervalSet()Converts this instance ofIntervalLiketo an instance ofIntervalSetaccording to the following rules: if the specified instance ofIntervalLikeis already an instance ofIntervalSet, just returns the reference to this instance, without creating any new objects otherwise, if the specified instance ofIntervalLikeis an instance ofInterval, creates a new instance ofIntervalSetwith this single interval, and returns the reference to this newly created instancedefault IntervalSetIntervalLike.complement()Returns a new instance of anIntervalSetthat is a complement to this one.Interval.exclusion(IntervalLike other) IntervalLike.exclusion(IntervalLike other) Returns a new instance ofIntervalSetthat represents an exclusion of the specified instance from this one.IntervalSet.exclusion(IntervalLike other) Interval.intersection(IntervalLike other) IntervalLike.intersection(IntervalLike other) Returns a new instance ofIntervalSetthat represents an intersection of this instance and the specified other one.IntervalSet.intersection(IntervalLike other) Interval.leftSubset(double maxLength) IntervalLike.leftSubset(double maxLength) Returns a new instance ofIntervalSetthat is a subset of thisIntervalLikeinstance taken from itsIntervalLike.min()boundary, with the cumulative length not exceeding the specified maximum length.IntervalSet.leftSubset(double maxLength) static IntervalSetIntervalSet.of(double min, double max) Creates and returns a new instance ofIntervalSetcontaining a single interval with the specified min and max bounds.static IntervalSetCreates and returns a new instance ofIntervalSetthat contains the specified intervals.static IntervalSetIntervalSet.of(IntervalLike intervalLike) Converts the specified instance ofIntervalLiketo an instance ofIntervalSetaccording to the following rules: if the specified instance ofIntervalLikeis an instance ofIntervalSet, just returns the reference to this instance, without creating any new instances otherwise, if the specified instance ofIntervalLikeis an instance ofInterval, creates a new instance ofIntervalSetwith this single interval, and returns the reference to this newly created instancestatic IntervalSetstatic IntervalSetInterval.rightSubset(double maxLength) IntervalLike.rightSubset(double maxLength) Returns a new instance ofIntervalSetthat is a subset of thisIntervalLikeinstance taken from itsIntervalLike.max()boundary, with the cumulative length not exceeding the specified maximum length.IntervalSet.rightSubset(double maxLength) Interval.union(IntervalLike other) IntervalLike.union(IntervalLike other) Returns a new instance ofIntervalSetthat represents a union of this instance and the specified other one.IntervalSet.union(IntervalLike other) IntervalSet.withIntervalsMatching(Predicate<Interval> predicate) Returns a newIntervalSetinstance containing only those intervals that match the specified predicate condition.IntervalSet.withoutIntervalsMatching(Predicate<Interval> predicate) Returns a newIntervalSetinstance excluding the intervals that match the specified predicate condition.IntervalSet.withoutZeroIntervals()Returns a new instance ofIntervalSetthat is computed from this instance by removing all zero-length intervals. -
Uses of IntervalSet in com.amalgamasimulation.core.piecewise
Methods in com.amalgamasimulation.core.piecewise that return IntervalSetModifier and TypeMethodDescriptionPiecewiseFunction.intervalsWithRateLessThan(double rateLessThan) Finds and returns anIntervalSetinstance describing the sorted set of intervals where this piecewise function's change rate is less than the specified threshold.PiecewiseFunction.intervalsWithRateLessThan(Interval withinArgumentInterval, double rateLessThan) Finds and returns anIntervalSetinstance describing the sorted set of intervals where this piecewise function's change rate is less than the specified threshold, within the specified argument interval.PiecewiseFunction.intervalsWithRateMoreThan(double rateMoreThan) Finds and returns anIntervalSetinstance describing the sorted set of intervals where this piecewise function's change rate is greater than the specified threshold.PiecewiseFunction.intervalsWithRateMoreThan(Interval withinArgumentInterval, double rateMoreThan) Finds and returns anIntervalSetinstance describing the sorted set of intervals where this piecewise function's change rate is greater than the specified threshold, within the specified argument interval.PiecewiseFunction.intervalsWithValueLessEqualThan(double valueLessEqualThan) Finds and returns anIntervalSetinstance describing the sorted set of intervals where this piecewise function's value is less than or equal to the specified threshold.PiecewiseFunction.intervalsWithValueLessEqualThan(Interval withinArgumentInterval, double valueLessEqualThan) Finds and returns anIntervalSetinstance describing the sorted set of intervals where this piecewise function's value is less than or equal to the specified threshold.PiecewiseFunction.intervalsWithValueLessThan(double valueLessThan) Finds and returns anIntervalSetinstance describing the sorted set of intervals where this piecewise function's value is less than the specified threshold.PiecewiseFunction.intervalsWithValueLessThan(Interval withinArgumentInterval, double valueLessThan) Finds and returns anIntervalSetinstance describing the sorted set of intervals where this piecewise function's value is less than the specified threshold.PiecewiseFunction.intervalsWithValueMoreEqualThan(double valueMoreEqualThan) Finds and returns anIntervalSetinstance describing the sorted set of intervals where this piecewise function's value is greater than or equal to the specified threshold.PiecewiseFunction.intervalsWithValueMoreEqualThan(Interval withinArgumentInterval, double valueMoreEqualThan) Finds and returns anIntervalSetinstance describing the sorted set of intervals where this piecewise function's value is greater than or equal to the specified threshold.PiecewiseFunction.intervalsWithValueMoreThan(double valueMoreThan) Finds and returns anIntervalSetinstance describing the sorted set of intervals where this piecewise function's value is greater than the specified threshold.PiecewiseFunction.intervalsWithValueMoreThan(Interval withinArgumentInterval, double valueMoreThan) Finds and returns anIntervalSetinstance describing the sorted set of intervals where this piecewise function's value is greater than the specified threshold. -
Uses of IntervalSet in com.amalgamasimulation.core.scheduling
Methods in com.amalgamasimulation.core.scheduling that return types with arguments of type IntervalSetModifier and TypeMethodDescriptionIntervalSetsOverlaysIterator.overlaysStream(List<IntervalSet> intervalSets) Converts a list of interval sets into a stream of overlay results where each interval set is associated with itself as the value, over the entire universe.IntervalSetsOverlaysIterator.overlaysStream(List<IntervalSet> intervalSets, IntervalSet withinIntervalSet) Converts a list of interval sets into a stream of overlay results constrained to a specific containing interval set, where each interval set is associated with itself as the value.Methods in com.amalgamasimulation.core.scheduling with parameters of type IntervalSetModifier and TypeMethodDescriptionIntervalSetsOverlaysIterator.overlaysStream(List<IntervalSet> intervalSets, IntervalSet withinIntervalSet) Converts a list of interval sets into a stream of overlay results constrained to a specific containing interval set, where each interval set is associated with itself as the value.static <T> Stream<IntervalSetsOverlaysIterator.IntervalSetsOverlay<T>> IntervalSetsOverlaysIterator.overlaysStream(Map<T, IntervalSet> intervalSets, IntervalSet withinIntervalSet) Converts a map of values to their associated interval sets into a stream of overlay results constrained to a specific containing interval set.Method parameters in com.amalgamasimulation.core.scheduling with type arguments of type IntervalSetModifier and TypeMethodDescriptionIntervalSetsOverlaysIterator.overlaysStream(List<IntervalSet> intervalSets) Converts a list of interval sets into a stream of overlay results where each interval set is associated with itself as the value, over the entire universe.IntervalSetsOverlaysIterator.overlaysStream(List<IntervalSet> intervalSets, IntervalSet withinIntervalSet) Converts a list of interval sets into a stream of overlay results constrained to a specific containing interval set, where each interval set is associated with itself as the value.static <T> Stream<IntervalSetsOverlaysIterator.IntervalSetsOverlay<T>> IntervalSetsOverlaysIterator.overlaysStream(Map<T, IntervalSet> intervalSets) Converts a map of values to their associated interval sets into a stream of overlay results over the entire universe (negative to positive infinity).static <T> Stream<IntervalSetsOverlaysIterator.IntervalSetsOverlay<T>> IntervalSetsOverlaysIterator.overlaysStream(Map<T, IntervalSet> intervalSets, IntervalSet withinIntervalSet) Converts a map of values to their associated interval sets into a stream of overlay results constrained to a specific containing interval set.Constructors in com.amalgamasimulation.core.scheduling with parameters of type IntervalSetModifierConstructorDescriptionIntervalSetsOverlaysIterator(Map<T, IntervalSet> intervalSets, IntervalSet withinIntervalSet) Constructs a new iterator that analyzes overlaps within the specified interval sets constrained to the given containing interval set.IntervalSetsOverlaysIterator(Map<T, IntervalSet> intervalSets, IntervalSet withinIntervalSet, boolean forwardDirection) Constructs a new iterator that analyzes overlaps within the specified interval sets constrained to the given containing interval set.Constructor parameters in com.amalgamasimulation.core.scheduling with type arguments of type IntervalSetModifierConstructorDescriptionIntervalSetsOverlaysIterator(Map<T, IntervalSet> intervalSets) Constructs a new iterator that analyzes overlaps within the specified interval sets over the entire universe (negative to positive infinity).IntervalSetsOverlaysIterator(Map<T, IntervalSet> intervalSets, boolean forwardDirection) IntervalSetsOverlaysIterator(Map<T, IntervalSet> intervalSets, IntervalSet withinIntervalSet) Constructs a new iterator that analyzes overlaps within the specified interval sets constrained to the given containing interval set.IntervalSetsOverlaysIterator(Map<T, IntervalSet> intervalSets, IntervalSet withinIntervalSet, boolean forwardDirection) Constructs a new iterator that analyzes overlaps within the specified interval sets constrained to the given containing interval set. -
Uses of IntervalSet in com.amalgamasimulation.core.statistics
Methods in com.amalgamasimulation.core.statistics that return IntervalSetModifier and TypeMethodDescriptionIntervalStatistics.intervalSet(K key) Returns theIntervalSetfor a specific key, including the current interval if it exists and its key equals to the specified key.IntervalStatistics.totalIntervalSet()Returns theIntervalSetwhich is a union of all ever added intervals.Methods in com.amalgamasimulation.core.statistics that return types with arguments of type IntervalSetModifier and TypeMethodDescriptionList<Pair<K, IntervalSet>> IntervalStatistics.intervalSetsByKeys()Returns a list of pairs containing keys (e.g., interval classes) and their correspondingIntervalSetinstances. -
Uses of IntervalSet in com.amalgamasimulation.graphagent
Methods in com.amalgamasimulation.graphagent that return IntervalSetModifier and TypeMethodDescriptionGeometricGraphPath.getIntersectionOffsets(GeometricGraphPath<N, A> otherPath) Returns anIntervalSetinstance representing intervals of absolute offsets where this path intersects with the specified other path.GeometricGraphPath.getIntersectionOffsetsIgnoreDirection(GeometricGraphPath<N, A> otherPath, Graph<N, A> graph) Returns anIntervalSetinstance representing intervals of absolute offsets where this path intersects with the specified other path. -
Uses of IntervalSet in com.amalgamasimulation.trains
Methods in com.amalgamasimulation.trains that return IntervalSetModifier and TypeMethodDescriptionRailTrack.getFreeMovementGaps(BiPredicate<RailTrack, Object> considerBookedTracks) Returns anIntervalSetrepresenting the time intervals during which this track is not booked (i.e., free for movement).protected IntervalSetTrainsEnvironment.shiftIntervalSet(IntervalSet intervalSet, double shift) Methods in com.amalgamasimulation.trains with parameters of type IntervalSetModifier and TypeMethodDescriptionprotected IntervalSetTrainsEnvironment.shiftIntervalSet(IntervalSet intervalSet, double shift)