public static class DirectedAcyclicGraph.VisitedArrayImpl extends Object implements DirectedAcyclicGraph.Visited, DirectedAcyclicGraph.VisitedFactory
| Constructor and Description | 
|---|
DirectedAcyclicGraph.VisitedArrayImpl()
Constructs empty factory instance 
 | 
DirectedAcyclicGraph.VisitedArrayImpl(DirectedAcyclicGraph.Region region)  | 
| 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)  | 
boolean | 
getVisited(int index)
has the given topological index been visited? 
 | 
void | 
setVisited(int index)
mark the given topological index as visited 
 | 
public DirectedAcyclicGraph.VisitedArrayImpl()
public DirectedAcyclicGraph.VisitedArrayImpl(DirectedAcyclicGraph.Region region)
public DirectedAcyclicGraph.Visited getInstance(DirectedAcyclicGraph.Region affectedRegion)
getInstance in interface DirectedAcyclicGraph.VisitedFactorypublic 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.VisitedUnsupportedOperationException - 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.