Class EquationImpl

  extended by org.deri.wsmo4j.logicalexpression.LogicalExpressionImpl
      extended by org.deri.wsmo4j.logicalexpression.BinaryImpl
          extended by org.deri.wsmo4j.logicalexpression.EquationImpl
All Implemented Interfaces:
org.omwg.logicalexpression.Binary, org.omwg.logicalexpression.CompoundExpression, org.omwg.logicalexpression.Equivalence, org.omwg.logicalexpression.LogicalExpression

public class EquationImpl
extends BinaryImpl
implements org.omwg.logicalexpression.Equivalence

DERI Innsbruck,, DERI Innsbruck,

Field Summary
Fields inherited from class org.deri.wsmo4j.logicalexpression.BinaryImpl
exprLeft, exprRight
Constructor Summary
EquationImpl(org.omwg.logicalexpression.LogicalExpression exprLeft, org.omwg.logicalexpression.LogicalExpression exprRight)
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.BinaryImpl
getLeftOperand, getRightOperand, hashCode, listOperands, setLeftOperand, setOperands, 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.Binary
getLeftOperand, getRightOperand, setLeftOperand, setRightOperand
Methods inherited from interface org.omwg.logicalexpression.CompoundExpression
listOperands, setOperands
Methods inherited from interface org.omwg.logicalexpression.LogicalExpression

Constructor Detail


public EquationImpl(org.omwg.logicalexpression.LogicalExpression exprLeft,
                    org.omwg.logicalexpression.LogicalExpression exprRight)
             throws IllegalArgumentException
Method Detail


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


public boolean equals(Object o)

The equals method implements an equivalence relation on non-null object references. Binary expressions are equal if their operator, their left logical expression and their right logical expression are equal. In case the operator is either EQUIVALENT, OR or AND, the left logical expression must to be equal to either the left or the right logical expression of the obj argument and analogous for the right logical expression.

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

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

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