This is a specialized input port that subscribes to data sent
to it on the specified named channel.
The tokens are "tunneled" from an instance of
<a href="../../ptolemy/actor/PublisherPort.xml">ptolemy.actor.PublisherPort</a> that names the same channel.
If <a href="../../ptolemy/actor/SubscriberPort.xml#global">global</a> is false (the default), then this subscriber
will only see instances of PublisherPort that are under the
control of the same director. That is, it can
be at a different level of the hierarchy, or in an entirely different
composite actor, as long as the relevant composite actors are
transparent (have no director). If <a href="../../ptolemy/actor/SubscriberPort.xml#global">global</a> is true,
then the publisher may be anywhere in the model, as long as its
<i>global</i> parameter is also true.
<p>
Any number of instances of SubscriberPort can subscribe to the same
channel.
<p>
This actor actually has a hidden input port that is connected
to the publisher via hidden "liberal links" (links that are
allowed to cross levels of the hierarchy). Consequently,
any data dependencies that the director might assume on a regular
"wired" connection will also be assumed across Publisher-Subscriber
pairs. Similarly, type constraints will propagate across
Publisher-Subscriber pairs. That is, the type of the Subscriber
output will match the type of the Publisher input.
Edward A. Lee, Contributor: Christopher Brooks
$Id: SubscriberPort.java 70398 2014-10-22 23:44:32Z cxh $
Ptolemy II 10.0
Yellow (eal)
Red (eal)