|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.lifl.jedi.model.interactionDeclaration.AbstractInteraction<Targets>
public abstract class AbstractInteraction<Targets>
The parent class of all interactions in JEDI.
An interaction is a set of action primitives that a source agent may initiate if particular conditions are met. These condition is defined in two parts :
JEDI V 2.2 |
Created the 4th 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 | |
---|---|
AbstractInteraction()
|
Method Summary | |
---|---|
boolean |
canPerform(Environment environment,
Agent source,
Targets target)
This method returns true if the agent in parameter can perform the interaction,
i.e. |
abstract void |
perform(Environment environment,
Agent source,
Targets target)
Describes the action sequence of this interaction. |
abstract boolean |
preconditions(Environment environment,
Agent source,
Targets target)
Physical or logical possibility to perform the interaction. |
abstract boolean |
trigger(Environment environment,
Agent source,
Targets target)
Implicit or explicit motivation to perform the interaction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractInteraction()
Method Detail |
---|
public abstract boolean trigger(Environment environment, Agent source, Targets target)
Thus, the actions of the interaction will achieve or reduce this motivation.
For instance "To be hungry" is the trigger of an "Eat" interaction.
environment
- The environment where the interaction occurs.source
- The source agent that initiates the interaction.target
- The target agent that undergoes the interaction
true
if the triggering conditions are met.public abstract boolean preconditions(Environment environment, Agent source, Targets target)
For instance : "To have a key" is a precondition of an "Unlock" interaction.
environment
- The environment where the interaction occurs.source
- The source agent that initiates the interaction.target
- The target agent that undergoes the interaction
true
if the conditions are met.public abstract void perform(Environment environment, Agent source, Targets target)
environment
- The environment where the interaction occurs.source
- The source agent that initiates the interaction.target
- The target agent that undergoes the interaction.public boolean canPerform(Environment environment, Agent source, Targets target)
true
if the agent in parameter can perform the interaction,
i.e. if condition(environment, source) == true
and
trigger(environment, source) == true
.
environment
- The environment where the interaction occurs.source
- The source agent that initiates the interaction.target
- This parameter in not used in degenerate interactions
true
if the agent in parameter can perform the interaction.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |