fr.ocelet.runtime.affectoperators
Class Max<T extends java.lang.Comparable<T>>

Package class diagram package Max
java.lang.Object
  extended by fr.ocelet.runtime.affectoperators.Max<T>
All Implemented Interfaces:
AffectOperator<T>

public class Max<T extends java.lang.Comparable<T>>
extends java.lang.Object
implements AffectOperator<T>

Returns The maximum value taken from the argument vector. This AffectOperator should only be used with number properties (real and int in Ocelet).

See Also:
AffectOperator

Constructor Summary
Max()
           
 
Method Summary
 T compute(java.util.ArrayList<T> future)
          Computes all the candidate values and produces one unique value of the same type to be used for property affectation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Max

public Max()
Method Detail

compute

public T compute(java.util.ArrayList<T> future)
Computes all the candidate values and produces one unique value of the same type to be used for property affectation. In this case the maximum value is returned.

Specified by:
compute in interface AffectOperator<T extends java.lang.Comparable<T>>
Parameters:
future - Vector of candidate values.
Returns:
The maximum value found in the argument future Vector.