|
GoGraph |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--gograph.algorithms.courses.RecursiveDepthCourse
Recursive depth course algorithm thread.
| Field Summary | |
protected GoGraph |
gograph
Access back to GoGraph panel. |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
RecursiveDepthCourse(GoGraph gograph,
java.lang.String name)
Creates a new instance of RecursiveDepthCourse. |
|
| Method Summary | |
void |
beingVisitedVertex(GGModel model,
java.lang.Object vertex)
Set a vertex to "beingVisited" state. |
java.lang.String |
getText(int i)
|
void |
run()
Recursive depth course algorithm implementation. |
void |
useEdge(GGModel model,
java.lang.Object edge)
Set an edge to "used" state. |
void |
visit(GGModel model,
java.lang.Object vertex,
java.lang.Object father,
java.util.ArrayList result,
javax.swing.Action next,
GGExecPanel execPanel)
Recursive vertices visit. |
void |
visitVertex(GGModel model,
java.lang.Object vertex)
Set a vertex to "visited" state. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected GoGraph gograph
| Constructor Detail |
public RecursiveDepthCourse(GoGraph gograph,
java.lang.String name)
gograph - Access back to GoGraph panel.name - Algorithm name.| Method Detail |
public void run()
Waits on AlgoNextAction for stepping.
run in interface java.lang.Runnablerun in class java.lang.Thread
public void visit(GGModel model,
java.lang.Object vertex,
java.lang.Object father,
java.util.ArrayList result,
javax.swing.Action next,
GGExecPanel execPanel)
model - Graph model.vertex - Vertex to start with.
public void visitVertex(GGModel model,
java.lang.Object vertex)
model - Graph model.vertex - Vertex to be set.
public void beingVisitedVertex(GGModel model,
java.lang.Object vertex)
model - Graph model.vertex - Vertex to be set.
public void useEdge(GGModel model,
java.lang.Object edge)
model - Graph model.edge - Edge to be set.public java.lang.String getText(int i)
|
GoGraph |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||