public interface Connection
| Modifier and Type | Method and Description |
|---|---|
void |
addWeight(double s)
Adds (+) a weight to the connection's weight.
|
TreeNode |
getPartnerOf(TreeNode node)
Gets the opposite of the given node in this connection.
|
TreeNode |
getTreeA()
Gets the corresponding node in tree a.
|
TreeNode |
getTreeB()
Gets the corresponding node in tree b.
|
double |
getWeight()
Gets the weight of that connection.
|
void |
scaleWeight(double s)
Scales the weight with an factor s.
|
void |
setWeight(double w)
Sets the weight of that connection.
|
TreeNode getPartnerOf(TreeNode node)
getPartnerOf (A) = B, and
getPartnerOf (B) = A.node - the nodeTreeNode getTreeA()
TreeNode getTreeB()
void setWeight(double w)
w - the new weightdouble getWeight()
void scaleWeight(double s)
s - the factor used to scale the weightvoid addWeight(double s)
s - the sCopyright © 2017 SEMS project @ University of Rostock. All rights reserved.