org.deri.wsmo4j.logicalexpression
Class MoleculeImpl

java.lang.Object
  extended by org.deri.wsmo4j.logicalexpression.LogicalExpressionImpl
      extended by org.deri.wsmo4j.logicalexpression.MoleculeImpl
All Implemented Interfaces:
org.omwg.logicalexpression.AtomicExpression, org.omwg.logicalexpression.LogicalExpression, org.omwg.logicalexpression.Molecule
Direct Known Subclasses:
AttributeMoleculeImpl, MemberShipMoleculeImpl, SubConceptMoleculeImpl

public abstract class MoleculeImpl
extends LogicalExpressionImpl
implements org.omwg.logicalexpression.Molecule

This class reunites all molecular simple logical expressions

Version:
$Revision: 1885 $ $Date: 2006-11-17 17:07:59 +0200 (Fri, 17 Nov 2006) $
Author:
DERI Innsbruck, reto.krummenacher@deri.org
See Also:
AtomicExpression

Constructor Summary
MoleculeImpl(org.omwg.logicalexpression.terms.Term leftTerm, org.omwg.logicalexpression.terms.Term rightTerm)
           
 
Method Summary
 boolean equals(Object o)
           The equals method implements an equivalence relation on non-null object references.
 org.omwg.logicalexpression.terms.Term getLeftParameter()
           
 org.omwg.logicalexpression.terms.Term getRightParameter()
           
 int hashCode()
           
 void setLeftOperand(org.omwg.logicalexpression.terms.Term t)
           
 void setRightOperand(org.omwg.logicalexpression.terms.Term t)
           
 
Methods inherited from class org.deri.wsmo4j.logicalexpression.LogicalExpressionImpl
getStringRepresentation, setStringRepresentation, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omwg.logicalexpression.LogicalExpression
accept, toString
 

Constructor Detail

MoleculeImpl

public MoleculeImpl(org.omwg.logicalexpression.terms.Term leftTerm,
                    org.omwg.logicalexpression.terms.Term rightTerm)
             throws IllegalArgumentException
Throws:
IllegalArgumentException
Method Detail

equals

public boolean equals(Object o)

The equals method implements an equivalence relation on non-null object references. Molecules are equal if their term is equal and if their set of AttributeSpecifications (if any), set of MemberOfs (if any) or set of subConceptOfs (if any) is equal.

It is generally necessary to override the hashCode method whenever this method is overridden.

Overrides:
equals in class Object
Parameters:
o - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
Object.equals(java.lang.Object), Object.hashCode()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getLeftParameter

public org.omwg.logicalexpression.terms.Term getLeftParameter()
Specified by:
getLeftParameter in interface org.omwg.logicalexpression.Molecule

getRightParameter

public org.omwg.logicalexpression.terms.Term getRightParameter()
Specified by:
getRightParameter in interface org.omwg.logicalexpression.Molecule

setLeftOperand

public void setLeftOperand(org.omwg.logicalexpression.terms.Term t)
                    throws IllegalArgumentException
Specified by:
setLeftOperand in interface org.omwg.logicalexpression.Molecule
Throws:
IllegalArgumentException

setRightOperand

public void setRightOperand(org.omwg.logicalexpression.terms.Term t)
                     throws IllegalArgumentException
Specified by:
setRightOperand in interface org.omwg.logicalexpression.Molecule
Throws:
IllegalArgumentException


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.