|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjade.core.Agent
es.upv.dsic.gti_ia.jgomas.CJGomasAgent
es.upv.dsic.gti_ia.jgomas.CBasicTroop
es.upv.dsic.gti_ia.jgomas.CTroop
es.upv.dsic.gti_ia.jgomas.CMedic
public class CMedic
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jade.core.Agent |
---|
jade.core.Agent.Interrupted |
Field Summary | |
---|---|
protected static int |
m_iPacksDelivered
inner variable used to name packs |
Fields inherited from class es.upv.dsic.gti_ia.jgomas.CJGomasAgent |
---|
m_ID, m_ServiceList |
Fields inherited from class jade.core.Agent |
---|
AP_ACTIVE, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_WAITING, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN |
Constructor Summary | |
---|---|
CMedic()
|
Method Summary | |
---|---|
protected boolean |
checkMedicAction(java.lang.String _sContent)
Decides if agent accepts the CFM request This method is a decision function invoked when a CALL FOR MEDIC request has arrived. |
protected int |
CreateMedicPack()
Creates medic packs if possible. |
protected void |
PerformTargetReached(CTask _CurrentTask)
Action to do when this agent reaches the target of current task. |
protected void |
setup()
'setup' method of jade agents. |
protected void |
SetUpPriorities()
Definition of priorities for each kind of task. |
Methods inherited from class es.upv.dsic.gti_ia.jgomas.CTroop |
---|
takeDown |
Methods inherited from class es.upv.dsic.gti_ia.jgomas.CBasicTroop |
---|
AddServiceType, AddTask, AddTask, CallForAmmo, CallForBackup, CallForMedic, CheckStaticPosition, CheckStaticPosition, CreateControlPoints, GenerateEscapePosition, GeneratePath, GetAgentToAim, GetAmmo, GetHealth, GetPower, GetStamina, HaveAgentToShot, Look, Move, ObjectivePackTaken, PerformAimAction, PerformInjuryAction, PerformLookAction, PerformNoAmmoAction, PerformThresholdAction, Shot, ShouldUpdateTargets, UpdateTargets, UsePower, UseStamina |
Methods inherited from class es.upv.dsic.gti_ia.jgomas.CJGomasAgent |
---|
AddService |
Methods inherited from class jade.core.Agent |
---|
addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, doActivate, doClone, doDelete, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAMS, getArguments, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AObject, getProperty, getQueueSize, getState, here, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, removeBehaviour, restartLater, restore, restoreBufferedState, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setQueueSize, waitUntilStarted, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static int m_iPacksDelivered
Constructor Detail |
---|
public CMedic()
Method Detail |
---|
protected void setup()
setup
in class CTroop
protected void SetUpPriorities()
CBasicTroop
SetUpPriorities
in class CBasicTroop
protected boolean checkMedicAction(java.lang.String _sContent)
_sContent
-
protected void PerformTargetReached(CTask _CurrentTask)
PerformTargetReached
in class CBasicTroop
_CurrentTask
- protected final int CreateMedicPack()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |