|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.semanticweb.owlapi.reasoner.impl.NodeImpl<E>
public class NodeImpl<E extends OWLLogicalEntity>
Author: Matthew Horridge
The University of Manchester
Information Management Group
Date: 01-Aug-2009
Method Summary | ||
---|---|---|
boolean |
contains(E entity)
Determines if this node contains the specified entity. |
|
static Node<OWLClass> |
createOWLClassBottomNode()
|
|
static Node<OWLClass> |
createOWLClassNode(OWLClass entity)
|
|
static Node<OWLClass> |
createOWLClassNode(java.util.Set<OWLClass> entities)
|
|
static Node<OWLClass> |
createOWLClassTopNode()
|
|
static Node<OWLDataProperty> |
createOWLDataPropertyBottomNode()
|
|
static Node<OWLDataProperty> |
createOWLDataPropertyNode(OWLDataProperty entity)
|
|
static Node<OWLDataProperty> |
createOWLDataPropertyNode(java.util.Set<OWLDataProperty> entities)
|
|
static Node<OWLDataProperty> |
createOWLDataPropertyTopNode()
|
|
static Node<OWLDatatype> |
createOWLDatatypeNode(OWLDatatype entity)
|
|
static Node<OWLNamedIndividual> |
createOWLNamedIndividualNode(OWLNamedIndividual entity)
|
|
static Node<OWLNamedIndividual> |
createOWLNamedIndividualNode(java.util.Set<OWLNamedIndividual> entities)
|
|
static
|
createOWLNode(E entity)
|
|
static Node<OWLObjectProperty> |
createOWLObjectPropertyBottomNode()
|
|
static Node<OWLObjectProperty> |
createOWLObjectPropertyNode(OWLObjectProperty entity)
|
|
static Node<OWLObjectProperty> |
createOWLObjectPropertyNode(java.util.Set<OWLObjectProperty> entities)
|
|
static Node<OWLObjectProperty> |
createOWLObjectPropertyTopNode()
|
|
java.util.Set<E> |
getEntities()
Gets the entities contained in this node. |
|
java.util.Set<E> |
getEntitiesMinus(E e)
Gets the entities contained in this node minus the specified entitie e . |
|
java.util.Set<E> |
getEntitiesMinusBottom()
Gets the entities contained in this node minus the bottom entity. |
|
java.util.Set<E> |
getEntitiesMinusTop()
Gets the entities contained in this node minus the top entity. |
|
E |
getRepresentativeElement()
Gets one of the entities contained in this entity set. |
|
int |
getSize()
Gets the number of entities contained in this Node |
|
boolean |
isBottomNode()
Determines if this node represents the bottom node (in a hierarchy). |
|
boolean |
isSingleton()
Determines if this Node contains just one entity. |
|
boolean |
isTopNode()
Determines if this node represents the top node (in a hierarchy). |
|
java.util.Iterator<E> |
iterator()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <E extends OWLLogicalEntity> Node<E> createOWLNode(E entity)
public static Node<OWLClass> createOWLClassTopNode()
public static Node<OWLClass> createOWLClassBottomNode()
public static Node<OWLObjectProperty> createOWLObjectPropertyTopNode()
public static Node<OWLObjectProperty> createOWLObjectPropertyBottomNode()
public static Node<OWLDataProperty> createOWLDataPropertyTopNode()
public static Node<OWLDataProperty> createOWLDataPropertyBottomNode()
public static Node<OWLClass> createOWLClassNode(OWLClass entity)
public static Node<OWLClass> createOWLClassNode(java.util.Set<OWLClass> entities)
public static Node<OWLObjectProperty> createOWLObjectPropertyNode(OWLObjectProperty entity)
public static Node<OWLObjectProperty> createOWLObjectPropertyNode(java.util.Set<OWLObjectProperty> entities)
public static Node<OWLDataProperty> createOWLDataPropertyNode(OWLDataProperty entity)
public static Node<OWLDataProperty> createOWLDataPropertyNode(java.util.Set<OWLDataProperty> entities)
public static Node<OWLDatatype> createOWLDatatypeNode(OWLDatatype entity)
public static Node<OWLNamedIndividual> createOWLNamedIndividualNode(OWLNamedIndividual entity)
public static Node<OWLNamedIndividual> createOWLNamedIndividualNode(java.util.Set<OWLNamedIndividual> entities)
public java.util.Set<E> getEntities()
Node
getEntities
in interface Node<E extends OWLLogicalEntity>
Node
.public int getSize()
Node
Node
getSize
in interface Node<E extends OWLLogicalEntity>
public boolean isTopNode()
Node
owl:Thing
. For an object property node, the top node
is the node that contains owl:topObjectProperty
. For a data property node, the top node is the
node that contains owl:topDataProperty
isTopNode
in interface Node<E extends OWLLogicalEntity>
true
if this node is an OWLClass
node and it contains owl:Thing
.
true
if this node is an OWLObjectProperty
node and it contains owl:topObjectProperty
.
true
if this node is an OWLDataProperty
node and it contains owl:topDataProperty
.
false
if none of the above.public boolean isBottomNode()
Node
owl:Nothing
. For an object property node, the bottom node
is the node that contains owl:bottomObjectProperty
. For a data property node, the bottom node is the
node that contains owl:bottomDataProperty
isBottomNode
in interface Node<E extends OWLLogicalEntity>
true
if this node is an OWLClass
node and it contains owl:Nothing
.
true
if this node is an OWLObjectProperty
node and it contains owl:bottomObjectProperty
.
true
if this node is an OWLDataProperty
node and it contains owl:bottomDataProperty
.
false
if none of the above.public java.util.Set<E> getEntitiesMinus(E e)
Node
e
. This essentially
returns the entities that are returned by Node.getEntities()
minus the specified entity e
getEntitiesMinus
in interface Node<E extends OWLLogicalEntity>
e
- The entity that, is contained within this node, but should not be included in the return set.
e
. If
e
is not contained within this node then the full set of entities returned is the same as that
returned by Node.getEntities()
public java.util.Set<E> getEntitiesMinusTop()
Node
owl:Thing
.
For a node of object properties the top entity is owl:topObjectProperty
.
For a node of data properties the top entity is owl:topDataProperty
getEntitiesMinusTop
in interface Node<E extends OWLLogicalEntity>
Node.getEntities()
.public java.util.Set<E> getEntitiesMinusBottom()
Node
owl:Nothing
.
For a node of object properties the bottom entity is owl:bottomObjectProperty
.
For a node of data properties the bottom entity is owl:bottomDataProperty
getEntitiesMinusBottom
in interface Node<E extends OWLLogicalEntity>
Node.getEntities()
.public boolean isSingleton()
Node
Node
contains just one entity.
isSingleton
in interface Node<E extends OWLLogicalEntity>
true
if this Node
contains just one entity, otherwise false
public E getRepresentativeElement()
Node
getRepresentativeElement
in interface Node<E extends OWLLogicalEntity>
public java.util.Iterator<E> iterator()
iterator
in interface java.lang.Iterable<E extends OWLLogicalEntity>
public boolean contains(E entity)
Node
contains
in interface Node<E extends OWLLogicalEntity>
entity
- The entity to check for
true
if this node contains entity
, or false
if this node
does not contain entity
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |