public class ControlledPoliceForce extends StandardAgent<PoliceForce>
config, connection, model, random| Constructor and Description |
|---|
ControlledPoliceForce() |
| Modifier and Type | Method and Description |
|---|---|
EntityID |
getNearestBlockade()
Get the blockade that is nearest this agent.
|
EntityID |
getNearestBlockade(Area area,
int x,
int y)
Get the blockade that is nearest a point.
|
protected java.util.EnumSet<StandardEntityURN> |
getRequestedEntityURNsEnum()
Get an EnumSet containing requested entity URNs.
|
protected StandardEntity |
location()
Get the location of the entity controlled by this agent.
|
protected void |
postConnect()
Perform any post-connection work required before acknowledgement of the connection is made.
|
void |
setTarget(Road target)
Set the target for this police force.
|
protected void |
think(int time,
ChangeSet changed,
java.util.Collection<Command> heard)
Notification that a timestep has started.
|
java.lang.String |
toString() |
createWorldModel, getRefuges, getRequestedEntityURNs, sendClear, sendClear, sendExtinguish, sendLoad, sendMove, sendMove, sendRescue, sendRest, sendSay, sendSpeak, sendSubscribe, sendTell, sendUnload, shouldIndexconnect, getID, getPreferredNDC, me, postConnect, processMessage, processSensegetName, getPreferredLogContext, getPreferredRegistry, initialise, postConnect, processImmediately, send, shutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getPreferredLogContext, getPreferredRegistry, initialise, shutdownpublic void setTarget(Road target)
target - The new target.protected void think(int time,
ChangeSet changed,
java.util.Collection<Command> heard)
AbstractAgentthink in class AbstractAgent<StandardWorldModel,PoliceForce>time - The timestep.changed - The set of changes observed this timestep.heard - The set of communication messages this agent heard.protected java.util.EnumSet<StandardEntityURN> getRequestedEntityURNsEnum()
StandardAgentgetRequestedEntityURNsEnum in class StandardAgent<PoliceForce>protected StandardEntity location()
location in class StandardAgent<PoliceForce>protected void postConnect()
AbstractComponentpostConnect in class StandardAgent<PoliceForce>public java.lang.String toString()
toString in class java.lang.Objectpublic EntityID getNearestBlockade()
public EntityID getNearestBlockade(Area area, int x, int y)
area - The area to check.x - The X coordinate to look up.y - The X coordinate to look up.