xmto2xmta.timegraph
Class Interval
java.lang.Object
|
+--xmto2xmta.timegraph.Interval
- Direct Known Subclasses:
- ContainerLife, LifeInterval
- public class Interval
- extends java.lang.Object
A time interval. Has a begin, end, and duration.
History:
- 15 Mar 2001 - Created file.
Methods inherited from class java.lang.Object |
, clone, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait |
begin
private Time begin
end
private Time end
Interval
public Interval()
Interval
public Interval(Time begin,
Time end)
setInterval
public void setInterval(Time begin,
Time end)
setBeginTime
public void setBeginTime(Time time)
getBeginTime
public Time getBeginTime()
setEndTime
public void setEndTime(Time time)
getEndTime
public Time getEndTime()
getDuration
public Time getDuration()
equals
public boolean equals(java.lang.Object interval)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
add
public static Interval add(Interval interval1,
Interval interval2)
add
public static Interval add(Interval interval,
Time time)
subtract
public static Interval subtract(Interval interval1,
Interval interval2)
subtract
public static Interval subtract(Interval interval,
Time time)
union
public static Interval union(Interval interval1,
Interval interval2)
isResolved
public boolean isResolved()
point
public boolean point()
negative
public boolean negative()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object