public static class DirectedAcyclicGraph.VisitedBitSetImpl extends Object implements DirectedAcyclicGraph.Visited, DirectedAcyclicGraph.VisitedFactory
| Constructor and Description |
|---|
VisitedBitSetImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearVisited(int index)
Clear the visited state of the given topological index
|
DirectedAcyclicGraph.Visited |
getInstance(DirectedAcyclicGraph.Region affectedRegion)
Create a new instance of
DirectedAcyclicGraph.Visited. |
boolean |
getVisited(int index)
Has the given topological index been visited?
|
void |
setVisited(int index)
Mark the given topological index as visited
|
public DirectedAcyclicGraph.Visited getInstance(DirectedAcyclicGraph.Region affectedRegion)
DirectedAcyclicGraph.VisitedFactoryDirectedAcyclicGraph.Visited.getInstance in interface DirectedAcyclicGraph.VisitedFactoryaffectedRegion - the affected regionDirectedAcyclicGraph.Visited for the affected regionpublic void setVisited(int index)
DirectedAcyclicGraph.VisitedsetVisited in interface DirectedAcyclicGraph.Visitedindex - the topological indexpublic boolean getVisited(int index)
DirectedAcyclicGraph.VisitedgetVisited in interface DirectedAcyclicGraph.Visitedindex - the topological indexpublic void clearVisited(int index)
throws UnsupportedOperationException
DirectedAcyclicGraph.VisitedclearVisited in interface DirectedAcyclicGraph.Visitedindex - the indexUnsupportedOperationException - 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.Copyright © 2016. All rights reserved.