ptolemy.actor
Interface TokenGotListener
public interface TokenGotListener
A TokenGotListener listens for events that are issued during the
get(), and getInside() function calls of an IOPort. In
general, an object that implements this interface will be collecting
tokens for storage.
Currently this class is being used in Kepler by the
ProvenanceExecutionListener for saving tokens with provenance
information. In the future, listeners will use this interface
to save tokens in a cache for use during "smart" reruns or for
fault tolerance.
- Since:
- Ptolemy II 6.1
- Version:
- $Id: TokenGotListener.java,v 1.4 2007/12/06 19:47:20 cxh Exp $
- Author:
- Oscar Barney
- See Also:
IOPort
- Accepted Rating:
- Proposed Rating:
tokenGotEvent
void tokenGotEvent(TokenGotEvent event)
- Report an that a token was received with get(). This method
will be called when a token has been taken from the port's
queue at an input IOPort.
- Parameters:
event - The event to report.