An abstract base class for publisher and subscriber ports.
Edward A. Lee
$Id: PubSubPort.java 70402 2014-10-23 00:52:20Z cxh $
Ptolemy II 10.0
Yellow (eal)
Red (eal)
If set, then this port is used to communicate over a named
publish and subscribe channel, rather than over manually
established connections.
Specification of whether the published data is global.
This is ignored if <a href="../../ptolemy/actor/PubSubPort.xml#channel">channel</a> is empty.
If this is set to true, then a subscriber anywhere in the model that
references the same channel by name will see values published by
this port. If this is set to false (the default), then only
those subscribers that are controlled by the same director will see
values published on this channel.
The values that will be made available in the initialize method.
By default, this is empty, indicating that no initial tokens are
available. If you wish for this port to have initial tokens,
then give this parameter an array value specifying
the sequence of initial values. If this is an output port,
these initial values will be sent in the initialize() phase.
If this is an input port, then these initial values will be
available for reading after the initialize() phase.
Changes to this parameter after initialize() has been invoked
are ignored until the next execution of the model.