|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuka.graph.Message
uka.graph.dlf.DLFProposalMessage
In the DLF-algorithm each nodes makes some proposals about its futur color. This proposal it transmitted as a DLFProposalMessage.
| Field Summary | |
protected int |
degree
The degree of the source node. |
protected int |
proposedColor
The color, which the source node proposes for itself. |
protected int |
randomNumber
A random number chosen by the source node. |
| Fields inherited from class uka.graph.Message |
fromRank |
| Constructor Summary | |
DLFProposalMessage(int fromRank,
int proposedColor,
int degree,
int randomNumber)
|
|
| Method Summary | |
void |
appendTo(ToString s)
This method should append the contents of each instance variable of the current
object to the given ToString object. |
int |
compareTo(java.lang.Object other)
Compare messages according to their priority. |
int |
getDegree()
Returns the source-nodes degree. |
int |
getProposedColor()
|
int |
getRandomNumber()
Returns the source-nodes random-number. |
| Methods inherited from class uka.graph.Message |
getFromRank |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final int proposedColor
protected final int degree
protected final int randomNumber
| Constructor Detail |
public DLFProposalMessage(int fromRank,
int proposedColor,
int degree,
int randomNumber)
| Method Detail |
public int getProposedColor()
public int getDegree()
public int getRandomNumber()
public int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparablepublic void appendTo(ToString s)
Printableappend the contents of each instance variable of the current
object to the given ToString object. The appended data
should be labeled with the name of the corresponding instance
variable.
appendTo in interface PrintableObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||