it.unimo.dbgroup.momis.agent
Class Basic

java.lang.Object
  extended byjade.core.Agent
      extended byit.unimo.dbgroup.momis.agent.Basic
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable, jade.util.leap.Serializable, jade.core.TimerListener
Direct Known Subclasses:
WrapperAgent

public class Basic
extends jade.core.Agent

BasicAgent class: this class defines the basic fields and methods every agent with no GUI posseses

Version:
1.0 $Date: 20/03/2002
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class jade.core.Agent
 
Field Summary
 jade.core.ContainerID bornIn
          variable to store the Container where the agent was born
 
Fields inherited from class jade.core.Agent
AP_ACTIVE, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_TRANSIT, AP_WAITING, currentBehaviour, currentMessage, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN
 
Constructor Summary
Basic()
           
 
Method Summary
protected  void afterMove()
          standard action after moving.
protected  void back()
          move the agent back home to the container it was born in
protected  void beforeMove()
          standard action before moving.
 java.lang.String bornContainerID()
          returns the ID of the container the agent was born in
protected  void extendedSetup()
          allows further agent's intialisation (to be overriden)
protected  void handIn()
          delivers results to the agent's owner (to be overridden)
protected  void opening()
          opens agent's activites (to be overriden)
protected  void registration()
          registers with the DF
protected  void setup()
          sets up the basic configuration for each agent, overriding the corresponding method defined in jade.core.Agent
protected  java.lang.String thisContainerID()
          returns the ID of the current container the agent is placed in
protected  java.lang.String thisPlatformID()
          returns the ID of the current platform the agent executes in
 
Methods inherited from class jade.core.Agent
addBehaviour, afterClone, beforeClone, blockingReceive, blockingReceive, blockingReceive, blockingReceive, doActivate, doClone, doDelete, doMove, doStart, doSuspend, doTimeOut, doWait, doWait, doWake, extractPassword, extractUsername, getAID, getAMS, getArguments, getAuthority, getCertificateFolder, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getLocalName, getName, getO2AObject, getPrincipal, getProperty, getQueueSize, getState, here, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, read, read, receive, receive, removeBehaviour, restartLater, restore, run, send, setArguments, setEnabledO2ACommunication, setOwnership, setPrincipal, setQueueSize, takeDown, waitUntilStarted, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bornIn

public jade.core.ContainerID bornIn
variable to store the Container where the agent was born

Constructor Detail

Basic

public Basic()
Method Detail

registration

protected void registration()
registers with the DF


opening

protected void opening()
opens agent's activites (to be overriden)


extendedSetup

protected void extendedSetup()
allows further agent's intialisation (to be overriden)


beforeMove

protected void beforeMove()
standard action before moving. Each agent can define its own behaviour before moving by simply overriding this method


afterMove

protected void afterMove()
standard action after moving. Each agent can define its own behaviour after moving by simply overriding this method


thisPlatformID

protected java.lang.String thisPlatformID()
returns the ID of the current platform the agent executes in


thisContainerID

protected java.lang.String thisContainerID()
returns the ID of the current container the agent is placed in


bornContainerID

public java.lang.String bornContainerID()
returns the ID of the container the agent was born in


back

protected void back()
move the agent back home to the container it was born in


handIn

protected void handIn()
delivers results to the agent's owner (to be overridden)


setup

protected void setup()
sets up the basic configuration for each agent, overriding the corresponding method defined in jade.core.Agent



Universita' di Modena e Reggio Emilia