|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.lifl.jedi.model.interactionSelection.reactiveSelection.InteractionSelectionPolicy
public abstract class InteractionSelectionPolicy
This class represents a part of an agents behavior.
The interaction selection process uses a subsumption-like architecture to select what the agent performs.
Every assignation element involved in the action selection process is given a priority,
with the methods InteractionMatrixLine.add(fr.lifl.jedi.model.interactionDeclaration.DegenerateInteraction, int)
,
InteractionMatrixLine.add(fr.lifl.jedi.model.interactionDeclaration.MultipleTargetInteraction, Class, double, int)
or
InteractionMatrixLine.add(fr.lifl.jedi.model.interactionDeclaration.SingleTargetInteraction, Class, double, int)
.
Interaction selection takes place in decreasing value of priority, and checks every priority
until a realizable tuple is selected.
For each priority, a particular interaction selection policy is used to select the initiated realizable interaction. This policy is defined thanks to an instance of this class and its subclasses.
An interaction selection selection policy is separated in two parts :
FirstInteractionThenTargetSelectionPolicy
);
FirstTargetThenInteractionSelectionPolicy
).
TupleSelectionPolicy
).
RandomSelectionNature
);PreferredSelectionNature
)WeightedSelectionNature
)For instance :
JEDI V 2.2 |
Created the 6th 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 |
Field Summary | |
---|---|
static InteractionSelectionPolicy |
DEFAULT_POLICY
The default interaction selection policy used by agents. |
Constructor Summary | |
---|---|
InteractionSelectionPolicy()
|
Method Summary | |
---|---|
abstract InteractionSelectionPolicy |
clone()
|
abstract AbstractRealizableTuple<?> |
performSelection(java.util.List<AbstractRealizableTuple<?>> affordances)
Asks the policy to perform a selection among the realizable tuples list provided in parameter. |
abstract java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final InteractionSelectionPolicy DEFAULT_POLICY
This policy selects tuples at random.
Constructor Detail |
---|
public InteractionSelectionPolicy()
Method Detail |
---|
public abstract AbstractRealizableTuple<?> performSelection(java.util.List<AbstractRealizableTuple<?>> affordances)
affordances
- The realizable tuples list among which selection is made.
Returns null
if no tuple was selected.
public abstract InteractionSelectionPolicy clone()
clone
in class java.lang.Object
Object.clone()
public abstract java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |