|
mwalk Platform 0.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mwalk.core.PeriodEntry
A class representing a single period of activity for a link or receiver.
Field Summary | |
java.util.Hashtable |
data
Optional data which can be stored with period |
(package private) static long |
serialVersionUID
Serialized verios ID |
long |
start
Starting timestamp |
long |
stop
Ending timestamp |
Constructor Summary | |
PeriodEntry()
Default constructor. |
|
PeriodEntry(long start)
Constructor. |
|
PeriodEntry(long start,
long stop)
Constructor. |
|
PeriodEntry(PeriodEntry other)
Copy constructor. |
Method Summary | |
void |
clearData()
Clear temporary data for entry |
boolean |
contains(long time)
Determine whether the given timestamp falls within this period. |
long |
duration()
Calculate duration of period in terms of timestamp units. |
long |
duration(long bound)
Calculate duration of period from the start to the given bound in terms of timestamp units. |
private void |
readObject(java.io.ObjectInputStream in)
Initialize transient variables after reading the object in. |
Methods inherited from class java.lang.Object |
|
Field Detail |
static final long serialVersionUID
public long start
public long stop
public transient java.util.Hashtable data
Constructor Detail |
public PeriodEntry()
public PeriodEntry(long start)
long
- starting timestamppublic PeriodEntry(long start, long stop)
long
- starting timestamplong
- ending timestamppublic PeriodEntry(PeriodEntry other)
PeriodEntry
- entry to coptMethod Detail |
public boolean contains(long time)
long
- timestamp to checkpublic long duration()
long
duration of periodpublic long duration(long bound)
long
duration of bounded periodpublic void clearData()
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
ObjectInputStream
- input streamIOException
- if object not read correctly
|
mwalk Platform 0.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |