public class MasterAgent extends AbstractTucsonAgent
completionEvents
Constructor and Description |
---|
MasterAgent(java.lang.String id,
int nCalcs)
Builds a Master Agent given its TuCSoN agent ID and the number of
calculations to perform
|
Modifier and Type | Method and Description |
---|---|
protected void |
main()
Main execution cycle, user-defined.
|
static void |
main(java.lang.String[] args) |
void |
operationCompleted(AbstractTupleCentreOperation op) |
void |
operationCompleted(ITucsonOperation op) |
getContext, getTucsonAgentId, go, myName, myNode, myport, say, setContext
public MasterAgent(java.lang.String id, int nCalcs) throws TucsonInvalidAgentIdException
id
- the TuCSoN agent IDnCalcs
- the number of calculations to performTucsonInvalidAgentIdException
- if the given String does not represent a valid TuCSoN agent
IDpublic static void main(java.lang.String[] args)
args
- no args expectedpublic void operationCompleted(AbstractTupleCentreOperation op)
operationCompleted
in interface OperationCompletionListener
operationCompleted
in class AbstractTucsonAgent
op
- the operation completedpublic void operationCompleted(ITucsonOperation op)
operationCompleted
in interface TucsonOperationCompletionListener
operationCompleted
in class AbstractTucsonAgent
op
- the TuCSoN operation just completedprotected void main()
AbstractTucsonAgent
main
in class AbstractTucsonAgent