|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.semanticweb.owlapi.reasoner.impl.NodeSetImpl<E>
public class NodeSetImpl<E extends OWLLogicalEntity>
Author: Matthew Horridge
The University of Manchester
Information Management Group
Date: 04-Dec-2009
Method Summary | |
---|---|
boolean |
containsEntity(E e)
A convenience method that determines if this NodeSet contains a specific entity. |
NodeSet<E> |
createSingleton(E entity)
|
NodeSet<E> |
createSingleton(Node<E> node)
|
java.util.Set<E> |
getFlattened()
A convenience method that gets all of the entities contained in the Nodes in this NodeSet . |
boolean |
isBottomSingleton()
Determies if this NodeSet is a singleton that only contains the bottom node (in a hierarchy). |
boolean |
isEmpty()
|
boolean |
isSingleton()
Determines if this NodeSet is a singleton. |
boolean |
isTopSingleton()
Determines if this NodeSet is a singleton node that only contains the top node (in a hierarchy). |
java.util.Iterator<Node<E>> |
iterator()
|
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public NodeSet<E> createSingleton(E entity)
public NodeSet<E> createSingleton(Node<E> node)
public java.util.Set<E> getFlattened()
NodeSet
Nodes
in this NodeSet
.
getFlattened
in interface NodeSet<E extends OWLLogicalEntity>
Nodes
in this NodeSet
.public boolean containsEntity(E e)
NodeSet
NodeSet
contains a specific entity.
containsEntity
in interface NodeSet<E extends OWLLogicalEntity>
e
- The entity to test for
true
if this NodeSet
contains a Node
that contains the entity,
e
, and false
if this NodeSet
does not contain a Node
that contains the entity, e
.public boolean isSingleton()
NodeSet
NodeSet
is a singleton. A NodeSet
is a singleton if it contains
only one Node
.
isSingleton
in interface NodeSet<E extends OWLLogicalEntity>
true
if this NodeSet
is a singleton, otherwise false
.public boolean isTopSingleton()
NodeSet
NodeSet
is a singleton node that only contains the top node (in a hierarchy).
isTopSingleton
in interface NodeSet<E extends OWLLogicalEntity>
true
if this NodeSet
is a singleton that contains only the top node, and
false
otherwise.Node#isTopNode()}
public boolean isBottomSingleton()
NodeSet
NodeSet
is a singleton that only contains the bottom node (in a hierarchy).
isBottomSingleton
in interface NodeSet<E extends OWLLogicalEntity>
true
if this NodeSet
is a singleton that only contains a node that is the
bottom node, otherwise false
Node#isBottomNode()}
public int size()
public boolean isEmpty()
isEmpty
in interface NodeSet<E extends OWLLogicalEntity>
public java.util.Iterator<Node<E>> iterator()
iterator
in interface java.lang.Iterable<Node<E extends OWLLogicalEntity>>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |