es.upv.dsic.gti_ia.organization
Class OMS

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.organization.OMS
All Implemented Interfaces:
Runnable

public class OMS
extends CAgent

OMS agent is responsible for managing all the request messages from other entities OMS agent follows a FIPA-Request protocol


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
session, traceSession
 
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
static OMS getOMS()
          Returns an instance of the agents OMS
static OMS getOMS(AgentID agent)
          Returns an instance of the agents OMS
 String getOMSServiceDesciptionLocation()
          Gets the URL where the owl's document is located.
 void setOMSServiceDesciptionLocation(String OMSUrl)
          Changes the URL where the owl's document is located.
 
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
 

Method Detail

getOMS

public static OMS getOMS(AgentID agent)
Returns an instance of the agents OMS

Parameters:
agent - a new Agent ID
Returns:
oms

getOMS

public static OMS getOMS()
Returns an instance of the agents OMS

Returns:
oms

setOMSServiceDesciptionLocation

public void setOMSServiceDesciptionLocation(String OMSUrl)
Changes the URL where the owl's document is located.

Parameters:
OMSUrl -

getOMSServiceDesciptionLocation

public String getOMSServiceDesciptionLocation()
Gets the URL where the owl's document is located.

Parameters:
OMSUrl -

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.