es.upv.dsic.gti_ia.argAgents
Class CommitmentStore
java.lang.Object
es.upv.dsic.gti_ia.core.BaseAgent
es.upv.dsic.gti_ia.cAgents.CAgent
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
| 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 |
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
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 conversationfinalizeMessage - 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 conversationwelcomeMessage - The message sent by the platform to the agent
Copyright © 2012 GTI-IA. All Rights Reserved.