|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.unimi.dico.islab.idbs2.cloud.CloudEdge
public class CloudEdge
Representation of a directed edge connecting two nodes of the cloud. An object of this class is composed
by a pointer to the starting node and a pointer to the target node (as the represented edge is always directed).
The last component is a weight
value.
CloudNode
,
Cloud
Method Summary | |
---|---|
Integer |
getId()
Get the id of the corresponding database persisted object. |
CloudNode |
getSource()
Getter for the starting (source) node of this edge. |
CloudNode |
getTarget()
Getter for the ending (target) node of this edge. |
double |
getWeight()
Getter for the weight parameter of this edge. |
void |
setWeight(double weight)
Setter for the weight parameter (could be used to modify the value set with the constructor). |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Integer getId()
Get the id of the corresponding database persisted object.
public void setWeight(double weight)
Setter for the weight
parameter (could be used to modify the value set with the constructor).
weight
- the weight of this edge.public double getWeight()
Getter for the weight
parameter of this edge.
public CloudNode getSource()
Getter for the starting (source) node of this edge.
public CloudNode getTarget()
Getter for the ending (target) node of this edge.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |