Package org.jbpm.simulation.impl.ht
Class Range
- java.lang.Object
-
- org.jbpm.simulation.impl.ht.Range
-
- All Implemented Interfaces:
Comparable<Range>
public class Range extends Object implements Comparable<Range>
-
-
Constructor Summary
Constructors Constructor Description Range(int start, int end, int resourcePoolSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocatedWorkallocate(long startTime, long duration)intcompareTo(Range o)booleancontains(long time)org.joda.time.IntervalgetInterval()
-
-
-
Method Detail
-
contains
public boolean contains(long time)
-
allocate
public AllocatedWork allocate(long startTime, long duration)
-
getInterval
public org.joda.time.Interval getInterval()
-
compareTo
public int compareTo(Range o)
- Specified by:
compareToin interfaceComparable<Range>
-
-