|
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.GenCourse
Abstract general 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 | |
GenCourse(GoGraph gograph,
java.lang.String name)
Creates a new instance of GenCourse. |
|
| Method Summary | |
void |
beingVisitedVertex(GGModel model,
java.lang.Object vertex)
Set a vertex to "beingVisited" state. |
abstract void |
computePriority(GGModel model,
org.jgraph.graph.GraphCell vertex1,
org.jgraph.graph.GraphCell vertex2)
Priority function for priority queue. |
javax.swing.table.TableModel |
getPrioQueue()
Get the priority queue used in algorithm. |
boolean |
getShowPriority()
Get the priority visualisation flag. |
abstract java.lang.String |
getText(int i)
|
void |
run()
General course algorithm implementation. |
void |
seeVertex(GGModel model,
java.lang.Object vertex)
Set a vertex to "seen" state. |
void |
setShowPriority(boolean isShowPriority)
Set the priority visualisation flag. |
void |
toNextVertex(GGModel model,
java.lang.Object edge)
Set an edge to "toNextVertex" state. |
void |
useEdge(GGModel model,
java.lang.Object edge)
Set an edge to "used" state. |
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 GenCourse(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 visitVertex(GGModel model,
java.lang.Object vertex)
model - Graph model.vertex - Vertex to be set.
public void seeVertex(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 toNextVertex(GGModel model,
java.lang.Object edge)
model - Graph model.edge - Edge to be set.
public void useEdge(GGModel model,
java.lang.Object edge)
model - Graph model.edge - Edge to be set.public void setShowPriority(boolean isShowPriority)
isShowPriority - Boolean to set flag with.public boolean getShowPriority()
public javax.swing.table.TableModel getPrioQueue()
public abstract void computePriority(GGModel model,
org.jgraph.graph.GraphCell vertex1,
org.jgraph.graph.GraphCell vertex2)
model - Graph model.vertex1 - Vertex whose priority is evaluated.vertex2 - Being visited vertex.public abstract java.lang.String getText(int i)
|
GoGraph |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||