|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lifl.jedi.model.interactionSelection.reactiveSelection.WeightedSelectionNature<Element>
public abstract class WeightedSelectionNature<Element>
The weighted selection nature. This provides a tool that makes stochastic selection.
It gives to every element a weight (see getWeightFor(Object)).
From this weight, it provides to every element an interval included in [0,1[ such that :
Consequently, even if the list of elements is not empty, this selection process might not select an element.
| JEDI V 2.2 |
| Created the 7th nov. 2008 |
| Modified the 5th 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 | |
|---|---|
WeightedSelectionNature()
|
|
| Method Summary | |
|---|---|
abstract WeightedSelectionNature<Element> |
clone()
Clones the selection nature. |
abstract double |
getWeightFor(Element e)
Computes the weight 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 WeightedSelectionNature()
| Method Detail |
|---|
public abstract double getWeightFor(Element e)
e - The element for which the weight
is computed.
WeightedSelectionNaturepublic 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 WeightedSelectionNature<Element> clone()
ElementSelectionNature
clone in interface ElementSelectionNature<Element>clone in class java.lang.ObjectObject.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||