fr.lifl.jedi.model.interactionSelection
Class RealizableSingleTargetTuple

java.lang.Object
  extended by fr.lifl.jedi.model.interactionSelection.AbstractRealizableTuple<SingleTargetInteraction>
      extended by fr.lifl.jedi.model.interactionSelection.RealizableSingleTargetTuple

public class RealizableSingleTargetTuple
extends AbstractRealizableTuple<SingleTargetInteraction>

Realizable tuple for an interaction with a single target.

Version:
JEDI V 2.2
Created the 7th nov. 2008
Created 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
RealizableSingleTargetTuple(SingleTargetInteraction i, Agent source, Agent target)
          Constructor of the realizable degenerate tuple
 
Method Summary
 Agent getTarget()
          Gets the target of the tuple's interaction.
 void performInteraction(Environment e)
          This method performs the interaction with the source agent as initiator.
 void set(SingleTargetInteraction i, Agent source, Agent target)
          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

RealizableSingleTargetTuple

public RealizableSingleTargetTuple(SingleTargetInteraction i,
                                   Agent source,
                                   Agent target)
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(SingleTargetInteraction i,
                Agent source,
                Agent target)
Changes the values contained in the tuple to other values.

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

getTarget

public Agent getTarget()
Gets the target of the tuple's interaction.

Returns:
the target of the tuple's interaction.

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<SingleTargetInteraction>
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()