|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalvo.jesus.graph.NullVisitor
salvo.jesus.graph.CycleCheckVisitor
class CycleCheckVisitor
This is a non-public class the extends salvo.jesus.graph.Vistor to check if there is a cycle from a Vertex back to itself.
Visitor
Field Summary | |
---|---|
(package private) Vertex |
objectToCheck
Vertex to check for a cycle path |
Constructor Summary | |
---|---|
CycleCheckVisitor(Vertex objectToCheck)
Creates a new instance of CheckCycleVisitor and specifies which Vertex to be checked for a cycle path |
Method Summary | |
---|---|
boolean |
visit(Vertex objectToVisit)
Override of superclass' visit() method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Vertex objectToCheck
Constructor Detail |
---|
CycleCheckVisitor(Vertex objectToCheck)
objectToCheck
- Vertex to be checked for a cycle pathMethod Detail |
---|
public boolean visit(Vertex objectToVisit)
visit
in interface Visitor
visit
in class NullVisitor
objectToVisit
- Vertex being visited. This is compared
to the Vertex we are trying to check for a cycle path.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |