public class ControlledFireBrigade extends StandardAgent<FireBrigade>
config, connection, model, random
Constructor and Description |
---|
ControlledFireBrigade() |
Modifier and Type | Method and Description |
---|---|
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(Building target)
Set the target of this fire brigade.
|
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, shouldIndex
connect, getID, getPreferredNDC, me, postConnect, processMessage, processSense
getName, getPreferredLogContext, getPreferredRegistry, initialise, postConnect, processImmediately, send, shutdown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, getPreferredLogContext, getPreferredRegistry, initialise, shutdown
public void setTarget(Building target)
target
- The new target.protected void think(int time, ChangeSet changed, java.util.Collection<Command> heard)
AbstractAgent
think
in class AbstractAgent<StandardWorldModel,FireBrigade>
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()
StandardAgent
getRequestedEntityURNsEnum
in class StandardAgent<FireBrigade>
protected StandardEntity location()
location
in class StandardAgent<FireBrigade>
protected void postConnect()
AbstractComponent
postConnect
in class StandardAgent<FireBrigade>
public java.lang.String toString()
toString
in class java.lang.Object