XMT-O Reference Software

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:


Field Summary
private  Time begin
           
private  Time end
           
 
Constructor Summary
Interval()
           
Interval(Time begin, Time end)
           
 
Method Summary
static Interval add(Interval interval1, Interval interval2)
           
static Interval add(Interval interval, Time time)
           
 boolean equals(java.lang.Object interval)
           
 Time getBeginTime()
           
 Time getDuration()
           
 Time getEndTime()
           
 int hashCode()
           
 boolean isResolved()
           
 boolean negative()
           
 boolean point()
           
 void setBeginTime(Time time)
           
 void setEndTime(Time time)
           
 void setInterval(Time begin, Time end)
           
static Interval subtract(Interval interval1, Interval interval2)
           
static Interval subtract(Interval interval, Time time)
           
 java.lang.String toString()
           
static Interval union(Interval interval1, Interval interval2)
           
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

begin

private Time begin

end

private Time end
Constructor Detail

Interval

public Interval()

Interval

public Interval(Time begin,
                Time end)
Method Detail

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

XMT-O Reference Software