|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Date | +--atropos.lp.AvnmpTime
This class handles AVNMP Time calculation. There are two types of time: relative and absolute. Relative time is the amount of wall-clock time which has elapsed since the object was created. Absolute time is simply using this object to hold time values which need to be explicitly set and manipulated.
This research is funded by DARPA/ITO Contract Number: F30602-98-C-0230 supported by the Air Force Research Laboratory/IF.
Constructor Summary | |
AvnmpTime()
Construct a relative time object. |
|
AvnmpTime(long t)
Construct an absolute time object. |
Method Summary | |
long |
add(long t)
Return the sum between of this time and the input: input_time + this_time. |
AvnmpTime |
adjustRelative(long t)
Adjust the time this variable was created by a given amount. |
long |
diff(long t)
Return the difference between this time and the input: input_time - this_time. |
long |
now()
The current time. |
void |
resetRelative()
Reset the start time of this object to the present time. |
long |
set(long t)
Set the time to the given input. |
long |
startTime()
Display the time this variable was created. |
long |
time()
Return the time relative to the start time. |
java.lang.String |
toString()
Display this object as a string. |
Methods inherited from class java.util.Date |
after, before, clone, compareTo, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, UTC |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AvnmpTime(long t)
public AvnmpTime()
Method Detail |
public java.lang.String toString()
toString
in class java.util.Date
public long startTime()
public long now()
public AvnmpTime adjustRelative(long t)
t
- An adjustment amount which is added to the creation
time of this object.public long time()
public long diff(long t)
t
- Input timepublic long add(long t)
t
- Input timepublic long set(long t)
t
- The to set.public void resetRelative()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |