org.deri.wsmo4j.logicalexpression
Class SubConceptMoleculeImpl

java.lang.Object
  extended by org.deri.wsmo4j.logicalexpression.LogicalExpressionImpl
      extended by org.deri.wsmo4j.logicalexpression.MoleculeImpl
          extended by org.deri.wsmo4j.logicalexpression.SubConceptMoleculeImpl
All Implemented Interfaces:
org.omwg.logicalexpression.AtomicExpression, org.omwg.logicalexpression.LogicalExpression, org.omwg.logicalexpression.Molecule, org.omwg.logicalexpression.SubConceptMolecule

public class SubConceptMoleculeImpl
extends MoleculeImpl
implements org.omwg.logicalexpression.SubConceptMolecule

Represents a sub concept of molecule

 Created on Sep 19, 2005
 Committed by $Author$
 $Source$,
 

Version:
$Revision$ $Date$
Author:
Holger Lausen (holger.lausen@deri.org)

Constructor Summary
SubConceptMoleculeImpl(org.omwg.logicalexpression.terms.Term leftTerm, org.omwg.logicalexpression.terms.Term rightTerm)
           
 
Method Summary
 void accept(org.omwg.logicalexpression.Visitor v)
           
 boolean equals(Object o)
           The equals method implements an equivalence relation on non-null object references.
 
Methods inherited from class org.deri.wsmo4j.logicalexpression.MoleculeImpl
getLeftParameter, getRightParameter, hashCode, setLeftOperand, setRightOperand
 
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.Molecule
getLeftParameter, getRightParameter, setLeftOperand, setRightOperand
 
Methods inherited from interface org.omwg.logicalexpression.LogicalExpression
toString
 

Constructor Detail

SubConceptMoleculeImpl

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

equals

public boolean equals(Object o)
Description copied from class: MoleculeImpl

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 MoleculeImpl
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()

accept

public void accept(org.omwg.logicalexpression.Visitor v)
Specified by:
accept in interface org.omwg.logicalexpression.LogicalExpression


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