fr.lifl.jedi.model.interactionSelection
Class AbstractRealizableTuple<IntType extends AbstractInteraction<?>>

java.lang.Object
  extended by fr.lifl.jedi.model.interactionSelection.AbstractRealizableTuple<IntType>
Direct Known Subclasses:
RealizableDegenerateTuple, RealizableMultipleTargetTuple, RealizableSingleTargetTuple

public abstract class AbstractRealizableTuple<IntType extends AbstractInteraction<?>>
extends java.lang.Object

This class represents a realizable tuple.

A realizable tuple is a tuple composed by at least a source agent and an interaction. It represents an interaction that can be initiated by the source agent, i.e. which preconditions, conditions are true.

For not degenerate interactions, the guard distance condition has also to be true.

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

Field Summary
protected  IntType interaction
          The interaction of the realizable tuple
protected  Agent source
          The source of the tuple.
 
Constructor Summary
AbstractRealizableTuple(IntType i, Agent source)
          Constructor of a realizable tuple.
 
Method Summary
 IntType getInteraction()
          Gets the interaction of this realizable tuple.
 Agent getSource()
          Gets the initiator (source) of the tuple's interaction.
abstract  void performInteraction(Environment e)
          This method performs the interaction with the source agent as initiator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected Agent source
The source of the tuple.


interaction

protected IntType extends AbstractInteraction<?> interaction
The interaction of the realizable tuple

Constructor Detail

AbstractRealizableTuple

public AbstractRealizableTuple(IntType i,
                               Agent source)
Constructor of a realizable tuple.

Parameters:
i - The interaction associated with the realizable tuple.
source - The source of the tuple, that is the initiator of the interaction.
Method Detail

getInteraction

public IntType getInteraction()
Gets the interaction of this realizable tuple.

Returns:
the interaction of this realizable tuple.

getSource

public Agent getSource()
Gets the initiator (source) of the tuple's interaction.

Returns:
the initiator (source) of the tuple's interaction.

performInteraction

public abstract void performInteraction(Environment e)
This method performs the interaction with the source agent as initiator.

Parameters:
e - The environment where the interaction is performed.