|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lifl.jedi.model.halo.ConePhysicalHalo
public class ConePhysicalHalo
This class represents the physical halo of an agent (a ground surface in which other agents are perceived),
where agents are perceived in a cone.
This class is separated from the PhysicalHaloBasedOnArea class for efficiency reasons.
| JEDI V 2.3 |
| Created the 1st July 2009 |
| Yoann Kubera |
| SMAC Team (Systèmes Multi-Agents et Comportement) |
| LIFL (Laboratoire d'Informatique Fondamentale de Lille) |
| University of Lille, France |
| Constructor Summary | |
|---|---|
ConePhysicalHalo(double radius,
double alpha)
This method creates a cone-shaped perception area, at the end of which the agent lies. |
|
| Method Summary | |
|---|---|
void |
notTorusPerception(Environment env,
Agent source,
java.util.Set<Agent> perceivedAgents)
This sub-method is called whenever the perception is made in a not torus environment. |
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 ConePhysicalHalo(double radius,
double alpha)
radius - The radius of the cone-shaped area.alpha - The angle covered by the cone-shaped area.| Method Detail |
|---|
public void perceive(Environment env,
Agent source,
java.util.Set<Agent> perceivedAgents)
PhysicalHalo
perceive in interface PhysicalHaloenv - 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 notTorusPerception(Environment env,
Agent source,
java.util.Set<Agent> perceivedAgents)
env - The environment where agents are perceived.source - The agent that perceives thanks to this halo.perceivedAgents - The list where perceived agents are added.public void rotate(double angle)
PhysicalHalo
rotate in interface PhysicalHaloangle - 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 | |||||||||