|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.lifl.jedi.model.halo.PhysicalHaloBasedOnArea
public class PhysicalHaloBasedOnArea
This class represents the physical halo of an agent (a ground surface in which other agents are perceived)
based on the Area
java class.
JEDI V 2.3 |
Created the 10 juin 2009 |
Yoann Kubera |
SMAC Team (Systèmes Multi-Agents et Comportement) |
LIFL (Laboratoire d'Informatique Fondamentale de Lille) |
University of Lille, France |
Constructor Summary | |
---|---|
PhysicalHaloBasedOnArea(java.awt.geom.Area a)
Constructor of the physical halo of an agent (a ground surface in which other agents are perceived), where the surface is represented by an instance of the Area java class. |
Method Summary | |
---|---|
void |
perceive(Environment env,
Agent source,
java.util.Set<Agent> perceivedAgents)
This method retrieves from the environment all agents that lie in the ground surface represented by this class. |
void |
rotate(double angle)
This method rotates the perceived ground surface according to the direction of the halo's owner. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PhysicalHaloBasedOnArea(java.awt.geom.Area a)
Area
java class.
a
- The object that represents the ground surface.Method Detail |
---|
public void perceive(Environment env, Agent source, java.util.Set<Agent> perceivedAgents)
PhysicalHalo
perceive
in interface PhysicalHalo
env
- The environment where agents are perceived.source
- The agent that perceives thanks to this halo.perceivedAgents
- The list where perceived agents are added.PhysicalHalo.perceive(fr.lifl.jedi.model.Environment, fr.lifl.jedi.model.Agent, java.util.Set)
public void rotate(double angle)
PhysicalHalo
rotate
in interface PhysicalHalo
angle
- The angle from which the owner of the halo turns.PhysicalHalo.rotate(double)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |