fr.lifl.jedi.model.interactionSelection
Class RealizableMultipleTargetTuple

java.lang.Object
  extended by fr.lifl.jedi.model.interactionSelection.AbstractRealizableTuple<MultipleTargetInteraction>
      extended by fr.lifl.jedi.model.interactionSelection.RealizableMultipleTargetTuple

public class RealizableMultipleTargetTuple
extends AbstractRealizableTuple<MultipleTargetInteraction>

Realizable tuple for an interaction with a number of targets that depends on the situation of the source agent.

Version:
JEDI V 2.2
Created the 7th nov. 2008
Modified the 4th may 2009
Author:
Yoann Kubera
SMAC Team (Systèmes Multi-Agents et Comportement)
LIFL (Laboratoire d'Informatique Fondamentale de Lille)
University of Lille, France
See Also:
AbstractRealizableTuple

Field Summary
 
Fields inherited from class fr.lifl.jedi.model.interactionSelection.AbstractRealizableTuple
interaction, source
 
Constructor Summary
RealizableMultipleTargetTuple(MultipleTargetInteraction i, Agent source)
          Constructor of the realizable degenerate tuple
 
Method Summary
 void addTarget(Agent a)
          Adds a target to this realizable tuple.
 java.util.List<Agent> getTargets()
          Gets the targets of the tuple's interaction.
 void performInteraction(Environment e)
          This method performs the interaction with the source agent as initiator.
 void set(MultipleTargetInteraction i, Agent source)
          Changes the values contained in the tuple to other values.
 java.lang.String toString()
           
 
Methods inherited from class fr.lifl.jedi.model.interactionSelection.AbstractRealizableTuple
getInteraction, getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RealizableMultipleTargetTuple

public RealizableMultipleTargetTuple(MultipleTargetInteraction i,
                                     Agent source)
Constructor of the realizable degenerate tuple

Parameters:
i - The interaction of the tuple.
source - The source of the tuple.
Method Detail

set

public void set(MultipleTargetInteraction i,
                Agent source)
Changes the values contained in the tuple to other values.

This method removes all the targets of the tuple.

Parameters:
i - The new interaction represented by this tuple.
source - The new source of this tuple.

getTargets

public java.util.List<Agent> getTargets()
Gets the targets of the tuple's interaction.

Returns:
the targets of the tuple's interaction.

addTarget

public void addTarget(Agent a)
Adds a target to this realizable tuple.

Parameters:
a - The target agent to add to this tuple.

performInteraction

public void performInteraction(Environment e)
Description copied from class: AbstractRealizableTuple
This method performs the interaction with the source agent as initiator.

Specified by:
performInteraction in class AbstractRealizableTuple<MultipleTargetInteraction>
Parameters:
e - The environment where the interaction is performed.
See Also:
AbstractRealizableTuple.performInteraction(fr.lifl.jedi.model.Environment)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()