edu.isi.pegasus.planner.namespace.aggregator
Class MIN

java.lang.Object
  extended by edu.isi.pegasus.planner.namespace.aggregator.Abstract
      extended by edu.isi.pegasus.planner.namespace.aggregator.MIN
All Implemented Interfaces:
Aggregator

public class MIN
extends Abstract

An implementation of the Aggregator interface that takes the minimum of the profile values. In the case of either of the profile values not valid integers, the default value is picked up.

Version:
$Revision: 2550 $
Author:
Karan Vahi

Field Summary
 
Fields inherited from interface edu.isi.pegasus.planner.namespace.aggregator.Aggregator
VERSION
 
Constructor Summary
MIN()
           
 
Method Summary
 String compute(String oldValue, String newValue, String dflt)
          Returns the minimum of two values.
 
Methods inherited from class edu.isi.pegasus.planner.namespace.aggregator.Abstract
parseInt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MIN

public MIN()
Method Detail

compute

public String compute(String oldValue,
                      String newValue,
                      String dflt)
Returns the minimum of two 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 © 2011 The University of Southern California. All Rights Reserved.