|
|||||||||
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
student.MyMedic
public class MyMedic
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jade.core.Agent |
---|
jade.core.Agent.Interrupted |
Field Summary |
---|
Fields inherited from class es.upv.dsic.gti_ia.jgomas.CMedic |
---|
m_iPacksDelivered |
Fields inherited from class es.upv.dsic.gti_ia.jgomas.CBasicTroop |
---|
ARG_TEAM, CLASS_ENGINEER, CLASS_FIELDOPS, CLASS_MEDIC, CLASS_NONE, CLASS_SOLDIER, m_AimedAgent, m_AStarPath, m_bEscaping, m_bFighting, m_bObjectiveCarried, m_ControlPoints, m_CurrentTask, m_eClass, m_eTeam, m_FOVObjects, m_iAStarPathIndex, m_iControlPointsIndex, m_iEngineersCount, m_iFieldOpsCount, m_iMedicsCount, m_iSoldiersCount, m_iTeamCount, m_Manager, m_Map, m_Movement, m_sAmmoService, m_sBackupService, m_sMedicService, m_TaskList, m_TaskPriority, m_Threshold, MV_CANNOT_GET_POSITION, MV_NOT_MOVED_BY_TIME, MV_OK, TEAM_ALLIED, TEAM_AXIS, TEAM_NONE, TRANSITION_DEFAULT, TRANSITION_TO_FIGHTING, TRANSITION_TO_GOTO_TARGET, TRANSITION_TO_STANDING, TRANSITION_TO_TARGET_REACHED |
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 | |
---|---|
MyMedic()
|
Method Summary | |
---|---|
protected void |
CallForAmmo()
Request for ammunition. |
protected void |
CallForBackup()
Request for backup. |
protected void |
CallForMedic()
Request for medicine. |
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 void |
CreateControlPoints()
Calculates an array of positions for patrolling. |
protected void |
GenerateEscapePosition()
Calculates a new destiny position to escape. |
protected boolean |
GeneratePath()
Calculates a new destiny position to walk. |
protected boolean |
GetAgentToAim()
Calculates if there is an enemy at sight. |
protected void |
ObjectivePackTaken()
The agent has got the objective pack. |
protected void |
PerformInjuryAction()
Action to do when an agent is being shot. |
protected void |
PerformLookAction()
Action to do when the agent is looking at. |
protected void |
PerformNoAmmoAction()
Action to do if this agent cannot shoot. |
protected void |
PerformTargetReached(es.upv.dsic.gti_ia.jgomas.CTask _CurrentTask)
Action to do when this agent reaches the target of current task. |
protected void |
PerformThresholdAction()
Action to do when ammo or health values exceed the threshold allowed. |
protected void |
setup()
|
protected void |
SetUpPriorities()
Definition of priorities for each kind of task. |
protected boolean |
ShouldUpdateTargets()
Should we update now all 'prepared (to execute)' tasks? |
protected void |
UpdateTargets()
Update priority of all 'prepared (to execute)' tasks. |
Methods inherited from class es.upv.dsic.gti_ia.jgomas.CMedic |
---|
CreateMedicPack |
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, CheckStaticPosition, CheckStaticPosition, GetAmmo, GetHealth, GetPower, GetStamina, HaveAgentToShot, Look, Move, PerformAimAction, Shot, 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 |
Constructor Detail |
---|
public MyMedic()
Method Detail |
---|
protected void setup()
setup
in class es.upv.dsic.gti_ia.jgomas.CMedic
protected void CallForMedic()
CallForMedic
in class es.upv.dsic.gti_ia.jgomas.CBasicTroop
protected void CallForAmmo()
CallForAmmo
in class es.upv.dsic.gti_ia.jgomas.CBasicTroop
protected void CallForBackup()
CallForBackup
in class es.upv.dsic.gti_ia.jgomas.CBasicTroop
protected void UpdateTargets()
UpdateTargets
in class es.upv.dsic.gti_ia.jgomas.CBasicTroop
protected boolean ShouldUpdateTargets()
ShouldUpdateTargets
in class es.upv.dsic.gti_ia.jgomas.CBasicTroop
protected void ObjectivePackTaken()
ObjectivePackTaken
in class es.upv.dsic.gti_ia.jgomas.CBasicTroop
protected void SetUpPriorities()
SetUpPriorities
in class es.upv.dsic.gti_ia.jgomas.CMedic
protected void PerformNoAmmoAction()
PerformNoAmmoAction
in class es.upv.dsic.gti_ia.jgomas.CBasicTroop
protected void GenerateEscapePosition()
GenerateEscapePosition
in class es.upv.dsic.gti_ia.jgomas.CBasicTroop
protected boolean GeneratePath()
GeneratePath
in class es.upv.dsic.gti_ia.jgomas.CBasicTroop
protected void CreateControlPoints()
CreateControlPoints
in class es.upv.dsic.gti_ia.jgomas.CBasicTroop
protected void PerformInjuryAction()
PerformInjuryAction
in class es.upv.dsic.gti_ia.jgomas.CBasicTroop
protected void PerformThresholdAction()
PerformThresholdAction
in class es.upv.dsic.gti_ia.jgomas.CBasicTroop
protected boolean GetAgentToAim()
GetAgentToAim
in class es.upv.dsic.gti_ia.jgomas.CBasicTroop
protected void PerformLookAction()
PerformLookAction
in class es.upv.dsic.gti_ia.jgomas.CBasicTroop
protected boolean checkMedicAction(java.lang.String _sContent)
checkMedicAction
in class es.upv.dsic.gti_ia.jgomas.CMedic
_sContent
-
protected void PerformTargetReached(es.upv.dsic.gti_ia.jgomas.CTask _CurrentTask)
PerformTargetReached
in class es.upv.dsic.gti_ia.jgomas.CMedic
_CurrentTask
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |