@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, shutdowngetSimulationClock, getSimulationStepDuration, getSimulationStepDuration, getSimulationTime, getSimulationTime, init, isAlive, killMe, preAgentSchedulingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSimulationClock, init, isAlive, preAgentSchedulingpublic int getWidth()
public int getHeight()
public Map<AgentIdentifier,Dimension> getState()
protected void onAgentBodyAdded(AnimalBody body)
AbstractSituatedEnvironmentonAgentBodyAdded in class AbstractSituatedEnvironment<Animal,AnimalBody,SituatedObject,AnimalPerception,AnimalInfluence>protected void onAgentBodyRemoved(AnimalBody body)
AbstractSituatedEnvironmentonAgentBodyRemoved in class AbstractSituatedEnvironment<Animal,AnimalBody,SituatedObject,AnimalPerception,AnimalInfluence>public AnimalPerception[] perceive(AgentIdentifier agent)
SituatedEnvironmentprotected boolean applyInfluences(Collection<AnimalInfluence> influences)
AbstractSituatedEnvironmentThis 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 falseCopyright © 2003-2013 Arakhnê.org Members. All rights reserved under LGPL license terms.