public class IndividualNode extends Object implements UpdateableInstanceNode<ElkClass,ElkNamedIndividual>
IndividualClassTaxonomy objects.
Like most such data containers in ELK, it is read-only for public access but
provides package-private ways of modifying it. Modifications of this class
happen in implementations of IndividualClassTaxonomy only.| Modifier | Constructor and Description |
|---|---|
protected |
IndividualNode(Collection<ElkNamedIndividual> members)
Constructing the class node for a given taxonomy and the set of
equivalent classes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDirectTypeNode(UpdateableTypeNode<ElkClass,ElkNamedIndividual> typeNode)
Add a direct super-class node.
|
Set<UpdateableTypeNode<ElkClass,ElkNamedIndividual>> |
getAllTypeNodes()
Get an unmodifiable set of
TypeNodes of which the members of this
InstanceNode are (possibly indirect) instances. |
ElkNamedIndividual |
getCanonicalMember()
Get one object to canonically represent the classes in this Node.
|
Set<UpdateableTypeNode<ElkClass,ElkNamedIndividual>> |
getDirectTypeNodes()
Get an unmodifiable set of nodes for ElkObjects that are direct types of
this Node.
|
Set<ElkNamedIndividual> |
getMembers()
Get an unmodifiable set of objects that this Node represents.
|
int |
hashCode() |
boolean |
isModified() |
void |
removeDirectTypeNode(UpdateableTypeNode<ElkClass,ElkNamedIndividual> typeNode) |
void |
setMembers(Collection<ElkNamedIndividual> members) |
String |
toString() |
boolean |
trySetModified(boolean modified) |
protected IndividualNode(Collection<ElkNamedIndividual> members)
taxonomy - the taxonomy to which this node belongsmembers - non-empty list of equivalent ElkClass objectspublic void addDirectTypeNode(UpdateableTypeNode<ElkClass,ElkNamedIndividual> typeNode)
addDirectTypeNode in interface UpdateableInstanceNode<ElkClass,ElkNamedIndividual>typeNode - node to addpublic Set<ElkNamedIndividual> getMembers()
NodegetMembers in interface Node<ElkNamedIndividual>public void setMembers(Collection<ElkNamedIndividual> members)
public ElkNamedIndividual getCanonicalMember()
NodegetCanonicalMember in interface Node<ElkNamedIndividual>public Set<UpdateableTypeNode<ElkClass,ElkNamedIndividual>> getDirectTypeNodes()
InstanceNodeTypeNodes of which the members of this
InstanceNode are direct instances. A member is a direct instance
of a TypeNode if it is an instance of the TypeNode and
not an instance of any sub-node of a TypeNode.getDirectTypeNodes in interface InstanceNode<ElkClass,ElkNamedIndividual>public Set<UpdateableTypeNode<ElkClass,ElkNamedIndividual>> getAllTypeNodes()
InstanceNodeTypeNodes of which the members of this
InstanceNode are (possibly indirect) instances.getAllTypeNodes in interface InstanceNode<ElkClass,ElkNamedIndividual>public boolean trySetModified(boolean modified)
trySetModified in interface UpdateableNode<ElkNamedIndividual>public boolean isModified()
isModified in interface UpdateableNode<ElkNamedIndividual>public void removeDirectTypeNode(UpdateableTypeNode<ElkClass,ElkNamedIndividual> typeNode)
removeDirectTypeNode in interface UpdateableInstanceNode<ElkClass,ElkNamedIndividual>Copyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.