yab.agent
Class AbstractAmbulanceTeamAgent

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--yab.agent.Agent
              |
              +--yab.agent.HumanoidAgent
                    |
                    +--yab.agent.PlatoonAgent
                          |
                          +--yab.agent.AbstractAmbulanceTeamAgent
All Implemented Interfaces:
Constants, Runnable

public abstract class AbstractAmbulanceTeamAgent
extends PlatoonAgent


Nested Class Summary
 
Nested classes inherited from class yab.agent.Agent
Agent.ActionCommandException
 
Field Summary
 
Fields inherited from class yab.agent.Agent
distancePrp, random, world
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface yab.agent.Constants
EXTINGUISHABLE_DISTANCE, EXTINGUISHABLE_QUANTITY, HEARING_LIMIT_OF_HUMANOID, SIMULATING_TIME, TIME_INITIALIZING_AGENT, TIME_STARTING_ACTION, UTTERANCE_LIMIT
 
Constructor Summary
protected AbstractAmbulanceTeamAgent(InetAddress address, int port)
           
 
Method Summary
protected  void checkLoadingInjured()
           
protected  boolean isLoadingInjured()
           
protected  void load(Humanoid target)
           
protected  Humanoid loadingInjured()
           
protected  void prepareForAct()
           
protected  void rescue(Humanoid target)
           
protected  AmbulanceTeam self()
           
protected  void unload()
           
 
Methods inherited from class yab.agent.HumanoidAgent
getRoute, hearingLimit, move, move, move, move
 
Methods inherited from class yab.agent.Agent
act, hear, rest, run, say, socket, tell, time, utteranceLimit
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractAmbulanceTeamAgent

protected AbstractAmbulanceTeamAgent(InetAddress address,
                                     int port)
Method Detail

self

protected AmbulanceTeam self()

loadingInjured

protected Humanoid loadingInjured()

isLoadingInjured

protected boolean isLoadingInjured()

checkLoadingInjured

protected void checkLoadingInjured()

prepareForAct

protected void prepareForAct()
Overrides:
prepareForAct in class Agent

rescue

protected void rescue(Humanoid target)
               throws Agent.ActionCommandException
Agent.ActionCommandException

load

protected void load(Humanoid target)
             throws Agent.ActionCommandException
Agent.ActionCommandException

unload

protected void unload()
               throws Agent.ActionCommandException
Agent.ActionCommandException