
CollectionIOPort |
org.nddp.CollectionIOPort |
A subclass of TypedIOPort that implements the
<a href="../../org/nddp/CollectionPort.xml">org.nddp.CollectionPort</a> interface. This class should be used
in actors derived from <a href="../../org/nddp/CollectionActor.xml">org.nddp.CollectionActor</a> wherever a
TypedIOPort would be used in a collection-unaware actor.
This class class provides easy-to-use factories, simplified
get and send methods, and support for automatically recognizing tokens
derived from <a href="../../org/nddp/tokens/CollectionToken.xml">org.nddp.tokens.CollectionToken</a>, including delimiters
and metadata tokens. Note that, unlike TypedIOPort, an instance of
CollectionIOPort must be an input port or output port, but cannot be both.
<p>
<b>Usage:</b>
<ul>
<li>A CollectionIOPort must be declared as a public field of the containing
actor.</li>
<li>A CollectionIOPort should be constructed by calling one of the factory
method from within the constructor of the containing actor.</li>
<li>All collection-processing actors should use this class rather than Ptolemy's
TypedIOPort class.</li>
</ul>
Author(s): Timothy M. McPhillips
Version: