public class BridgeToTucson
extends java.lang.Object
Constructor and Description |
---|
BridgeToTucson(alice.tucson.api.EnhancedACC a,
TucsonService s) |
Modifier and Type | Method and Description |
---|---|
AsynchTucsonOpResult |
asynchronousInvocation(AbstractTucsonAction action)
"Polling mode", asynchronous invocation method.
|
void |
asynchronousInvocation(AbstractTucsonAction action,
jade.core.behaviours.Behaviour behav,
jade.core.Agent myAgent)
"Interrupt mode", asynchronous invocation method.
|
void |
clearTucsonOpResult(jade.core.behaviours.Behaviour b)
To be called in case of synchronous invocations after result handling so
as to clean shared data structures.
|
alice.tucson.service.TucsonOpCompletionEvent |
synchronousInvocation(AbstractTucsonAction action,
java.lang.Long timeout,
jade.core.behaviours.Behaviour behav)
Synchronous invocation method.
|
public BridgeToTucson(alice.tucson.api.EnhancedACC a, TucsonService s)
a
- the ACC the JADE bridge needs to interact with TuCSoN services
- the TuCSoN service this bridge is interacting withpublic AsynchTucsonOpResult asynchronousInvocation(AbstractTucsonAction action) throws jade.core.ServiceException
action
- the TuCSoN coordination operation to be carried outjade.core.ServiceException
- if the coordination service is not availablepublic void asynchronousInvocation(AbstractTucsonAction action, jade.core.behaviours.Behaviour behav, jade.core.Agent myAgent)
action
- the TuCSoN coordination operation to be carried outbehav
- the JADE behaviour handling the resultmyAgent
- the JADE agent responsible for execution of the behaviourpublic void clearTucsonOpResult(jade.core.behaviours.Behaviour b)
b
- the behaviour calling the coordination operations, whose
result map should be cleanedpublic alice.tucson.service.TucsonOpCompletionEvent synchronousInvocation(AbstractTucsonAction action, java.lang.Long timeout, jade.core.behaviours.Behaviour behav) throws jade.core.ServiceException
action
- the TuCSoN coordination operation to be carried outtimeout
- the maximum waiting time for completion receptionbehav
- caller behaviourjade.core.ServiceException
- if the coordination service is not available