orc.lib.comp
Class NumericComparisonSite

java.lang.Object
  extended by orc.runtime.values.Value
      extended by orc.runtime.sites.Site
          extended by orc.runtime.sites.EvalSite
              extended by orc.lib.comp.NumericComparisonSite
All Implemented Interfaces:
Callable, Future
Direct Known Subclasses:
Greater, Greq, Leq, Less

public abstract class NumericComparisonSite
extends EvalSite

Author:
dkitchin

Constructor Summary
NumericComparisonSite()
           
 
Method Summary
abstract  boolean compare(int a, int b)
           
 Value evaluate(Args args)
           
 
Methods inherited from class orc.runtime.sites.EvalSite
callSite
 
Methods inherited from class orc.runtime.sites.Site
accept, createCall
 
Methods inherited from class orc.runtime.values.Value
forceArg, forceCall, head, isCons, isNil, isNone, isSome, signal, tail, untag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericComparisonSite

public NumericComparisonSite()
Method Detail

evaluate

public Value evaluate(Args args)
               throws TokenException
Specified by:
evaluate in class EvalSite
Throws:
TokenException

compare

public abstract boolean compare(int a,
                                int b)