org.hawk.ds
Class HawkCalculator

java.lang.Object
  extended by org.hawk.ds.HawkCalculator

public class HawkCalculator
extends java.lang.Object

This computes hawk operation on the two input hawk variable.

See Also:
Variable, BinaryTree

Constructor Summary
HawkCalculator()
           
 
Method Summary
static IScript calculate(IScript leftElement, IScript rightElement, Element operatorElement)
          This operates on two input variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HawkCalculator

public HawkCalculator()
Method Detail

calculate

public static IScript calculate(IScript leftElement,
                                IScript rightElement,
                                Element operatorElement)
                         throws HawkException
This operates on two input variable.

Parameters:
leftElement - left element
rightElement - right element
operatorElement - operator
Returns:
returns hawk variable as result
Throws:
HawkException