|
||||||||||
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.DegenerateInteraction
public abstract class DegenerateInteraction
This class represents an interaction that occurs only with single source agent.
Degenerate interactions are particular interaction, which have an implicit target. This target is either the agent itself (reflexive interaction), or the environment. Thus, such an interaction does not specify any kind of target agent class.
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 |
SingleTargetInteraction
Constructor Summary | |
---|---|
DegenerateInteraction()
|
Method Summary | |
---|---|
abstract void |
perform(Environment environment,
Agent source)
Describes the action sequence of this interaction. |
void |
perform(Environment environment,
Agent source,
Agent target)
Describes the action sequence of this interaction. |
abstract boolean |
preconditions(Environment environment,
Agent source)
Physical or logical possibility to perform the interaction. |
boolean |
preconditions(Environment environment,
Agent source,
Agent target)
Physical or logical possibility to perform the interaction. |
abstract boolean |
trigger(Environment environment,
Agent source)
Implicit or explicit motivation to perform the interaction. |
boolean |
trigger(Environment environment,
Agent source,
Agent target)
Implicit or explicit motivation to perform the interaction. |
Methods inherited from class fr.lifl.jedi.model.interactionDeclaration.AbstractInteraction |
---|
canPerform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DegenerateInteraction()
Method Detail |
---|
public abstract boolean trigger(Environment environment, Agent source)
AbstractInteraction.trigger(Environment, Agent, Object)
public abstract boolean preconditions(Environment environment, Agent source)
AbstractInteraction.preconditions(Environment, Agent, Object)
public abstract void perform(Environment environment, Agent source)
AbstractInteraction.perform(Environment, Agent, Object)
public boolean trigger(Environment environment, Agent source, Agent target)
AbstractInteraction
Thus, the actions of the interaction will achieve or reduce this motivation.
For instance "To be hungry" is the trigger of an "Eat" interaction.
trigger
in class AbstractInteraction<Agent>
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.AbstractInteraction.trigger(fr.lifl.jedi.model.Environment, fr.lifl.jedi.model.Agent, java.lang.Object)
public boolean preconditions(Environment environment, Agent source, Agent target)
AbstractInteraction
For instance : "To have a key" is a precondition of an "Unlock" interaction.
preconditions
in class AbstractInteraction<Agent>
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.AbstractInteraction.preconditions(fr.lifl.jedi.model.Environment, fr.lifl.jedi.model.Agent, java.lang.Object)
public void perform(Environment environment, Agent source, Agent target)
AbstractInteraction
perform
in class AbstractInteraction<Agent>
environment
- The environment where the interaction occurs.source
- The source agent that initiates the interaction.target
- The target agent that undergoes the interaction.AbstractInteraction.perform(fr.lifl.jedi.model.Environment, fr.lifl.jedi.model.Agent, java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |