public class SampleCivilian extends AbstractSampleAgent<Civilian>
buildingIDs, refugeIDs, roadIDs, search, useSpeakconfig, connection, model, random| Constructor and Description |
|---|
SampleCivilian() |
| Modifier and Type | Method and Description |
|---|---|
Registry |
getPreferredRegistry(Registry parent)
Get the registry this component would like to use for its connection.
|
protected java.util.EnumSet<StandardEntityURN> |
getRequestedEntityURNsEnum()
Get an EnumSet containing requested entity URNs.
|
protected java.util.List<EntityID> |
nearestRoad() |
protected void |
postConnect()
Perform any post-connection work required before acknowledgement of the connection is made.
|
protected boolean |
shouldIndex()
Should the world model be automatically indexed?
|
protected void |
think(int time,
ChangeSet changed,
java.util.Collection<Command> heard)
Notification that a timestep has started.
|
java.lang.String |
toString() |
randomWalkcreateWorldModel, getRefuges, getRequestedEntityURNs, location, sendClear, sendClear, sendExtinguish, sendLoad, sendMove, sendMove, sendRescue, sendRest, sendSay, sendSpeak, sendSubscribe, sendTell, sendUnloadconnect, getID, getPreferredNDC, me, postConnect, processMessage, processSensegetName, getPreferredLogContext, initialise, postConnect, processImmediately, send, shutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getPreferredLogContext, initialise, shutdownpublic java.lang.String toString()
toString in class java.lang.Objectprotected void postConnect()
AbstractComponentpostConnect in class AbstractSampleAgent<Civilian>public Registry getPreferredRegistry(Registry parent)
ComponentgetPreferredRegistry in interface ComponentgetPreferredRegistry in class AbstractComponent<StandardWorldModel>parent - The parent registry.protected void think(int time,
ChangeSet changed,
java.util.Collection<Command> heard)
AbstractAgentthink in class AbstractAgent<StandardWorldModel,Civilian>time - The timestep.changed - The set of changes observed this timestep.heard - The set of communication messages this agent heard.protected java.util.List<EntityID> nearestRoad()
protected java.util.EnumSet<StandardEntityURN> getRequestedEntityURNsEnum()
StandardAgentgetRequestedEntityURNsEnum in class StandardAgent<Civilian>protected boolean shouldIndex()
StandardAgentshouldIndex in class StandardAgent<Civilian>