mwalk Platform 0.3.0

mwalk.visitor
Class RandomPathVisitor

java.lang.Object
  |
  +--mwalk.visitor.AbstractVisitor
        |
        +--mwalk.visitor.RandomPathVisitor

public class RandomPathVisitor
extends AbstractVisitor
implements UpVisitor

A visitor used to mark the primary path for each randomly selected receiver as active.

Version:
1.0
Author:
Robert Chalmers

Fields inherited from class mwalk.visitor.AbstractVisitor
CFG_BASE, eval, seen, verbose
 
Constructor Summary
RandomPathVisitor()
          Default constructor.
 
Method Summary
 TreeNode[] getParents(Tree tree, TreeNode node)
          Retrieve the list of parents of this node.
 boolean nextReceiver(Tree tree, Receiver recv)
          Check whether the next receiver should start a visiting path.
 void reset(Tree tree)
          Reset the visitor for a new pass over the tree.
 
Methods inherited from class mwalk.visitor.AbstractVisitor
again, cfgBoolean, cfgInt, cfgString, cfgVisitor, evaluator, evaluator, getChildren, getReceivers, haveSeen, haveVisited, init, markSeen, markVisited, postfix, prefix, verbose, visitDown, visitDown, visitUp, visitUp, walkDown, walkUp
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

RandomPathVisitor

public RandomPathVisitor()
Default constructor.
Method Detail

reset

public void reset(Tree tree)
Reset the visitor for a new pass over the tree.
Overrides:
reset in class AbstractVisitor
Parameters:
Tree - vistited tree

nextReceiver

public boolean nextReceiver(Tree tree,
                            Receiver recv)
Check whether the next receiver should start a visiting path.
Specified by:
nextReceiver in interface UpVisitor
Overrides:
nextReceiver in class AbstractVisitor
Parameters:
Tree - current tree instance
Receiver - next receiver
Returns:
boolean whether to visit next receiver

getParents

public TreeNode[] getParents(Tree tree,
                             TreeNode node)
Retrieve the list of parents of this node.
Specified by:
getParents in interface UpVisitor
Overrides:
getParents in class AbstractVisitor
Parameters:
Tree - vistited tree
TreeNode - currently visited node
Returns:
TreeNode[] array of parent nodes of currently visited node

mwalk Platform 0.3.0

Submit a bug or feature mwalk Platform API Specification 0.3.0
Sensitivity: {Public:Research}
Copyright(c) 2000, Robert Chalmers