public class CloudEdge extends Object
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.
Modifier | Constructor and Description |
---|---|
protected |
CloudEdge() |
Modifier and Type | Method and Description |
---|---|
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()
Returns a string representation of this edge.
|
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.