public class Interval extends Domain
defaultValueChoiceFunction, logger, myVariable, valueChoiceFunctions| Constructor and Description |
|---|
Interval(TimePoint timePoint)
Builds a zero-length time interval (start = stop = 0).
|
Interval(TimePoint timePoint,
long start,
long stop)
Builds a time interval with the given start and end times.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object arg0)
Compares this to another Interval
|
boolean |
equals(java.lang.Object obj)
Compares two time intervals, returning true iff their start and end times coincide.
|
Bounds |
getBounds() |
long |
getLowerBound() |
long |
getUpperBound() |
int |
hashCode() |
java.lang.String |
toString()
Returns A String representation of the
Interval. |
chooseValue, chooseValue, getValueChoiceFunctions, getVariable, registerValueChoiceFunction, removeValueChoiceFunctions, setDefaultValueChoiceFunctionpublic Interval(TimePoint timePoint)
public Interval(TimePoint timePoint, long start, long stop)
start - The start time of the interval.stop - The end time of the interval.public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectInterval.public java.lang.String toString()
Interval.public Bounds getBounds()
public int compareTo(java.lang.Object arg0)
1 if this Interval's lower bound is lower than the argument's, 0 if they are the same, 1 otherwisepublic int hashCode()
hashCode in class java.lang.Objectpublic long getLowerBound()
public long getUpperBound()