fr.lifl.jedi.model.interactionSelection.reactiveSelection
Class FirstTargetThenInteractionSelectionPolicy

java.lang.Object
  extended by fr.lifl.jedi.model.interactionSelection.reactiveSelection.InteractionSelectionPolicy
      extended by fr.lifl.jedi.model.interactionSelection.reactiveSelection.FirstTargetThenInteractionSelectionPolicy

public class FirstTargetThenInteractionSelectionPolicy
extends InteractionSelectionPolicy

An interaction selection policy that performs selection first on target agents then on interaction.

This selection can only take place on interactions that have one single target.

This selection first lists all target agents that are present in source agents affordances -- i.e. all interactions it may initiate in this particular context. Then it performs a selection of a particular nature in order to choose the target agent with whom an interaction will be initiated.

If an agent was selected, then it will select an interaction to initiate with that agent, given a second selection nature. Selecting an interaction for that agent is the same than selecting a realizable tuple containing the target agent.

This selection nature can :