|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.semanticweb.elk.reasoner.taxonomy.IndividualNode
public class IndividualNode
Class for storing information about a class in the context of classification.
It is the main data container for 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.
| Constructor Summary | |
|---|---|
protected |
IndividualNode(Collection<ElkNamedIndividual> members)
Constructing the class node for a given taxonomy and the set of equivalent classes. |
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected IndividualNode(Collection<ElkNamedIndividual> members)
taxonomy - the taxonomy to which this node belongsmembers - non-empty list of equivalent ElkClass objects| Method Detail |
|---|
public void addDirectTypeNode(UpdateableTypeNode<ElkClass,ElkNamedIndividual> typeNode)
addDirectTypeNode in interface UpdateableInstanceNode<ElkClass,ElkNamedIndividual>typeNode - node to addpublic Set<ElkNamedIndividual> getMembers()
Node
getMembers in interface Node<ElkNamedIndividual>public void setMembers(Collection<ElkNamedIndividual> members)
public ElkNamedIndividual getCanonicalMember()
Node
getCanonicalMember 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 final int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic 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>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||