public class Spawn extends AbstractTucsonOrdinaryAction
spawn
TuCSoN primitive.OrdinaryAsynchACC
tuple
tcid, tupleCentreName
Constructor and Description |
---|
Spawn(TucsonTupleCentreId tc,
LogicTuple t)
Builds the TuCSoN
spawn action given its target tuple centre and
its tuple argument |
Modifier and Type | Method and Description |
---|---|
ITucsonOperation |
executeAsynch(EnhancedAsynchACC acc,
TucsonOperationCompletionListener listener)
Requests execution of this TuCSoN action in ASYNCHRONOUS mode, that is,
without blocking the caller until operation completion, regardless of the
operation suspensive/predicative semantics (e.g., a
in without
matching tuples does not cause blocking the caller agent) |
ITucsonOperation |
executeSynch(EnhancedSynchACC acc,
java.lang.Long timeout)
Requests execution of this TuCSoN action in SYNCHRONOUS mode, that is,
blocking the caller until operation completion (e.g., a
in
without matching tuples does cause blocking the caller agent). |
java.lang.String |
toString() |
public Spawn(TucsonTupleCentreId tc, LogicTuple t)
spawn
action given its target tuple centre and
its tuple argumenttc
- the ID of the TuCSoN tuple centre target of this coordination
operationt
- the logic tuple representing the activity argument of this
coordination operationpublic ITucsonOperation executeAsynch(EnhancedAsynchACC acc, TucsonOperationCompletionListener listener) throws TucsonOperationNotPossibleException, UnreachableNodeException
AbstractTucsonAction
in
without
matching tuples does not cause blocking the caller agent)executeAsynch
in class AbstractTucsonAction
acc
- the TuCSoN ACC in charge of action executionlistener
- the TuCSoN listener responsible for handling completion
notificationsTucsonOperationNotPossibleException
- if the coordination operation request cannot be carried outUnreachableNodeException
- if the target TuCSoN node is not available on the networkpublic ITucsonOperation executeSynch(EnhancedSynchACC acc, java.lang.Long timeout) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
AbstractTucsonAction
in
without matching tuples does cause blocking the caller agent). This
method is mainly conceived for usage within TuCSoN4JADE bridge component:
see more at http://bitbucket.org/smariani/tucson4jadeexecuteSynch
in class AbstractTucsonAction
acc
- the TuCSoN ACC in charge of action executiontimeout
- the maximum timeout the caller is willing to waitTucsonOperationNotPossibleException
- if the coordination operation request cannot be carried outUnreachableNodeException
- if the target TuCSoN node is not available on the networkOperationTimeOutException
- if the chosen timeout elapses prior to completion
notificationpublic java.lang.String toString()
toString
in class AbstractTucsonOrdinaryAction