uk.ac.manchester.cs.owl.owlapi
Class OWLObjectOneOfImpl

java.lang.Object
  extended by uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
      extended by uk.ac.manchester.cs.owl.owlapi.OWLClassExpressionImpl
          extended by uk.ac.manchester.cs.owl.owlapi.OWLAnonymousClassExpressionImpl
              extended by uk.ac.manchester.cs.owl.owlapi.OWLObjectOneOfImpl
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLAnonymousClassExpression, OWLClassExpression, OWLObject, OWLObjectOneOf, OWLPropertyRange, SWRLPredicate

public class OWLObjectOneOfImpl
extends OWLAnonymousClassExpressionImpl
implements OWLObjectOneOf

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 26-Oct-2006


Constructor Summary
OWLObjectOneOfImpl(OWLDataFactory dataFactory, java.util.Set<? extends OWLIndividual> values)
           
 
Method Summary
 void accept(OWLClassExpressionVisitor visitor)
          Accepts a visit from an OWLExpressionVisitor
<O> O
accept(OWLClassExpressionVisitorEx<O> visitor)
           
 void accept(OWLObjectVisitor visitor)
           
<O> O
accept(OWLObjectVisitorEx<O> visitor)
           
 OWLClassExpression asObjectUnionOf()
          Simplifies this enumeration to a union of singleton nominals
protected  int compareObjectOfSameType(OWLObject object)
           
 boolean equals(java.lang.Object obj)
           
 ClassExpressionType getClassExpressionType()
          Gets the class expression type for this class expression
 java.util.Set<OWLIndividual> getIndividuals()
          Gets the individuals that are in the oneOf.
 boolean isClassExpressionLiteral()
          Determines if this class is a literal.
 
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLAnonymousClassExpressionImpl
asConjunctSet, asDisjunctSet, asOWLClass, containsConjunct, getComplementNNF, getNNF, getObjectComplementOf, isAnonymous, isOWLNothing, isOWLThing
 
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
compareSets, compareTo, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getOWLDataFactory, getSignature, hashCode, isBottomEntity, isTopEntity, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLClassExpression
asConjunctSet, asDisjunctSet, asOWLClass, containsConjunct, getComplementNNF, getNNF, getObjectComplementOf, isAnonymous, isOWLNothing, isOWLThing
 

Constructor Detail

OWLObjectOneOfImpl

public OWLObjectOneOfImpl(OWLDataFactory dataFactory,
                          java.util.Set<? extends OWLIndividual> values)
Method Detail

getClassExpressionType

public ClassExpressionType getClassExpressionType()
Gets the class expression type for this class expression

Specified by:
getClassExpressionType in interface OWLClassExpression
Returns:
The class expression type

getIndividuals

public java.util.Set<OWLIndividual> getIndividuals()
Description copied from interface: OWLObjectOneOf
Gets the individuals that are in the oneOf. These individuals represent the exact instances (extension) of this class expression.

Specified by:
getIndividuals in interface OWLObjectOneOf
Returns:
The individiauls that are the values of this ObjectOneOf class expression.

isClassExpressionLiteral

public boolean isClassExpressionLiteral()
Description copied from interface: OWLClassExpression
Determines if this class is a literal. A literal being either a named class or the negation of a named class (i.e. A or not(A)).

Specified by:
isClassExpressionLiteral in interface OWLClassExpression
Returns:
true if this is a literal, or false if this is not a literal.

asObjectUnionOf

public OWLClassExpression asObjectUnionOf()
Description copied from interface: OWLObjectOneOf
Simplifies this enumeration to a union of singleton nominals

Specified by:
asObjectUnionOf in interface OWLObjectOneOf
Returns:
This enumeration in a more standard DL form. simp({a}) = {a} simp({a0, ... , {an}) = unionOf({a0}, ... , {an})

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OWLObjectImpl

accept

public void accept(OWLClassExpressionVisitor visitor)
Description copied from interface: OWLClassExpression
Accepts a visit from an OWLExpressionVisitor

Specified by:
accept in interface OWLClassExpression
Parameters:
visitor - The visitor that wants to visit

accept

public void accept(OWLObjectVisitor visitor)
Specified by:
accept in interface OWLObject

accept

public <O> O accept(OWLClassExpressionVisitorEx<O> visitor)
Specified by:
accept in interface OWLClassExpression

accept

public <O> O accept(OWLObjectVisitorEx<O> visitor)
Specified by:
accept in interface OWLObject

compareObjectOfSameType

protected int compareObjectOfSameType(OWLObject object)
Specified by:
compareObjectOfSameType in class OWLObjectImpl