public class NodeConnection extends Object implements de.unirostock.sems.xmlutils.comparison.Connection
| Constructor and Description |
|---|
NodeConnection(NodeConnection toCopy)
Instantiates a new connection as a copy of toCopy.
|
NodeConnection(de.unirostock.sems.xmlutils.ds.TreeNode a,
de.unirostock.sems.xmlutils.ds.TreeNode b)
Instantiates a new connection, implicitly setting the weight to 1.
|
NodeConnection(de.unirostock.sems.xmlutils.ds.TreeNode a,
de.unirostock.sems.xmlutils.ds.TreeNode b,
double weight)
Instantiates a new connection, explicitly defining a weight.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(org.apache.jena.rdf.model.Property predicate,
org.apache.jena.rdf.model.RDFNode object)
Adds an annotation describing this node connection.
|
void |
addWeight(double u) |
List<Map.Entry<org.apache.jena.rdf.model.Property,org.apache.jena.rdf.model.RDFNode>> |
getAnnotations()
Gets the annotations of this mapping.
|
de.unirostock.sems.xmlutils.ds.TreeNode |
getPartnerOf(de.unirostock.sems.xmlutils.ds.TreeNode node) |
de.unirostock.sems.xmlutils.ds.TreeNode |
getTreeA()
Gets the corresponding node in tree a.
|
de.unirostock.sems.xmlutils.ds.TreeNode |
getTreeB()
Gets the corresponding node in tree b.
|
double |
getWeight() |
void |
scaleWeight(double u) |
void |
setWeight(double u) |
String |
toString() |
public NodeConnection(de.unirostock.sems.xmlutils.ds.TreeNode a,
de.unirostock.sems.xmlutils.ds.TreeNode b)
a - the node of tree 1b - the node of tree 2public NodeConnection(NodeConnection toCopy)
toCopy - the connection to copypublic NodeConnection(de.unirostock.sems.xmlutils.ds.TreeNode a,
de.unirostock.sems.xmlutils.ds.TreeNode b,
double weight)
a - the node of tree 1b - the node of tree 2weight - the weight of this connectionpublic List<Map.Entry<org.apache.jena.rdf.model.Property,org.apache.jena.rdf.model.RDFNode>> getAnnotations()
public void addAnnotation(org.apache.jena.rdf.model.Property predicate,
org.apache.jena.rdf.model.RDFNode object)
predicate - the predicate that relates to an objectobject - the actual object describing this elementpublic de.unirostock.sems.xmlutils.ds.TreeNode getTreeA()
getTreeA in interface de.unirostock.sems.xmlutils.comparison.Connectionpublic de.unirostock.sems.xmlutils.ds.TreeNode getTreeB()
getTreeB in interface de.unirostock.sems.xmlutils.comparison.Connectionpublic void setWeight(double u)
setWeight in interface de.unirostock.sems.xmlutils.comparison.Connectionpublic void addWeight(double u)
addWeight in interface de.unirostock.sems.xmlutils.comparison.Connectionpublic void scaleWeight(double u)
scaleWeight in interface de.unirostock.sems.xmlutils.comparison.Connectionpublic double getWeight()
getWeight in interface de.unirostock.sems.xmlutils.comparison.Connectionpublic de.unirostock.sems.xmlutils.ds.TreeNode getPartnerOf(de.unirostock.sems.xmlutils.ds.TreeNode node)
getPartnerOf in interface de.unirostock.sems.xmlutils.comparison.ConnectionCopyright © 2019 SEMS project @ University of Rostock. All rights reserved.