
TypedAtomicActor |
ptolemy.actor.TypedAtomicActor |
A TypedAtomicActor is an AtomicActor whose ports and parameters have types.
The typeConstraintList() method returns the type constraints among
the contained ports and parameters. This base class provides a default
implementation of this method, which should be suitable for most of the
derived classes.
Derived classes may constrain the container by overriding
_checkContainer(). The Ports of TypedAtomicActors are constrained to be
TypedIOPorts. Derived classes may further constrain the ports by
overriding the public method newPort() to create a port of the
appropriate subclass, and the protected method _addPort() to throw an
exception if its argument is a port that is not of the appropriate
subclass.
Author(s): Yuhong Xiong
Version:$Id: TypedAtomicActor.java,v 1.81 2005/07/08 19:37:39 cxh Exp $
Pt.Proposed Rating:Green (cxh)
Pt.Accepted Rating:Green (cxh)