public class MasterAgent extends AbstractTucsonAgent
completionEvents
Constructor and Description |
---|
MasterAgent(java.lang.String aid,
java.util.List<java.lang.String> nodes,
int iters,
int maxFact) |
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 aid, java.util.List<java.lang.String> nodes, int iters, int maxFact) throws TucsonInvalidAgentIdException
aid
- agent namenodes
- list of nodes where to submit jobsiters
- max number of jobs per nodemaxFact
- max number for which to calculate factorialTucsonInvalidAgentIdException
- if the given String does not represent a valid TuCSoN agent
identifierpublic static void main(java.lang.String[] args)
args
- no args expected.public 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