|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.lifl.jedi.model.interactionDeclaration.AbstractInteraction<Agent>
fr.lifl.jedi.model.interactionDeclaration.SingleTargetInteraction
public abstract class SingleTargetInteraction
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:
setRequiresActivableTarget(boolean)
method tells if the
target agent has to be activable to be part of the interaction. If set to true, then
the interaction cannot be performed with not activable target agents;
setTargetBecomesNotActivable(boolean)
method tells if the
target agent becomes not activable after being part of this interaction. If set to true, then
the target agent won't be able to initiate an interaction until the end of the time step, and won't
be able to be the target of interactions that require an activable target.
By default, interactions require activable targets, and agents are set as not activable after interaction.
JEDI V 2.2 |
Created the 5th nov. 2008 |
Modified the 5th may 2009 |
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 |
---|
public SingleTargetInteraction()
Method Detail |
---|
public boolean targetBecomesNotActivable()
true
if the target of the interaction becomes not activable
after participating in this interaction.public void setTargetBecomesNotActivable(boolean value)
value
- true
if the target of the interaction becomes not activable
after participating in this interaction.public boolean requiresActivableTarget()
true
if the target of this interaction has to be activable in order
to be able to participate in it.public void setRequiresActivableTarget(boolean value)
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |