fr.lifl.jedi.model.interactionSelection.reactiveSelection
Interface ElementSelectionNature<Element>

All Known Implementing Classes:
PreferredSelectionNature, RandomSelectionNature, WeightedSelectionNature

public interface ElementSelectionNature<Element>

Represents the nature of a selection.

All subclasses of this interface provide different heuristics to select an element among a list of elements.

Elements can have values :

Natures can be either random, preferred or weighted. Please refer to subclasses for more informations.

Version:
JEDI V 2.2
Created the 7th nov. 2008
Modified the 4th may 2009
Author:
Yoann Kubera
SMAC Team (Systèmes Multi-Agents et Comportement)
LIFL (Laboratoire d'Informatique Fondamentale de Lille)
University of Lille, France
See Also:
InteractionSelectionPolicy

Method Summary
 ElementSelectionNature<Element> clone()
          Clones the selection nature.
 Element performSelection(java.util.List<Element> elements)
          Performs the selection of an element among a list of elements according to the provided nature.
 

Method Detail

performSelection

Element performSelection(java.util.List<Element> elements)
Performs the selection of an element among a list of elements according to the provided nature.

Parameters:
elements - The set of elements in which selection is made.
Returns:
The selected element, or null if no element was selected.

clone

ElementSelectionNature<Element> clone()
Clones the selection nature.

Returns:
the new instance, which is a clone of this instance.