|
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.Link
A class representing a link between a parent and a child node.
Field Summary | |
boolean |
active
Flag indicating time-independent link activity |
PeriodTable |
activity
Table of active periods for this link |
java.util.Hashtable |
data
Storage available to visitors to store partial results |
TreeNode |
node
Child node on other end of link |
boolean |
primary
Flag indicating primary links |
(package private) static long |
serialVersionUID
Serial version ID |
Constructor Summary | |
Link(TreeNode node)
Constructor. |
Method Summary | |
long |
activate(long time,
long next)
Mark the link as active for a duration between two timestamps. |
void |
clearData()
Clear activity table and stored data. |
long |
deactivate(long time)
Mark the link as inactive starting at the passed timestamp. |
boolean |
isActive()
Check whether link is explicitly marked active. |
boolean |
isActive(long time)
Check whether the link is active for a given timestamp. |
boolean |
isPrimary()
Check whether link is marked primary. |
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 TreeNode node
public PeriodTable activity
public transient boolean primary
public transient boolean active
public transient java.util.Hashtable data
Constructor Detail |
public Link(TreeNode node)
TreeNode
- node on other end of linkMethod Detail |
public boolean isPrimary()
boolean
whether link is primarypublic boolean isActive()
boolean
whether link is activepublic boolean isActive(long time)
long
- session timestamppublic long activate(long time, long next)
long
- session timestamppublic long deactivate(long time)
long
- session timestamppublic 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 |