zeus.agents
Class FIPA_DF_Services

java.lang.Object
  extended byzeus.agents.FIPA_Services
      extended byzeus.agents.FIPA_DF_Services

public class FIPA_DF_Services
extends FIPA_Services

FIPA_DF_Services is used by the ACC agent to wrap the Facilitator so that it can be accessed exernally. This class was tested against the Agentcities test suit, http://leap.crm-paris.com/agentcities/Services/Testsuite.jsp


Field Summary
(package private)  java.lang.String ABILITY_KEY
           
private  SLCodec codec
           
(package private)  java.lang.String hack
           
private  java.lang.String NOT_AUTHORISED
           
private  GenSym rand
           
private  java.util.Hashtable registered_agents
           
private  java.util.Hashtable registered_dfs
           
(package private)  java.lang.String SERVICE_KEY
           
(package private)  java.util.Hashtable serviceList
           
private  java.lang.String UNEXPECTED
           
 
Fields inherited from class zeus.agents.FIPA_Services
context, host, name, type
 
Constructor Summary
FIPA_DF_Services()
           
 
Method Summary
 void abilityReceived(Performative perf)
          the problem is to get the name of the task and to register it here Perhaps we this should be triggered by the second message?
private  void addServiceList(java.lang.String name)
           
 java.lang.String agentDescToSL(Fact fact)
           
 boolean checkAuthority(java.lang.String agent, AbsPrimitive attempter, AbsAggregate attempterAddresses, Performative perf)
           
(package private)  void debug(java.lang.String str)
           
 void exec(AgentContext context)
           
 java.lang.String getDescriptions(DF_Description toMatch)
          returns a string that contains the df_descriptions that are matches for this df_description.
private  java.lang.String getServiceName(Performative msg)
           
 void handleDeregister(Performative perf)
           
 void handleModify(Performative perf)
           
 void handleRegister(Performative perf)
          method for handleing a registration message to the df
 void handleSearch(Performative perf)
           
 void informDone(Performative perf)
           
private  boolean inServiceList(java.lang.String name)
           
static void main(java.lang.String[] param)
           
 DF_Description makeDescription(AbsConcept act)
           
 void sendAgree(Performative perf)
          make an "agree" response in SL
 void serviceDescriptionReceived(Performative perf)
          this is a message that is likely to have the name of the task in it
 void simpleReply(Performative inPerf, java.lang.String reason, java.lang.String replyType)
          simpleReply lets you reply to a message using the result convention of FIPA what I mean is: in FIPA there are alot of messages like "refuse original reason" or "not_understood original reason", and this method lets you send them pretty simply
 
Methods inherited from class zeus.agents.FIPA_Services
registerAlias, send, setDeregister, setHost, setModify, setName, setName, setRegister, setSearch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_AUTHORISED

private java.lang.String NOT_AUTHORISED

UNEXPECTED

private java.lang.String UNEXPECTED

rand

private GenSym rand

hack

java.lang.String hack

registered_agents

private java.util.Hashtable registered_agents

registered_dfs

private java.util.Hashtable registered_dfs

codec

private SLCodec codec

ABILITY_KEY

java.lang.String ABILITY_KEY

SERVICE_KEY

java.lang.String SERVICE_KEY

serviceList

java.util.Hashtable serviceList
Constructor Detail

FIPA_DF_Services

public FIPA_DF_Services()
Method Detail

exec

public void exec(AgentContext context)

getServiceName

private java.lang.String getServiceName(Performative msg)

serviceDescriptionReceived

public void serviceDescriptionReceived(Performative perf)
this is a message that is likely to have the name of the task in it


addServiceList

private void addServiceList(java.lang.String name)

inServiceList

private boolean inServiceList(java.lang.String name)

abilityReceived

public void abilityReceived(Performative perf)
the problem is to get the name of the task and to register it here Perhaps we this should be triggered by the second message?


handleRegister

public void handleRegister(Performative perf)
method for handleing a registration message to the df


makeDescription

public DF_Description makeDescription(AbsConcept act)

checkAuthority

public boolean checkAuthority(java.lang.String agent,
                              AbsPrimitive attempter,
                              AbsAggregate attempterAddresses,
                              Performative perf)

handleDeregister

public void handleDeregister(Performative perf)

handleModify

public void handleModify(Performative perf)

handleSearch

public void handleSearch(Performative perf)

getDescriptions

public java.lang.String getDescriptions(DF_Description toMatch)
returns a string that contains the df_descriptions that are matches for this df_description.


agentDescToSL

public java.lang.String agentDescToSL(Fact fact)

informDone

public void informDone(Performative perf)

simpleReply

public void simpleReply(Performative inPerf,
                        java.lang.String reason,
                        java.lang.String replyType)
simpleReply lets you reply to a message using the result convention of FIPA what I mean is: in FIPA there are alot of messages like "refuse original reason" or "not_understood original reason", and this method lets you send them pretty simply


sendAgree

public void sendAgree(Performative perf)
make an "agree" response in SL


debug

void debug(java.lang.String str)

main

public static void main(java.lang.String[] param)


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.