uk.ac.manchester.cs.owl.owlapi
Class SWRLBinaryAtomImpl<A extends SWRLArgument,B extends SWRLArgument>

java.lang.Object
  extended by uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
      extended by uk.ac.manchester.cs.owl.owlapi.SWRLAtomImpl
          extended by uk.ac.manchester.cs.owl.owlapi.SWRLBinaryAtomImpl<A,B>
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLObject, SWRLAtom, SWRLBinaryAtom<A,B>, SWRLObject
Direct Known Subclasses:
SWRLDataPropertyAtomImpl, SWRLDifferentIndividualsAtomImpl, SWRLObjectPropertyAtomImpl, SWRLSameIndividualAtomImpl

public abstract class SWRLBinaryAtomImpl<A extends SWRLArgument,B extends SWRLArgument>
extends SWRLAtomImpl
implements SWRLBinaryAtom<A,B>

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 15-Jan-2007


Constructor Summary
protected SWRLBinaryAtomImpl(OWLDataFactory dataFactory, SWRLPredicate predicate, A arg0, B arg1)
           
 
Method Summary
protected  int compareObjectOfSameType(OWLObject object)
           
 java.util.Collection<SWRLArgument> getAllArguments()
          Gets all of the arguments in this atom
 A getFirstArgument()
          Gets the first argument
 B getSecondArgument()
          Gets the second argument
 
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.SWRLAtomImpl
getPredicate
 
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
compareSets, compareTo, equals, 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.SWRLAtom
getPredicate
 
Methods inherited from interface org.semanticweb.owlapi.model.SWRLObject
accept, accept
 
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
 

Constructor Detail

SWRLBinaryAtomImpl

protected SWRLBinaryAtomImpl(OWLDataFactory dataFactory,
                             SWRLPredicate predicate,
                             A arg0,
                             B arg1)
Method Detail

getAllArguments

public java.util.Collection<SWRLArgument> getAllArguments()
Description copied from interface: SWRLAtom
Gets all of the arguments in this atom

Specified by:
getAllArguments in interface SWRLAtom
Returns:
The collection of arguments in this atom

getFirstArgument

public A getFirstArgument()
Description copied from interface: SWRLBinaryAtom
Gets the first argument

Specified by:
getFirstArgument in interface SWRLBinaryAtom<A extends SWRLArgument,B extends SWRLArgument>
Returns:
The second argument

getSecondArgument

public B getSecondArgument()
Description copied from interface: SWRLBinaryAtom
Gets the second argument

Specified by:
getSecondArgument in interface SWRLBinaryAtom<A extends SWRLArgument,B extends SWRLArgument>
Returns:
The second argument

compareObjectOfSameType

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