es.upv.dsic.gti_ia.argAgents
Class CommitmentStore

java.lang.Object
  extended by es.upv.dsic.gti_ia.core.BaseAgent
      extended by es.upv.dsic.gti_ia.cAgents.CAgent
          extended by es.upv.dsic.gti_ia.argAgents.CommitmentStore
All Implemented Interfaces:
Runnable

public class CommitmentStore
extends CAgent

This agent, named CommitmentStore, stores all the information about the dialogues, including: positions, arguments and modification times. It responds to the petitions of the agents in the dialogue process.

Author:
Jaume Jordan

Field Summary
 
Fields inherited from class es.upv.dsic.gti_ia.cAgents.CAgent
defaultFactory, exec, welcomeProcessor
 
Fields inherited from class es.upv.dsic.gti_ia.core.BaseAgent
logger, session, traceSession
 
Constructor Summary
CommitmentStore(AgentID aid)
          Constructor of the CommitmentStore.
 
Method Summary
protected  void execution(CProcessor firstProcessor, ACLMessage welcomeMessage)
          This is the main method of the agent
protected  void finalize(CProcessor firstProcessor, ACLMessage finalizeMessage)
          This method is executed just before the agent ends its execution
 
Methods inherited from class es.upv.dsic.gti_ia.cAgents.CAgent
addFactoryAsInitiator, addFactoryAsParticipant, addProcessor, addTimer, createDefaultFactory, endConversation, execute, getMutexHoldCount, lock, newConversationID, notifyAgentEnd, onMessage, removeFactory, removeProcessor, send, Shutdown, startConversation, startSyncConversation, unlock
 
Methods inherited from class es.upv.dsic.gti_ia.core.BaseAgent
activateTraceService, changeIdentity, deactivateTraceService, finalize, getAid, getName, init, onTraceEvent, run, sendTraceEvent, start, terminate
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommitmentStore

public CommitmentStore(AgentID aid)
                throws Exception
Constructor of the CommitmentStore. It takes the agent id as a parameter and it initializes all the structures.

Parameters:
aid - Agent identifier
Throws:
Exception
Method Detail

finalize

protected void finalize(CProcessor firstProcessor,
                        ACLMessage finalizeMessage)
Description copied from class: CAgent
This method is executed just before the agent ends its execution

Specified by:
finalize in class CAgent
Parameters:
firstProcessor - The CProcessor managing the welcome conversation
finalizeMessage - The final message produced by this conversation

execution

protected void execution(CProcessor firstProcessor,
                         ACLMessage welcomeMessage)
Description copied from class: CAgent
This is the main method of the agent

Specified by:
execution in class CAgent
Parameters:
firstProcessor - The CProcessor managing the welcome conversation
welcomeMessage - The message sent by the platform to the agent


Copyright © 2012 GTI-IA. All Rights Reserved.