Boeing Simulation 3.1 API Specification

util
Class RegularTimeStamp

java.lang.Object
  |
  +--util.RegularTimeStamp
All Implemented Interfaces:
Serializable, TimeStamp

public class RegularTimeStamp
extends Object
implements TimeStamp, Serializable

This intended to be a non-realtime implementation of TimeStamp.

Version:
$Revision: 1.9 $
Author:
Dave Jurgens
See Also:
Serialized Form

Field Summary
protected  long millis
           
protected  int nanos
           
private static long serialVersionUID
           
 
Constructor Summary
RegularTimeStamp(long millis, int nanos)
           
 
Method Summary
static util.TimeStamp currentTime()
          Generates a TimeStamp at the current time.
 boolean equals(Object o)
          Returns whether the two stamps are at the same point in time.
 long getMilliseconds()
          Return the milliseconds component of this time.
 int getNanoseconds()
          Return the nanosecond component of this time.
 long getTimeSince(util.TimeStamp time)
          Return the value in milliseconds between the two objects.
 int hashCode()
           
 boolean isBefore(util.TimeStamp time)
          If this TimeStamp was created before the TimeStamp passed in.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

millis

protected final long millis

nanos

protected final int nanos
Constructor Detail

RegularTimeStamp

public RegularTimeStamp(long millis,
                        int nanos)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Description copied from interface: TimeStamp
Returns whether the two stamps are at the same point in time.

Specified by:
equals in interface TimeStamp
Overrides:
equals in class Object

getMilliseconds

public long getMilliseconds()
Description copied from interface: TimeStamp
Return the milliseconds component of this time.

Specified by:
getMilliseconds in interface TimeStamp

getNanoseconds

public int getNanoseconds()
Description copied from interface: TimeStamp
Return the nanosecond component of this time.

Specified by:
getNanoseconds in interface TimeStamp

getTimeSince

public long getTimeSince(util.TimeStamp time)
Description copied from interface: TimeStamp
Return the value in milliseconds between the two objects. All values returned should be positive.

Specified by:
getTimeSince in interface TimeStamp

isBefore

public boolean isBefore(util.TimeStamp time)
Description copied from interface: TimeStamp
If this TimeStamp was created before the TimeStamp passed in.

Specified by:
isBefore in interface TimeStamp

currentTime

public static util.TimeStamp currentTime()
Generates a TimeStamp at the current time.


toString

public String toString()
Overrides:
toString in class Object

Boeing Simulation 3.1 API Specification

To submit a bug or feature email the author of that class. Funding for this research was provided by Boeing and DARPA.