|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.introspect.SimpleRealTime
Implements time with real time.
Nested Class Summary | |
---|---|
static class |
SimpleRealTime.Distance
Metric distance between two SimpleRealTime s. |
Nested classes inherited from class ostore.introspect.Time |
---|
Time.NeverTime |
Field Summary |
---|
Fields inherited from interface ostore.introspect.Time |
---|
NEVER |
Constructor Summary | |
---|---|
SimpleRealTime(Date time)
Constructor. |
|
SimpleRealTime(InputBuffer buffer)
|
|
SimpleRealTime(long time)
Constructor. |
|
SimpleRealTime(NodeId nodeId)
Construct a time for now. |
|
SimpleRealTime(QSDate time)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(Object other)
|
Distance |
difference(Time to)
Distance from this Time to to time. |
boolean |
equals(Object other)
|
void |
serialize(OutputBuffer buffer)
Add the object to the buffer . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SimpleRealTime(NodeId nodeId)
nodeId
- the id of the current node. This is required if we are
using soss to simulate time. Otherwise it can be null
or bogus (we just use the physical real time).public SimpleRealTime(QSDate time)
time
- the time to construct this withpublic SimpleRealTime(Date time)
time
- the time to construct this withpublic SimpleRealTime(long time)
time
- the time to construct this withpublic SimpleRealTime(InputBuffer buffer) throws QSException
Method Detail |
public void serialize(OutputBuffer buffer)
QuickSerializable
buffer
.
serialize
in interface QuickSerializable
buffer
- the output buffer to add the object topublic int compareTo(Object other)
compareTo
in interface Comparable
public boolean equals(Object other)
equals
in class Object
public Distance difference(Time to)
Time
difference
in interface Time
to
- next time
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |