uk.ac.manchester.cs.owl.owlapi
Class OWLIndividualRelationshipAxiomImpl<P extends OWLPropertyExpression,O extends OWLPropertyAssertionObject>

java.lang.Object
  extended by uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
      extended by uk.ac.manchester.cs.owl.owlapi.OWLAxiomImpl
          extended by uk.ac.manchester.cs.owl.owlapi.OWLLogicalAxiomImpl
              extended by uk.ac.manchester.cs.owl.owlapi.OWLIndividualRelationshipAxiomImpl<P,O>
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLAxiom, OWLIndividualAxiom, OWLLogicalAxiom, OWLObject, OWLPropertyAssertionAxiom<P,O>, OWLSubClassOfAxiomShortCut
Direct Known Subclasses:
OWLDataPropertyAssertionAxiomImpl, OWLNegativeDataPropertyAssertionImplAxiom, OWLNegativeObjectPropertyAssertionAxiomImpl, OWLObjectPropertyAssertionAxiomImpl

public abstract class OWLIndividualRelationshipAxiomImpl<P extends OWLPropertyExpression,O extends OWLPropertyAssertionObject>
extends OWLLogicalAxiomImpl
implements OWLPropertyAssertionAxiom<P,O>

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


Constructor Summary
OWLIndividualRelationshipAxiomImpl(OWLDataFactory dataFactory, OWLIndividual subject, P property, O object, java.util.Collection<? extends OWLAnnotation> annotations)
           
 
Method Summary
protected  int compareObjectOfSameType(OWLObject object)
           
 boolean equals(java.lang.Object obj)
           
 O getObject()
          Gets the object of this assertion
 P getProperty()
          Gets the property that this assertion acts along
 OWLIndividual getSubject()
          Gets the individual that is the subject of this assertion.
 
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLLogicalAxiomImpl
isLogicalAxiom
 
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLAxiomImpl
equalsIgnoreAnnotations, getAnnotations, getAnnotations, getNNF, getReferencedEntities, isAnnotated, isOfType, isOfType, mergeAnnos
 
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.OWLAxiom
accept, accept, equalsIgnoreAnnotations, getAnnotatedAxiom, getAnnotations, getAnnotations, getAxiomType, getAxiomWithoutAnnotations, getNNF, isAnnotated, isLogicalAxiom, isOfType, isOfType
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLObject
accept, accept, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntity
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLSubClassOfAxiomShortCut
asOWLSubClassOfAxiom
 

Constructor Detail

OWLIndividualRelationshipAxiomImpl

public OWLIndividualRelationshipAxiomImpl(OWLDataFactory dataFactory,
                                          OWLIndividual subject,
                                          P property,
                                          O object,
                                          java.util.Collection<? extends OWLAnnotation> annotations)
Method Detail

getSubject

public OWLIndividual getSubject()
Description copied from interface: OWLPropertyAssertionAxiom
Gets the individual that is the subject of this assertion.

Specified by:
getSubject in interface OWLPropertyAssertionAxiom<P extends OWLPropertyExpression,O extends OWLPropertyAssertionObject>
Returns:
The individual that represents the subject of this assertion.

getProperty

public P getProperty()
Description copied from interface: OWLPropertyAssertionAxiom
Gets the property that this assertion acts along

Specified by:
getProperty in interface OWLPropertyAssertionAxiom<P extends OWLPropertyExpression,O extends OWLPropertyAssertionObject>
Returns:
The property

getObject

public O getObject()
Description copied from interface: OWLPropertyAssertionAxiom
Gets the object of this assertion

Specified by:
getObject in interface OWLPropertyAssertionAxiom<P extends OWLPropertyExpression,O extends OWLPropertyAssertionObject>
Returns:
The object that this assertion points to.

equals

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

compareObjectOfSameType

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