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

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

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

Returns The minimum 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
Min()
           
 
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

Min

public Min()
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 minimum value is returned.

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