|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuka.karmi.rmi.server.ReplicatedServerRef.CollectiveUpdateNode
Implementation of the GraphNode interface. There is a
one-to-one relationship of a ReplicatedServerRef object
and an instance of this class.
ReplicatedServerRef.node| Field Summary | |
(package private) EnlargingIntArray |
colors
|
(package private) int |
degree
|
(package private) int |
size
|
| Fields inherited from interface uka.graph.GraphNode |
UNDEFINED_COLOR |
| Constructor Summary | |
ReplicatedServerRef.CollectiveUpdateNode(int size)
|
|
| Method Summary | |
int |
getColor(int rank)
Gets the current color of the node with the given rank. |
IntIterator |
getColors()
|
int |
getDegree()
The degree of this graph node. |
IntIterator |
getNeighbors()
Iterates over all ranks of which are connected to this node. |
int |
getRank()
The rank of this graph node is unique among all nodes of the graph. |
IntIterator |
getRanks(int color)
|
void |
init()
This method is called before a coloring is computed. |
void |
setColor(int rank,
int color)
Sets the color of the node with the given rank. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
final int size
int degree
EnlargingIntArray colors
| Constructor Detail |
public ReplicatedServerRef.CollectiveUpdateNode(int size)
| Method Detail |
public void init()
uka.graph.GraphNode
init in interface uka.graph.GraphNodepublic int getDegree()
uka.graph.GraphNode
getDegree in interface uka.graph.GraphNodepublic int getRank()
uka.graph.GraphNode
getRank in interface uka.graph.GraphNodepublic IntIterator getNeighbors()
uka.graph.GraphNode
getNeighbors in interface uka.graph.GraphNodepublic int getColor(int rank)
uka.graph.GraphNode
getColor in interface uka.graph.GraphNode
public void setColor(int rank,
int color)
uka.graph.GraphNodeGraphNode.getColor(int) applies.
setColor in interface uka.graph.GraphNodepublic IntIterator getColors()
public IntIterator getRanks(int color)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||