es.upv.dsic.gti_ia.jgomas
Class CPack

java.lang.Object
  extended by jade.core.Agent
      extended by es.upv.dsic.gti_ia.jgomas.CJGomasAgent
          extended by es.upv.dsic.gti_ia.jgomas.CPack
All Implemented Interfaces:
jade.core.TimerListener, java.io.Serializable, java.lang.Runnable
Direct Known Subclasses:
CAmmoPack, CMedicPack, CObjPack

public abstract class CPack
extends CJGomasAgent

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jade.core.Agent
jade.core.Agent.Interrupted
 
Field Summary
protected  int m_eTeam
           
protected  int m_eType
           
protected  jade.core.AID m_Manager
           
protected  Vector3D m_Position
           
static int PACK_AMMOPACK
           
static int PACK_MEDICPACK
           
static int PACK_NONE
           
static int PACK_OBJPACK
           
 
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
CPack()
           
 
Method Summary
protected  void PerformPackTaken(java.lang.String _sContent)
           
protected  void setup()
          'setup' method of jade agents.
protected  void takeDown()
          'takeDown' method of jade agents.
 
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

PACK_NONE

public static final int PACK_NONE
See Also:
Constant Field Values

PACK_MEDICPACK

public static final int PACK_MEDICPACK
See Also:
Constant Field Values

PACK_AMMOPACK

public static final int PACK_AMMOPACK
See Also:
Constant Field Values

PACK_OBJPACK

public static final int PACK_OBJPACK
See Also:
Constant Field Values

m_eType

protected int m_eType

m_eTeam

protected int m_eTeam

m_Position

protected Vector3D m_Position

m_Manager

protected jade.core.AID m_Manager
Constructor Detail

CPack

public CPack()
Method Detail

setup

protected void setup()
Description copied from class: CJGomasAgent
'setup' method of jade agents. This method registers all services offered by an agent.

Overrides:
setup in class CJGomasAgent

takeDown

protected final void takeDown()
Description copied from class: CJGomasAgent
'takeDown' method of jade agents. This method deregisters all services offered by an agent.

Overrides:
takeDown in class CJGomasAgent

PerformPackTaken

protected void PerformPackTaken(java.lang.String _sContent)