|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lifl.jedi.model.interactionDeclaration.AbstractAssignationElement<SingleTargetInteraction>
fr.lifl.jedi.model.interactionDeclaration.SingleTargetAssignationElement
public class SingleTargetAssignationElement
Class representing an element of a cell of the interaction matrix -- i.e. an interaction that a particular source agent has the ability to initiate.
This assignation element is designed for regular interactions -- i.e. interactions that occur between a source agent and a target agent.
Such interactions can be performed only if the distance separating source and target agent is under a limit distance.
| JEDI V 2.2 |
| Created the 5th nov. 2008 |
| Modified the 4th may 2008 |
| Yoann Kubera |
| SMAC Team (Systèmes Multi-Agents et Comportement) |
| LIFL (Laboratoire d'Informatique Fondamentale de Lille) |
| University of Lille, France |
| Constructor Summary | |
|---|---|
SingleTargetAssignationElement(SingleTargetInteraction interaction,
java.lang.Class<?> target,
double limitDistance)
Constructor of an assignation element that represents an interaction that can occur between a source and a target agent. |
|
| Method Summary | |
|---|---|
AbstractAssignationElement<SingleTargetInteraction> |
clone()
|
double |
getLimitDistance()
Gets the limit distance of this assignation element. |
java.lang.Class<?> |
getTargetAgentFamily()
Gets the class of the agent family used as the target of the interaction. |
void |
listAllRealizableTuples(Environment e,
Agent source,
java.util.Set<Agent> neighbors,
java.util.List<AbstractRealizableTuple<?>> tuples)
Adds to the list tuples all realizable tuples that can be
built for the source agent, which has a set of neighbors
neighbors. |
java.lang.String |
toString()
|
| Methods inherited from class fr.lifl.jedi.model.interactionDeclaration.AbstractAssignationElement |
|---|
getInteraction |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SingleTargetAssignationElement(SingleTargetInteraction interaction,
java.lang.Class<?> target,
double limitDistance)
The limit distance corresponds to the distance under which source and target agent can perform the interaction.
interaction - The interaction associated with this assignation element.target - The class of the target agent family.limitDistance - The limit distance of this assignation element| Method Detail |
|---|
public java.lang.Class<?> getTargetAgentFamily()
public double getLimitDistance()
It corresponds to the maximal distance separating source and target agent so that the interaction can occur between them.
public void listAllRealizableTuples(Environment e,
Agent source,
java.util.Set<Agent> neighbors,
java.util.List<AbstractRealizableTuple<?>> tuples)
AbstractAssignationElementtuples all realizable tuples that can be
built for the source agent, which has a set of neighbors
neighbors.
listAllRealizableTuples in class AbstractAssignationElement<SingleTargetInteraction>e - The environment where the interaction takes place.source - The source agent for which realizable tuples are listed.neighbors - The set of neighbors of the source agent.tuples - The list where the realizable tuples are added.AbstractAssignationElement.listAllRealizableTuples(fr.lifl.jedi.model.Environment, fr.lifl.jedi.model.Agent, java.util.Set, java.util.List)public AbstractAssignationElement<SingleTargetInteraction> clone()
clone in class AbstractAssignationElement<SingleTargetInteraction>AbstractAssignationElement.clone()public java.lang.String toString()
toString in class AbstractAssignationElement<SingleTargetInteraction>AbstractAssignationElement.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||