public class Node extends NodeDescriptor
handle, names, root
Constructor and Description |
---|
Node(OntologyDatabase db,
NodeDescriptor node)
Constructor of the Node class.
|
Node(OntologyDatabase db,
NodeHandle handle,
Collection<NodeName> names)
Constructor of the Node class.
|
Node(OntologyDatabase db,
NodeHandle handle,
Collection<NodeName> names,
boolean root)
Constructor of the Node class.
|
Node(OntologyDatabase db,
NodeHandle handle,
NodeName name)
Constructor of the Node class.
|
Node(OntologyDatabase db,
NodeHandle handle,
NodeName name,
boolean root)
Constructor of the Node class.
|
Node(OntologyDatabase db,
NodeHandle handle,
String name)
Constructor of the Node class.
|
Node(OntologyDatabase db,
NodeHandle handle,
String name,
boolean root)
Constructor of the Node class.
|
Node(OntologyDatabase db,
OntologyHandle handle,
int id,
Collection<NodeName> names)
Constructor of the Node class.
|
Node(OntologyDatabase db,
OntologyHandle handle,
int id,
Collection<NodeName> names,
boolean root)
Constructor of the Node class.
|
Node(OntologyDatabase db,
OntologyHandle handle,
int id,
NodeName name)
Constructor of the Node class.
|
Node(OntologyDatabase db,
OntologyHandle handle,
int id,
NodeName name,
boolean root)
Constructor of the Node class.
|
Node(OntologyDatabase db,
OntologyHandle handle,
int id,
String name)
Constructor of the Node class.
|
Node(OntologyDatabase db,
OntologyHandle handle,
int id,
String name,
boolean root)
Constructor of the Node class.
|
Modifier and Type | Method and Description |
---|---|
void |
addAssociationFrom(NodeDescriptor node)
Adds a new association from the given node.
|
void |
addAssociationFrom(NodeDescriptor node,
AssociationType type)
Adds a new association from the given node.
|
void |
addAssociationFrom(NodeHandle node)
Adds a new association from the given node.
|
void |
addAssociationFrom(NodeHandle node,
AssociationType type)
Adds a new association from the given node.
|
void |
addAssociationTo(NodeDescriptor node)
Adds a new association to the given node.
|
void |
addAssociationTo(NodeDescriptor node,
AssociationType type)
Adds a new association to the given node.
|
void |
addAssociationTo(NodeHandle node)
Adds a new association to the given node.
|
void |
addAssociationTo(NodeHandle node,
AssociationType type)
Adds a new association to the given node.
|
void |
deleteAssociationFrom(NodeDescriptor node)
Deletes any present association frmo the given node (inbound, this node
is the target node).
|
void |
deleteAssociationFrom(NodeHandle node)
Deletes any present association frmo the given node (inbound, this node
is the target node).
|
void |
deleteAssociationTo(NodeDescriptor node)
Deletes any present association to the given node (outbound, this node is
the source node).
|
void |
deleteAssociationTo(NodeHandle node)
Deletes any present association to the given node (outbound, this node is
the source node).
|
Collection<Node> |
getAssociatedNodes()
Returns a list of associated nodes with all types and regardless of the
association direction.
|
Collection<Node> |
getAssociatedNodes(AssociationDirection direction)
Return a collection of nodes that are associated to this node, regardless
of the association type.
|
Collection<Node> |
getAssociatedNodes(int associationTypes)
Return a collection of nodes that are associated to this node, for both
association directions.
|
Collection<Node> |
getAssociatedNodes(int associationTypes,
AssociationDirection direction)
Return a collection of nodes that are associated to this node.
|
boolean |
isA(NodeHandle supposedParent)
This checks whether there exists a list of nodes this, n_1, n_2, ...,
n_k, p such that there exists an ISA-Association from each node in the
list to the next one.
|
getHandle, getId, getNames, getOntology, getPrimaryName, getPrimaryNameDescr, isRoot
public Node(OntologyDatabase db, NodeHandle handle, Collection<NodeName> names, boolean root)
db
- is a reference to the ontology database.handle
- is the handle of the node the descriptor describes.names
- is a list of NodeName instances that should be attached to
the node.root
- specifies whether the node is a root node.public Node(OntologyDatabase db, NodeHandle handle, NodeName name, boolean root)
db
- is a reference to the ontology database.handle
- is the handle of the node the descriptor describes.name
- is a single NodeName instance that should be attached to the
node.root
- specifies whether the node is a root node.public Node(OntologyDatabase db, NodeHandle handle, Collection<NodeName> names)
db
- is a reference to the ontology database.handle
- is the handle of the node the descriptor describes.names
- is a list of NodeName instances that should be attached to
the node.public Node(OntologyDatabase db, NodeHandle handle, NodeName name)
db
- is a reference to the ontology database.handle
- is the handle of the node the descriptor describes.name
- is a single NodeName instance that should be attached to the
node.public Node(OntologyDatabase db, NodeHandle handle, String name, boolean root)
db
- is a reference to the ontology database.handle
- is the handle of the node the descriptor describes.name
- is a single name that should be attached to the node.root
- specifies whether the node is a root node.public Node(OntologyDatabase db, NodeHandle handle, String name)
db
- is a reference to the ontology database.handle
- is the handle of the node the descriptor describes.name
- is a single name that should be attached to the node.public Node(OntologyDatabase db, OntologyHandle handle, int id, Collection<NodeName> names, boolean root)
db
- is a reference to the ontology database.handle
- is the handle of the ontology the node should belong toid
- is the id of the described node.names
- is a list of NodeName instances that should be attached to
the node.root
- specifies whether the node is a root node.public Node(OntologyDatabase db, OntologyHandle handle, int id, Collection<NodeName> names)
db
- is a reference to the ontology database.handle
- is the handle of the ontology the node should belong toid
- is the id of the described node.names
- is a list of NodeName instances that should be attached to
the node.public Node(OntologyDatabase db, OntologyHandle handle, int id, NodeName name, boolean root)
db
- is a reference to the ontology database.handle
- is the handle of the ontology the node should belong toid
- is the id of the described node.name
- is a single NodeName instance that should be attached to the
node.root
- specifies whether the node is a root node.public Node(OntologyDatabase db, OntologyHandle handle, int id, NodeName name)
db
- is a reference to the ontology database.handle
- is the handle of the ontology the node should belong toid
- is the id of the described node.name
- is a single NodeName instance that should be attached to the
node.public Node(OntologyDatabase db, OntologyHandle handle, int id, String name, boolean root)
db
- is a reference to the ontology database.handle
- is the handle of the ontology the node should belong toid
- is the id of the described node.name
- is a single name that should be attached to the node.root
- specifies whether the node is a root node.public Node(OntologyDatabase db, OntologyHandle handle, int id, String name)
db
- is a reference to the ontology database.handle
- is the handle of the ontology the node should belong toid
- is the id of the described node.name
- is a single name that should be attached to the node.public Node(OntologyDatabase db, NodeDescriptor node)
db
- is a reference to the ontology database.node
- is a reference to the node descriptor from which this
instance should be derived.public Collection<Node> getAssociatedNodes(int associationTypes, AssociationDirection direction)
associationTypes
- is a bit mask (values of the AssociationType enum
combined with a bitwise or) specifying the association types that should
be returned.direction
- is the direction for which associations should be
returned.public Collection<Node> getAssociatedNodes()
public Collection<Node> getAssociatedNodes(int associationTypes)
associationTypes
- is a bit mask (values of the AssociationType enum
combined with a bitwise or) specifying the association types that should
be returned.public Collection<Node> getAssociatedNodes(AssociationDirection direction)
direction
- is the direction for which associations should be
returned.public boolean isA(NodeHandle supposedParent)
supposedParent
- The supposed parent p.public void addAssociationTo(NodeHandle node, AssociationType type)
node
- is the node the association should be added to (target node,
outbound association).type
- is the type of the new association.public void addAssociationTo(NodeHandle node)
node
- is the node the association should be added to (target node,
outbound association).public void addAssociationTo(NodeDescriptor node, AssociationType type)
node
- is the node the association should be added to (target node,
outbound association).type
- is the type of the new association.public void addAssociationTo(NodeDescriptor node)
node
- is the node the association should be added to (target node,
outbound association).public void addAssociationFrom(NodeHandle node, AssociationType type)
node
- is the node the association should be added to (source node,
inbound association).type
- is the type of the new association.public void addAssociationFrom(NodeHandle node)
node
- is the node the association should be added to (source node,
inbound association).public void addAssociationFrom(NodeDescriptor node, AssociationType type)
node
- is the node the association should be added to (source node,
inbound association).type
- is the type of the new association.public void addAssociationFrom(NodeDescriptor node)
node
- is the node the association should be added to (source node,
inbound association).public void deleteAssociationTo(NodeHandle node)
node
- is the node to which all associations should be removed.public void deleteAssociationTo(NodeDescriptor node)
node
- is the node to which all associations should be removed.public void deleteAssociationFrom(NodeHandle node)
node
- is the node to which all associations should be removed.public void deleteAssociationFrom(NodeDescriptor node)
node
- is the node to which all associations should be removed.Copyright (C) 2013, 2014 Raphael Dickfelder, Jan Göpfert, Benjamin Paassen, Andreas Stöckel, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/scie