|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrescuecore.Agent
rescuecore.PlatoonAgent
An abstract superclass for platoon agents (i.e fire brigade, police force, ambulance team).
Field Summary |
Fields inherited from class rescuecore.Agent |
agentSystem, agentType, id, memory, timeStep, type |
Constructor Summary | |
protected |
PlatoonAgent(int type)
|
Method Summary | |
protected void |
clear(Road target)
Append a clear command |
protected void |
extinguish(Building target)
Append an extinguish command |
protected void |
extinguish(Building target,
int power)
Append an extinguish command |
protected RescueObject |
getLocation()
Get this agent's current position as a RescueObject |
protected int |
getPosition()
Get this agent's current position |
protected void |
load(Humanoid target)
Append a load command |
protected void |
move(int[] ids)
Append a move command |
protected void |
rescue(Humanoid target)
Append a rescue command |
protected void |
unload()
Append an unload command |
Methods inherited from class rescuecore.Agent |
appendCommand, flushCommands, generateMemory, getAgentSystem, getAgentType, getID, getMaxReceive, getMaxSend, getMemory, getType, handleHear, handleSense, hear, initialise, log, say, sense, tell, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected PlatoonAgent(int type)
Method Detail |
protected RescueObject getLocation()
protected int getPosition()
protected void move(int[] ids)
ids
- The list of road/node/building ids that we want to move throughprotected void extinguish(Building target)
target
- The building to extinguishprotected void extinguish(Building target, int power)
target
- The building to extinguishpower
- The amount of water to useprotected void clear(Road target)
target
- The road to clearprotected void rescue(Humanoid target)
target
- The humanoid to rescueprotected void load(Humanoid target)
target
- The humanoid to loadprotected void unload()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |