|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.lifl.jedi.model.interactionSelection.reactiveSelection.PreferredSelectionNature<Element>
public abstract class PreferredSelectionNature<Element>
The preferred selection nature.
This provides a tool that gives to every element a preferrence/utility value. It selects the element of the list that has the maximal utility value.
If more than one element has the maximal value, the selected one is chosen at random among them.
The value is computed thanks to the getValueFor(Object)
method.
JEDI V 2.2 |
Created the 7th nov. 2008 |
Created the 4th may 2009 |
Yoann Kubera |
SMAC Team (Systèmes Multi-Agents et Comportement) |
LIFL (Laboratoire d'Informatique Fondamentale de Lille) |
University of Lille, France |
Constructor Summary | |
---|---|
PreferredSelectionNature()
Constructor of a preferred selection nature. |
Method Summary | |
---|---|
abstract PreferredSelectionNature<Element> |
clone()
Clones the selection nature. |
abstract double |
getValueFor(Element e)
Computes the value associated with a particular element. |
Element |
performSelection(java.util.List<Element> elements)
Performs the selection of an element among a list of elements according to the provided nature. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreferredSelectionNature()
Method Detail |
---|
public Element performSelection(java.util.List<Element> elements)
ElementSelectionNature
performSelection
in interface ElementSelectionNature<Element>
elements
- The set of elements in which selection
is made.
null
if no
element was selected.ElementSelectionNature.performSelection(java.util.List)
public abstract double getValueFor(Element e)
e
- The element for which the preference/utility value
is computed.
public abstract PreferredSelectionNature<Element> clone()
ElementSelectionNature
clone
in interface ElementSelectionNature<Element>
clone
in class java.lang.Object
Object.clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |