public final class Association extends Object
Constructor and Description |
---|
Association(NodeHandle source,
NodeHandle target)
Constructor of the Association class.
|
Association(NodeHandle source,
NodeHandle target,
AssociationType type)
Constructor of the Association class.
|
Association(NodeHandle source,
NodeHandle target,
int typeValue)
Constructor of the Association class.
|
Association(OntologyHandle ontology,
int sourceId,
int targetId)
Constructor of the Association class.
|
Association(OntologyHandle ontology,
int sourceId,
int targetId,
AssociationType type)
Constructor of the Association class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Checks whether the two given objects are equal.
|
NodeHandle |
getSource()
Returns a reference to the source node.
|
NodeHandle |
getTarget()
Returns a reference to the target node.
|
AssociationType |
getType()
Returns the type of the association.
|
int |
hashCode()
Calculates a hash code for the Association from the source node and
target node.
|
public Association(NodeHandle source, NodeHandle target, AssociationType type)
source
- is the node from which the association originates.target
- is the node at which the association points.type
- describes the type of the association.public Association(NodeHandle source, NodeHandle target, int typeValue)
source
- is the node from which the association originates.target
- is the node at which the association points.typeValue
- describes the type of the association as the value that
corresponds to each AssociationType enumeration item.public Association(NodeHandle source, NodeHandle target)
source
- is the node from which the association originates.target
- is the node at which the association points.public Association(OntologyHandle ontology, int sourceId, int targetId, AssociationType type)
ontology
- is the ontology the association belongs to.sourceId
- is the id of the source node in the given ontology.targetId
- is the id of the target node in the given ontology.type
- is the type of the association.public Association(OntologyHandle ontology, int sourceId, int targetId)
ontology
- is the ontology the association belongs to.sourceId
- is the id of the source node in the given ontology.targetId
- is the id of the target node in the given ontology.public NodeHandle getSource()
public NodeHandle getTarget()
public AssociationType getType()
public boolean equals(Object o)
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