|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--Vertex
|
+--EdgeColoringVertex
| Field Summary |
| Fields inherited from class Vertex |
neighbors, xFactor, yFactor |
| Constructor Summary | |
EdgeColoringVertex()
|
|
| Method Summary | |
void |
actionR0()
|
void |
actionR1()
|
void |
actionR2()
|
void |
actionR3()
|
void |
actionR4()
|
void |
actionR5()
|
boolean |
agree()
This method should determine if vertex state agrees to rules of a specified algorithm |
boolean |
clauseR0()
|
boolean |
clauseR1()
|
boolean |
clauseR2()
|
boolean |
clauseR3()
|
boolean |
clauseR4()
|
boolean |
clauseR5()
|
java.lang.String |
getStateInfo()
This method should get a state info of a vertex. |
int |
maxNDeg()
|
void |
move(int info)
This method should make a move assuming that vertex is enabled. |
void |
paintState(java.awt.Graphics graphics)
This method should paint a vertex according to its state, however in Vertex class it just paint circles with radius in red. |
void |
printState()
This method should print a state of a vertex. |
void |
randomState(java.util.Random r)
This method should random a state of a vertex. |
| Methods inherited from class Vertex |
addEdge, clone, deg, distance, getInfo, getName, getRadius, getXCoordinate, getYCoordinate, iterator, print, setCoordinates, setFactors, setName, setRadius, setXCoordinate, setYCoordinate |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EdgeColoringVertex()
| Method Detail |
public boolean clauseR0()
public void actionR0()
public boolean clauseR1()
public void actionR1()
public boolean clauseR2()
public void actionR2()
public boolean clauseR3()
public void actionR3()
public boolean clauseR4()
public void actionR4()
public boolean clauseR5()
public void actionR5()
public boolean agree()
Vertex
agree in class Vertexpublic void move(int info)
Vertex
move in class Vertexpublic int maxNDeg()
public void randomState(java.util.Random r)
Vertex
randomState in class Vertexpublic void printState()
Vertex
printState in class Vertexpublic void paintState(java.awt.Graphics graphics)
Vertex
paintState in class VertexVertex.setRadius(int),
Graph.paintStates(java.awt.Graphics)public java.lang.String getStateInfo()
Vertex
getStateInfo in class VertexVertexInfoDialog
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||