Class MAX
- java.lang.Object
-
- edu.isi.pegasus.planner.namespace.aggregator.Abstract
-
- edu.isi.pegasus.planner.namespace.aggregator.MAX
-
- All Implemented Interfaces:
Aggregator
public class MAX extends Abstract
An implementation of the Aggregator interface that takes the maximum of the profile values. In the case of either of the profile values not valid integers, the default value is picked up.- Version:
- $Revision$
- Author:
- Karan Vahi
-
-
Field Summary
-
Fields inherited from interface edu.isi.pegasus.planner.namespace.aggregator.Aggregator
VERSION
-
-
Constructor Summary
Constructors Constructor Description MAX()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
compute(java.lang.String oldValue, java.lang.String newValue, java.lang.String dflt)
Returns the maximum of two values.
-
-
-
Method Detail
-
compute
public java.lang.String compute(java.lang.String oldValue, java.lang.String newValue, java.lang.String dflt)
Returns the maximum 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.
-
-