fr.lifl.jedi.model.interactionDeclaration
Class SingleTargetInteraction

java.lang.Object
  extended by fr.lifl.jedi.model.interactionDeclaration.AbstractInteraction<Agent>
      extended by fr.lifl.jedi.model.interactionDeclaration.SingleTargetInteraction

public abstract class SingleTargetInteraction
extends AbstractInteraction<Agent>

This class represents an interaction that occurs between a single source agent and a single target agent.

When participating in such an interaction, the source agent becomes not activable until the end of the time step.

In addition, the target agents that can participate in the interaction can be restricted:

By default, interactions require activable targets, and agents are set as not activable after interaction.

Version:
JEDI V 2.2
Created the 5th 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

Constructor Summary
SingleTargetInteraction()
           
 
Method Summary
 boolean requiresActivableTarget()
          Checks if the target of this interaction has to be activable in order to be able to participate in it.
 void setRequiresActivableTarget(boolean value)
          Sets if the target of this interaction has to be activable in order to be able to participate in it.
 void setTargetBecomesNotActivable(boolean value)
          Sets if the target of the interaction becomes not activable after participating in this interaction.
 boolean targetBecomesNotActivable()
          Checks if the target of the interaction becomes not activable after participating in this interaction.
 
Methods inherited from class fr.lifl.jedi.model.interactionDeclaration.AbstractInteraction
canPerform, perform, preconditions, trigger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleTargetInteraction

public SingleTargetInteraction()
Method Detail

targetBecomesNotActivable

public boolean targetBecomesNotActivable()
Checks if the target of the interaction becomes not activable after participating in this interaction.

Returns:
true if the target of the interaction becomes not activable after participating in this interaction.

setTargetBecomesNotActivable

public void setTargetBecomesNotActivable(boolean value)
Sets if the target of the interaction becomes not activable after participating in this interaction.

Parameters:
value - true if the target of the interaction becomes not activable after participating in this interaction.

requiresActivableTarget

public boolean requiresActivableTarget()
Checks if the target of this interaction has to be activable in order to be able to participate in it.

Returns:
true if the target of this interaction has to be activable in order to be able to participate in it.

setRequiresActivableTarget

public void setRequiresActivableTarget(boolean value)
Sets if the target of this interaction has to be activable in order to be able to participate in it.

Parameters:
value - true if the target of this interaction has to be activable in order to be able to participate in it. false if the target can be activable or not activable to participate in the interaction as target.