mwalk.visitor
Class CountVisitor
java.lang.Object
|
+--mwalk.visitor.AbstractVisitor
|
+--mwalk.visitor.GlobalVisitor
|
+--mwalk.visitor.RandomVisitor
|
+--mwalk.visitor.CountVisitor
- public class CountVisitor
- extends RandomVisitor
A compund visitor that runs the link count and degree count
visitors using a random sampling of active receivers.
- Version:
- 1.0
- Author:
- Robert Chalmers
Method Summary |
boolean |
again(Tree tree)
Determine whether to walk the tree again. |
boolean |
init(Tree tree)
Initialize visitor. |
Methods inherited from class mwalk.visitor.GlobalVisitor |
getChildren,
getParents,
getReceivers,
nextReceiver,
postfix,
prefix,
prepare,
visitDown,
visitDown,
visitUp,
visitUp,
walkDown,
walkUp |
Methods inherited from class mwalk.visitor.AbstractVisitor |
cfgBoolean,
cfgInt,
cfgString,
cfgVisitor,
evaluator,
evaluator,
haveSeen,
haveVisited,
markSeen,
markVisited,
verbose |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
CountVisitor
public CountVisitor()
- Default constructor.
CountVisitor
public CountVisitor(int rounds,
boolean increment,
int incCount)
CountVisitor
public CountVisitor(DownVisitor dv)
CountVisitor
public CountVisitor(DownVisitor dv,
int rounds,
boolean increment,
int incCount)
init
public boolean init(Tree tree)
- Initialize visitor.
- Overrides:
- init in class RandomVisitor
- Parameters:
Tree
- current tree instance- Returns:
boolean
whether initialization succeeded
again
public boolean again(Tree tree)
- Determine whether to walk the tree again.
- Overrides:
- again in class RandomVisitor
- Parameters:
Tree
- current tree instance- Returns:
boolean
whether to walk again
Submit a bug or feature mwalk Platform API Specification 0.3.0
Sensitivity: {Public:Research}
Copyright(c) 2000, Robert Chalmers