|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.service.nodemap.affinity.graph.WeightedEdge
public class WeightedEdge
An edge with an associated weight.
| Constructor Summary | |
|---|---|
WeightedEdge()
Constructs a weighted edge with an initial weight of 1. |
|
WeightedEdge(long value)
Constructs a weighted edge with an initial weight of value. |
|
| Method Summary | |
|---|---|
void |
addWeight(long value)
Adds the given value to the edge weight. |
long |
getWeight()
Returns the weight of this edge. |
void |
incrementWeight()
Increments the edge weight. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WeightedEdge()
1.
public WeightedEdge(long value)
value.
value - the initial weight| Method Detail |
|---|
public long getWeight()
2. If they both access a different
object, object2, once, the weight will now be 3.
public void incrementWeight()
public void addWeight(long value)
value to the edge weight.
value - the value to add to the weightpublic String toString()
toString in class Object
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||