org.griphyn.cPlanner.namespace.aggregator
Interface Aggregator

All Known Implementing Classes:
Abstract, MAX, MIN, Sum, Update

public interface Aggregator

An internal interface, that allows us to perform aggregation functions on profiles during merging of profiles.

Version:
$Revision: 50 $
Author:
Karan Vahi

Field Summary
static String VERSION
          The version number associated with this API of Profile Aggregators.
 
Method Summary
 String compute(String oldValue, String newValue, String dflt)
          Do the aggregation function on the profile values.
 

Field Detail

VERSION

static final String VERSION
The version number associated with this API of Profile Aggregators.

See Also:
Constant Field Values
Method Detail

compute

String compute(String oldValue,
               String newValue,
               String dflt)
Do the aggregation function on the profile values.

Parameters:
oldValue - the existing value for the profile.
newValue - the new value being added to the profile.
dflt - the default value to be used in case the values are not of the correct type.
Returns:
the computed value as a String.


Copyright © 2007 The University of Southern California. All Rights Reserved.