org.shiftone.bigcalc.core.operation.binary.compare
Class CompareOperation

java.lang.Object
  extended byorg.shiftone.bigcalc.core.operation.binary.compare.CompareOperation
All Implemented Interfaces:
BinaryOperation
Direct Known Subclasses:
GreaterThanOperation, GreaterThanOrEqualsOperation, LessThanOperation, LessThanOrEqualsOperation

public abstract class CompareOperation
extends java.lang.Object
implements BinaryOperation

Version:
$Revision: 1.5 $
Author:
$Author: jeffdrost $

Constructor Summary
protected CompareOperation()
           
 
Method Summary
 java.lang.Object evaluate(Context stdContext, java.lang.Object lhs, java.lang.Object rhs)
           
abstract  boolean isSatisfied(int compareResult)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.shiftone.bigcalc.core.operation.BinaryOperation
getSymbol
 

Constructor Detail

CompareOperation

protected CompareOperation()
Method Detail

evaluate

public java.lang.Object evaluate(Context stdContext,
                                 java.lang.Object lhs,
                                 java.lang.Object rhs)
                          throws java.lang.Exception
Specified by:
evaluate in interface BinaryOperation
Throws:
java.lang.Exception

isSatisfied

public abstract boolean isSatisfied(int compareResult)