|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface DirectedAcyclicGraph.Visited
this interface allows specification of a strategy for marking vertices as visited (based on their topological index, so the vertex type isn't part of the interface).
Method Summary | |
---|---|
void |
clearVisited(int index)
Clear the visited state of the given topological index |
boolean |
getVisited(int index)
has the given topological index been visited? |
void |
setVisited(int index)
mark the given topological index as visited |
Method Detail |
---|
void setVisited(int index)
index
- the topological indexboolean getVisited(int index)
index
- the topological indexvoid clearVisited(int index) throws UnsupportedOperationException
index
-
UnsupportedOperationException
- if the implementation doesn't
support (or doesn't need) clearance. For example, if the factory
vends a new instance every time, it is a waste of cycles to clear the
state after the search of the Affected Region is done, so an
UnsupportedOperationException *should* be thrown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |