@Deprecated public abstract class AbstractSituatedEnvironment<AT extends SituatedAgent<AB,OB,PT,IT>,AB extends AgentBody<?,IT>,OB extends SituatedObject,PT extends Perception<?>,IT extends Influence> extends AbstractEnvironment<AT> implements SituatedEnvironment<AT,AB,OB,PT,IT>
_clock, _time_manager| Constructor and Description |
|---|
AbstractSituatedEnvironment(TimeManager time_manager)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
applyInfluences(Collection<IT> influences)
Deprecated.
This function is called when the environment must compute
its reaction to the agent influences.
|
<T extends AB> |
getAgentBody(AgentIdentifier agent)
Deprecated.
Replies the body of the agent inside the environment.
|
Collection<AB> |
getAllAgentBodies()
Deprecated.
Replies all the bodies of the agents inside the environment.
|
OB |
getObjectBody(Identifier object)
Deprecated.
Replies the location of the object (excluding
agents) inside the environment.
|
boolean |
influence(IT... influences)
Deprecated.
Send influences to the environment.
|
protected abstract void |
onAgentBodyAdded(AB body)
Deprecated.
Put the given body onto its location.
|
protected abstract void |
onAgentBodyRemoved(AB body)
Deprecated.
Remove the given body from the environment.
|
void |
postAgentScheduling(Kernel<AT,?,?,?> runningKernel)
Deprecated.
This function os called by the called after
the on scheduling step of the agents.
|
void |
putAgent(AT agent)
Deprecated.
Put the given agent inside the environment.
|
void |
removeAgent(AgentIdentifier agent)
Deprecated.
Put the given agent on the given segment
/** Remove the given agent from the environment.
|
void |
shutdown()
Deprecated.
Shutdown this environment.
|
getSimulationClock, getSimulationStepDuration, getSimulationStepDuration, getSimulationTime, getSimulationTime, init, isAlive, killMe, preAgentSchedulingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitperceivegetSimulationClock, init, isAlive, preAgentSchedulingpublic AbstractSituatedEnvironment(TimeManager time_manager)
public void shutdown()
shutdown in interface Environment<AT extends SituatedAgent<AB,OB,PT,IT>>shutdown in class AbstractEnvironment<AT extends SituatedAgent<AB,OB,PT,IT>>public void postAgentScheduling(Kernel<AT,?,?,?> runningKernel)
postAgentScheduling in interface Environment<AT extends SituatedAgent<AB,OB,PT,IT>>postAgentScheduling in class AbstractEnvironment<AT extends SituatedAgent<AB,OB,PT,IT>>runningKernel - is the instance of the kernel that is running this environment.public void putAgent(AT agent)
putAgent in interface Environment<AT extends SituatedAgent<AB,OB,PT,IT>>putAgent in class AbstractEnvironment<AT extends SituatedAgent<AB,OB,PT,IT>>protected abstract void onAgentBodyAdded(AB body)
protected abstract void onAgentBodyRemoved(AB body)
public void removeAgent(AgentIdentifier agent)
removeAgent in interface Environment<AT extends SituatedAgent<AB,OB,PT,IT>>removeAgent in class AbstractEnvironment<AT extends SituatedAgent<AB,OB,PT,IT>>public Collection<AB> getAllAgentBodies()
getAllAgentBodies in interface SituatedEnvironment<AT extends SituatedAgent<AB,OB,PT,IT>,AB extends AgentBody<?,IT>,OB extends SituatedObject,PT extends Perception<?>,IT extends Influence>public <T extends AB> T getAgentBody(AgentIdentifier agent)
getAgentBody in interface SituatedEnvironment<AT extends SituatedAgent<AB,OB,PT,IT>,AB extends AgentBody<?,IT>,OB extends SituatedObject,PT extends Perception<?>,IT extends Influence>public OB getObjectBody(Identifier object)
getObjectBody in interface SituatedEnvironment<AT extends SituatedAgent<AB,OB,PT,IT>,AB extends AgentBody<?,IT>,OB extends SituatedObject,PT extends Perception<?>,IT extends Influence>protected abstract boolean applyInfluences(Collection<IT> influences)
This method must fill the list of reactions according to its computation on the agent's influences.
true if the reaction was successfully computed,
otherwise falsepublic final boolean influence(IT... influences)
influence in interface SituatedEnvironment<AT extends SituatedAgent<AB,OB,PT,IT>,AB extends AgentBody<?,IT>,OB extends SituatedObject,PT extends Perception<?>,IT extends Influence>influences - is the list of influences to send to this environment.true if the influences was registered,
otherwise falseCopyright © 2003-2013 Arakhnê.org Members. All rights reserved under LGPL license terms.