An implementation of the ptolemy.actor.Receiver interface for the
The put() method stores the given token in this receiver and posts a
trigger event to the director. The director is responsible to dequeue that
trigger event and invoke the actor that contains this receiver.
The get() method returns the first available token from the receiver.
Before firing an actor, the director is expected to put at least one
token into at least one of the receivers contained by the actor.
Get the first token from the receiver. The token returned is one that
was put in the receiver with a timestamp equal to or earlier than
the current time. If there is no token, throw an exception. If this
receiver contains more than one event, the oldest event is removed
first. In other words, this receiver has a FIFO behavior.
Return true if the receiver has room for putting the given number of
tokens into it (via the put() method).
Returning true in this method should also guarantee that calling
the put() method will not result in an exception.
Put a token into this receiver and post a trigger event to the director.
The director will be responsible to dequeue the trigger event at
the correct timestamp and microstep and invoke the corresponding actor
whose input port contains this receiver. This receiver may contain
more than one events.