E
- the type of owl objects in the nodeIterable<org.semanticweb.owlapi.reasoner.Node<E>>
, org.semanticweb.owlapi.reasoner.NodeSet<E>
OWLClassNodeSet
, OWLDataPropertyNodeSet
, OWLDatatypeNodeSet
, OWLNamedIndividualNodeSet
, OWLObjectPropertyNodeSet
public abstract class DefaultNodeSet<E extends org.semanticweb.owlapi.model.OWLObject> extends Object implements org.semanticweb.owlapi.reasoner.NodeSet<E>
Constructor | Description |
---|---|
DefaultNodeSet() |
constructor for an empty node set.
|
DefaultNodeSet(E entity) |
|
DefaultNodeSet(Set<org.semanticweb.owlapi.reasoner.Node<E>> nodes) |
|
DefaultNodeSet(org.semanticweb.owlapi.reasoner.Node<E> node) |
Modifier and Type | Method | Description |
---|---|---|
void |
addAllNodes(Collection<org.semanticweb.owlapi.reasoner.Node<E>> nodeset) |
Adds a collection of
Node s to this set. |
void |
addDifferentEntities(Set<E> entities) |
Adds the specified entities as
Node s to this set. |
void |
addEntity(E entity) |
Adds an entity to this
NodeSet by wrapping it in a Node . |
void |
addNode(org.semanticweb.owlapi.reasoner.Node<E> node) |
Adds a
Node to this set. |
void |
addSameEntities(Set<E> entities) |
Adds the set of entities as a
Node to this set. |
boolean |
containsEntity(E e) |
|
boolean |
equals(Object obj) |
|
Set<E> |
getFlattened() |
|
Set<org.semanticweb.owlapi.reasoner.Node<E>> |
getNodes() |
|
int |
hashCode() |
|
boolean |
isBottomSingleton() |
|
boolean |
isEmpty() |
|
boolean |
isSingleton() |
|
boolean |
isTopSingleton() |
|
Iterator<org.semanticweb.owlapi.reasoner.Node<E>> |
iterator() |
|
String |
toString() |
forEach, spliterator
public DefaultNodeSet()
public DefaultNodeSet(@Nonnull E entity)
entity
- the entity to be containedpublic DefaultNodeSet(@Nonnull org.semanticweb.owlapi.reasoner.Node<E> node)
node
- the node to be contained@Nonnull public Set<org.semanticweb.owlapi.reasoner.Node<E>> getNodes()
getNodes
in interface org.semanticweb.owlapi.reasoner.NodeSet<E extends org.semanticweb.owlapi.model.OWLObject>
public void addEntity(@Nonnull E entity)
NodeSet
by wrapping it in a Node
.entity
- The entity to be added. The entity will be wrapped in the
Node
and the Node
added to this set. Must not be
null
.NullPointerException
- if entity
is null
.public void addNode(@Nonnull org.semanticweb.owlapi.reasoner.Node<E> node)
Node
to this set.node
- The Node
to be added.NullPointerException
- if entity
is null
.public void addAllNodes(@Nonnull Collection<org.semanticweb.owlapi.reasoner.Node<E>> nodeset)
Node
s to this set.nodeset
- The Node
s to be added. Note that if the collection is not
a set then duplicate Node
s will be filtered out.public void addSameEntities(@Nonnull Set<E> entities)
Node
to this set.entities
- The set of entities to be added. The entities will be wrapped in a
Node
which will be added to this NodeSet
.public void addDifferentEntities(@Nonnull Set<E> entities)
Node
s to this set.entities
- The entities to be added. Each entity will be wrapped in a
Node
which will then be added to this NodeSet
.@Nonnull public Set<E> getFlattened()
getFlattened
in interface org.semanticweb.owlapi.reasoner.NodeSet<E extends org.semanticweb.owlapi.model.OWLObject>
public boolean isEmpty()
isEmpty
in interface org.semanticweb.owlapi.reasoner.NodeSet<E extends org.semanticweb.owlapi.model.OWLObject>
public boolean containsEntity(E e)
containsEntity
in interface org.semanticweb.owlapi.reasoner.NodeSet<E extends org.semanticweb.owlapi.model.OWLObject>
public boolean isSingleton()
isSingleton
in interface org.semanticweb.owlapi.reasoner.NodeSet<E extends org.semanticweb.owlapi.model.OWLObject>
public boolean isTopSingleton()
isTopSingleton
in interface org.semanticweb.owlapi.reasoner.NodeSet<E extends org.semanticweb.owlapi.model.OWLObject>
public boolean isBottomSingleton()
isBottomSingleton
in interface org.semanticweb.owlapi.reasoner.NodeSet<E extends org.semanticweb.owlapi.model.OWLObject>
Copyright © 2018 The University of Manchester. All rights reserved.