fr.lifl.jedi.model.halo
Interface PhysicalHalo

All Known Implementing Classes:
CircularPhysicalHalo, ConePhysicalHalo, PhysicalHaloBasedOnArea

public interface PhysicalHalo

This class represents the physical halo of an agent, i.e. a ground surface in which other agents are perceived.

Version:
JEDI V 2.3
Created the 10 juin 2009
Author:
Yoann Kubera
SMAC Team (Systèmes Multi-Agents et Comportement)
LIFL (Laboratoire d'Informatique Fondamentale de Lille)
University of Lille, France

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.
 

Method Detail

perceive

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.

Parameters:
env - The environment where agents are perceived.
source - The agent that perceives thanks to this halo.
perceivedAgents - The list where perceived agents are added.

rotate

void rotate(double angle)
This method rotates the perceived ground surface according to the direction of the halo's owner.

Parameters:
angle - The angle from which the owner of the halo turns.