org.griphyn.cPlanner.namespace.aggregator
Class Abstract

java.lang.Object
  extended by org.griphyn.cPlanner.namespace.aggregator.Abstract
All Implemented Interfaces:
Aggregator
Direct Known Subclasses:
MAX, MIN, Sum, Update

public abstract class Abstract
extends Object
implements Aggregator

An abstract implementation of the Profile Aggregators.

Version:
$Revision: 50 $
Author:
Karan Vahi

Field Summary
 
Fields inherited from interface org.griphyn.cPlanner.namespace.aggregator.Aggregator
VERSION
 
Constructor Summary
Abstract()
           
 
Method Summary
protected  int parseInt(String value, String dflt)
          Formats the String value as an integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.griphyn.cPlanner.namespace.aggregator.Aggregator
compute
 

Constructor Detail

Abstract

public Abstract()
Method Detail

parseInt

protected int parseInt(String value,
                       String dflt)
                throws NumberFormatException
Formats the String value as an integer. If the String is NaN then the default value is assigned.

Parameters:
value - the value to be converted to integer.
dflt - the default value to be used in case value is NaN or null.
Returns:
the integer value
Throws:
NumberFormatException - in the case when default value cannot be converted to an int.


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