public class DiningPhilosopher extends AbstractTucsonAgent
completionEvents
Constructor and Description |
---|
DiningPhilosopher(java.lang.String aid,
TucsonTupleCentreId seat) |
Modifier and Type | Method and Description |
---|---|
protected void |
main()
Main execution cycle, user-defined.
|
void |
operationCompleted(AbstractTupleCentreOperation op) |
void |
operationCompleted(ITucsonOperation arg0) |
getContext, getTucsonAgentId, go, myName, myNode, myport, say, setContext
public DiningPhilosopher(java.lang.String aid, TucsonTupleCentreId seat) throws TucsonInvalidAgentIdException
aid
- the String representation of this philosopher's TuCSoN agent
identifierseat
- the identifier of the TuCSoN tuple centre representing the
philosopher's seatTucsonInvalidAgentIdException
- if the given String does not represent a valid TuCSoN agent
identifierpublic void operationCompleted(AbstractTupleCentreOperation op)
operationCompleted
in interface OperationCompletionListener
operationCompleted
in class AbstractTucsonAgent
op
- the operation completedpublic void operationCompleted(ITucsonOperation arg0)
operationCompleted
in interface TucsonOperationCompletionListener
operationCompleted
in class AbstractTucsonAgent
arg0
- the TuCSoN operation just completedprotected void main()
AbstractTucsonAgent
main
in class AbstractTucsonAgent