unity.functions
Class A_Sum

java.lang.Object
  extended by unity.functions.Expression
      extended by unity.functions.Aggregate_Function
          extended by unity.functions.A_Sum

public class A_Sum
extends Aggregate_Function


Constructor Summary
A_Sum(Expression exp)
           
 
Method Summary
 void add(Tuple t)
           
 java.lang.Object compute()
           
 void reset()
           
 java.lang.String toString(Relation relation, Attribute outputAttribute)
           
 
Methods inherited from class unity.functions.Aggregate_Function
evaluate
 
Methods inherited from class unity.functions.Expression
computeType, getAttributeIndexReferences, getChild, getExprLocs, getNumChildren, getParent, getReturnType, hasChildren, setParent, setReturnType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

A_Sum

public A_Sum(Expression exp)
Method Detail

reset

public void reset()
Specified by:
reset in class Aggregate_Function

compute

public java.lang.Object compute()
Specified by:
compute in class Aggregate_Function

add

public void add(Tuple t)
Specified by:
add in class Aggregate_Function

toString

public java.lang.String toString(Relation relation,
                                 Attribute outputAttribute)
Overrides:
toString in class Expression