E
- The subclass of StandardEntity this agent wants to control.public abstract class AbstractSampleAgent<E extends StandardEntity> extends StandardAgent<E>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<EntityID> |
buildingIDs
Cache of building IDs.
|
protected java.util.List<EntityID> |
refugeIDs
Cache of refuge IDs.
|
protected java.util.List<EntityID> |
roadIDs
Cache of road IDs.
|
protected SampleSearch |
search
The search algorithm.
|
protected boolean |
useSpeak
Whether to use AKSpeak messages or not.
|
config, connection, model, random
Modifier | Constructor and Description |
---|---|
protected |
AbstractSampleAgent()
Construct an AbstractSampleAgent.
|
Modifier and Type | Method and Description |
---|---|
protected void |
postConnect()
Perform any post-connection work required before acknowledgement of the connection is made.
|
protected java.util.List<EntityID> |
randomWalk()
Construct a random walk starting from this agent's current location to a random building.
|
createWorldModel, getRefuges, getRequestedEntityURNs, getRequestedEntityURNsEnum, location, sendClear, sendClear, sendExtinguish, sendLoad, sendMove, sendMove, sendRescue, sendRest, sendSay, sendSpeak, sendSubscribe, sendTell, sendUnload, shouldIndex
connect, getID, getPreferredNDC, me, postConnect, processMessage, processSense, think
getName, getPreferredLogContext, getPreferredRegistry, initialise, postConnect, processImmediately, send, shutdown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getPreferredLogContext, getPreferredRegistry, initialise, shutdown
protected SampleSearch search
protected boolean useSpeak
protected java.util.List<EntityID> buildingIDs
protected java.util.List<EntityID> roadIDs
protected java.util.List<EntityID> refugeIDs
protected AbstractSampleAgent()
protected void postConnect()
AbstractComponent
postConnect
in class StandardAgent<E extends StandardEntity>
protected java.util.List<EntityID> randomWalk()