public final class UnauthorisedAgent extends AbstractTucsonAgent
completionEvents
Constructor and Description |
---|
UnauthorisedAgent(java.lang.String id,
java.lang.String netid,
int p) |
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 UnauthorisedAgent(java.lang.String id, java.lang.String netid, int p) throws TucsonInvalidAgentIdException
id
- the ID of this TuCSoN agentnetid
- the IP address of the TuCSoN node it is willing to interact
withp
- the TCP port number of the TuCSoN node it is willing to
interact withTucsonInvalidAgentIdException
- if the given String does not represent a valid TuCSoN agent
IDpublic 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
public static void main(java.lang.String[] args)
args
- program arguments: args[0] is TuCSoN Node TCP port number.