Class InputInterval
- java.lang.Object
-
- io.engineblock.activityimpl.input.InputInterval
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInputInterval.Segment
-
Constructor Summary
Constructors Constructor Description InputInterval(long min, long nextMin)
-
Method Summary
Modifier and Type Method Description CycleSegmentgetInputSegment(int segmentLength)Return the next InputSegment available, or null if none were available.booleanisContiguous()java.lang.StringtoString()
-
-
-
Method Detail
-
getInputSegment
public CycleSegment getInputSegment(int segmentLength)
Description copied from interface:InputReturn the next InputSegment available, or null if none were available. This method is required to be thread safe.All implementations of this method are required to be thread-safe.
- Specified by:
getInputSegmentin interfaceInput- Parameters:
segmentLength- The number of cycles (not necessarily contiguous) in the segment.- Returns:
- a segment, or null if none available.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isContiguous
public boolean isContiguous()
- Specified by:
isContiguousin interfaceInput
-
-