fr.ocelet.runtime.affectoperators
Interface AffectOperator<T>
- All Known Implementing Classes:
- Any, Max, Mean, Min
public interface AffectOperator<T>
Generic Affectation Operator definition . Those affectation operators
are used when several candidate values are simultaneously
affected to an Entity's property. That situation happens when
an entity is connected to several others in an interaction graph and
the interaction service assigns a new value to one property of that
entity. New values will come from every arc of the graph that is connected
to the entity. An affectation operator is used to avoid any affectation
conflict and perform the appropriate operation in case of multiple values.
|
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. |
compute
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.
- Parameters:
future - Vector of candidate values.
- Returns:
- One unique value