|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ksu.cis.projects.bogor.module.state.StateValueVisitor
public final class StateValueVisitor
A value visitor for a state.
Field Summary | |
---|---|
static boolean |
BREADTH_FIRST
|
static boolean |
DEPTH_FIRST
|
static boolean |
FOLLOW_TRANSIENTS
|
static boolean |
PRUNE_TRANSIENTS
|
static boolean |
SKIP_RECORD_LOCKS
|
static boolean |
VISIT_RECORD_LOCKS
|
Constructor Summary | |
---|---|
StateValueVisitor(SymbolTable symbolTable,
IValueVisitorAction valueVisitorAction,
boolean depthFirst,
boolean visitRecordLock,
boolean pruneTransients)
Default constructor. |
Method Summary | |
---|---|
void |
dispose()
Remove references. |
HashSet<IValue> |
getSeenSet()
Gets the seen set of this visitor. |
LinkedList |
getWorkList()
Gets the work list of this visitor. |
void |
setValueComparator(IValueComparator vc)
Set the value comparator. |
void |
visit(IState s,
IntIntTable threadOrderMap)
Visits values reachable from a particular state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean DEPTH_FIRST
public static final boolean BREADTH_FIRST
public static final boolean PRUNE_TRANSIENTS
public static final boolean FOLLOW_TRANSIENTS
public static final boolean VISIT_RECORD_LOCKS
public static final boolean SKIP_RECORD_LOCKS
Constructor Detail |
---|
public StateValueVisitor(SymbolTable symbolTable, IValueVisitorAction valueVisitorAction, boolean depthFirst, boolean visitRecordLock, boolean pruneTransients)
valueVisitorAction
- The value visitor action for this value visitor. Must be
non-null.depthFirst
- Indicates whether a DFS (if true) or BFS (otherwise).visitRecordLock
- Indicates whether record locks should be visited.Method Detail |
---|
public HashSet<IValue> getSeenSet()
public void setValueComparator(IValueComparator vc)
vc
- The value comparator.public LinkedList getWorkList()
public void dispose()
Disposable
dispose
in interface Disposable
Disposable.dispose()
public void visit(IState s, IntIntTable threadOrderMap)
s
- The state to start visiting from. Must be non-null.threadOrderMap
- The thread id to its ordering number mapping. The thread will
be visited based on the increasing order of in the map. (Only
the threads whose id are in the map will be visited). If null,
then no ordering is guaranteed and all threads in the state
will be visited.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |