|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lifl.magique.skill.DefaultSkill
fr.lifl.magique.skill.system.ConnectionSkill
Skill used to connect the gifted agent to another one (who should know the "same" skill - in fact a skil with the same public signature). Agenda is updated. The connectionAuthorized method tells if the connection is accepted (default is always TRUE)
| Constructor Summary | |
ConnectionSkill(AtomicAgent myAgent)
|
|
| Method Summary | |
java.lang.Boolean |
connectionRequired(java.lang.String theOther)
an agent wants to connect to me, i can accept or not |
void |
connectionTo(java.lang.String agent)
connect me to the agent whose name is agent, this name must be of the form shortname@hostname:port but if the agent belongs to the same platform as me, shortName is sufficient. |
| Methods inherited from class fr.lifl.magique.skill.DefaultSkill |
addAgenda, addSkill, addSkill, addSkill, addSkill, ask, ask, ask, ask, ask, ask, ask, ask, ask, ask, ask, ask, ask, ask, askNow, askNow, askNow, askNow, askNow, askNow, askNow, askNow, askNow, askNow, askNow, askNow, askNow, askNow, concurrentAsk, concurrentAsk, concurrentAsk, concurrentAsk, concurrentAsk, concurrentAsk, concurrentAsk, connectTo, createOrder, createOrder, createOrder, createOrder, createOrder, createOrder, createQuestion, createQuestion, createQuestion, createQuestion, createQuestion, createQuestion, getAgenda, getMyAgent, getName, getPlatform, isAnswerReceived, perform, perform, perform, perform, perform, perform, perform, perform, perform, perform, perform, perform, perform, perform, removeSkill, removeSkillFromClassName, returnAnswer, returnValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConnectionSkill(AtomicAgent myAgent)
| Method Detail |
public void connectionTo(java.lang.String agent)
throws ConnectionRefusedException
agent - the agent i connect to
ConnectionRefusedExceptionpublic java.lang.Boolean connectionRequired(java.lang.String theOther)
theOther - the agent who wants to connect to me
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||