
TypedCompositeActor |
ptolemy.actor.TypedCompositeActor |
A TypedCompositeActor is an aggregation of typed actors.
When exporting MoML, instances of this class identify their class name
as TypedCompositeActor. If a derived class does not change this, then it
too will be identified as a TypedCompositeActor. To change this in a
derived class, put the following line in the constructor
getMoMLInfo().className = "full class name";
If you do this, you will probably also want to override _exportMoMLContents()
to not generate a description of the contents of the composite, since
they will be already defined in the Java class.
The ports of a TypedCompositeActor are constrained to be TypedIOPorts,
the relations to be TypedIORelations, and the actors to be instances of
ComponentEntity that implement the TypedActor interface. Derived classes
may impose further constraints by overriding newPort(), _addPort(),
newRelation(), _addRelation(), and _addEntity(). Also, derived classes may
constrain the container by overriding _checkContainer().
Author(s): Yuhong Xiong
Version:$Id: TypedCompositeActor.java,v 1.89 2005/07/08 19:37:35 cxh Exp $
Pt.Proposed Rating:Green (yuhong)
Pt.Accepted Rating:Green (lmuliadi)