|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.lifl.jedi.model.interactionSelection.reactiveSelection.RandomSelectionNature<Element>
public class RandomSelectionNature<Element>
The random selection nature.
This provides a tool to select an element at random among a list of elements.
This class has 3 static values, corresponding to the 3 possible random selections (random selection on RealizableTuples, on AbstractInteraction or on Target Agent).
Random numbers are provided by the SimulationProperties
class.
JEDI V 2.2 |
Created the 7th nov. 2008 |
Modified 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 |
SimulationProperties
Field Summary | |
---|---|
static RandomSelectionNature<Agent> |
RANDOM_AGENT
Instance of random selection nature that selects agents at random. |
static RandomSelectionNature<AbstractInteraction<?>> |
RANDOM_INTERACTION
Instance of random selection nature that selects interactions at random. |
static RandomSelectionNature<AbstractRealizableTuple<?>> |
RANDOM_REALIZABLE_TUPLE
Instance of random selection nature that selects agents at random. |
Method Summary | |
---|---|
RandomSelectionNature<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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final RandomSelectionNature<AbstractInteraction<?>> RANDOM_INTERACTION
public static final RandomSelectionNature<Agent> RANDOM_AGENT
public static final RandomSelectionNature<AbstractRealizableTuple<?>> RANDOM_REALIZABLE_TUPLE
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(List)
public RandomSelectionNature<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 |