es.upv.dsic.gti_ia.organization
Class SF

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

public class SF
extends CAgent

SF agent is responsible for managing all the request messages from other entities. It 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 SF getSF()
          Returns an instance of the agents SF
static SF getSF(AgentID agent)
          Returns an instance of the agents SF
 String getSFServiceDescriptionLocation()
          get the URL where the OWL-S document is located.
 void setSFServiceDescriptionLocation(String SFUrl)
          Change 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

getSF

public static SF getSF(AgentID agent)
Returns an instance of the agents SF

Parameters:
agent -
Returns:
sf

getSF

public static SF getSF()
Returns an instance of the agents SF

Returns:
sf

setSFServiceDescriptionLocation

public void setSFServiceDescriptionLocation(String SFUrl)
Change the URL where the OWL-S document is located.

Parameters:
SFUrl -

getSFServiceDescriptionLocation

public String getSFServiceDescriptionLocation()
get the URL where the OWL-S document is located.

Parameters:
SFUrl -

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.