|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectzeus.agents.FIPA_Services
zeus.agents.FIPA_DF_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 |
private java.lang.String NOT_AUTHORISED
private java.lang.String UNEXPECTED
private GenSym rand
java.lang.String hack
private java.util.Hashtable registered_agents
private java.util.Hashtable registered_dfs
private SLCodec codec
java.lang.String ABILITY_KEY
java.lang.String SERVICE_KEY
java.util.Hashtable serviceList
| Constructor Detail |
public FIPA_DF_Services()
| Method Detail |
public void exec(AgentContext context)
private java.lang.String getServiceName(Performative msg)
public void serviceDescriptionReceived(Performative perf)
private void addServiceList(java.lang.String name)
private boolean inServiceList(java.lang.String name)
public void abilityReceived(Performative perf)
public void handleRegister(Performative perf)
public DF_Description makeDescription(AbsConcept act)
public boolean checkAuthority(java.lang.String agent,
AbsPrimitive attempter,
AbsAggregate attempterAddresses,
Performative perf)
public void handleDeregister(Performative perf)
public void handleModify(Performative perf)
public void handleSearch(Performative perf)
public java.lang.String getDescriptions(DF_Description toMatch)
public java.lang.String agentDescToSL(Fact fact)
public void informDone(Performative perf)
public void simpleReply(Performative inPerf,
java.lang.String reason,
java.lang.String replyType)
public void sendAgree(Performative perf)
void debug(java.lang.String str)
public static void main(java.lang.String[] param)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||