@Deprecated public class WorldGrid extends AbstractSituatedEnvironment<Animal,AnimalBody,SituatedObject,AnimalPerception,AnimalInfluence>
Travaux pratiques d'IA54.
Université de Technologie de Belfort-monbéliard.
_clock, _time_manager
Constructor and Description |
---|
WorldGrid(int x,
int y)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
applyInfluences(Collection<AnimalInfluence> influences)
Deprecated.
This function is called when the environment must compute
its reaction to the agent influences.
|
int |
getHeight()
Deprecated.
|
Map<AgentIdentifier,Dimension> |
getState()
Deprecated.
|
int |
getWidth()
Deprecated.
|
protected void |
onAgentBodyAdded(AnimalBody body)
Deprecated.
Put the given body onto its location.
|
protected void |
onAgentBodyRemoved(AnimalBody body)
Deprecated.
Remove the given body from the environment.
|
AnimalPerception[] |
perceive(AgentIdentifier agent)
Deprecated.
Compute and replies the perceptions for the specified agent.
|
getAgentBody, getAllAgentBodies, getObjectBody, influence, postAgentScheduling, putAgent, removeAgent, shutdown
getSimulationClock, getSimulationStepDuration, getSimulationStepDuration, getSimulationTime, getSimulationTime, init, isAlive, killMe, preAgentScheduling
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSimulationClock, init, isAlive, preAgentScheduling
public int getWidth()
public int getHeight()
public Map<AgentIdentifier,Dimension> getState()
protected void onAgentBodyAdded(AnimalBody body)
AbstractSituatedEnvironment
onAgentBodyAdded
in class AbstractSituatedEnvironment<Animal,AnimalBody,SituatedObject,AnimalPerception,AnimalInfluence>
protected void onAgentBodyRemoved(AnimalBody body)
AbstractSituatedEnvironment
onAgentBodyRemoved
in class AbstractSituatedEnvironment<Animal,AnimalBody,SituatedObject,AnimalPerception,AnimalInfluence>
public AnimalPerception[] perceive(AgentIdentifier agent)
SituatedEnvironment
protected boolean applyInfluences(Collection<AnimalInfluence> influences)
AbstractSituatedEnvironment
This method must fill the list of reactions according to its computation on the agent's influences.
applyInfluences
in class AbstractSituatedEnvironment<Animal,AnimalBody,SituatedObject,AnimalPerception,AnimalInfluence>
true
if the reaction was successfully computed,
otherwise false
Copyright © 2003-2013 Arakhnê.org Members. All rights reserved under LGPL license terms.