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 Yuhong Xiong @version $Id: TypedCompositeActor.java,v 1.98 2007/12/07 06:24:50 cxh Exp $ @since Ptolemy II 0.2 @Pt.ProposedRating Green (yuhong) @Pt.AcceptedRating Green (lmuliadi) @see ptolemy.actor.TypedIOPort @see ptolemy.actor.TypedIORelation @see ptolemy.actor.TypedActor @see ptolemy.kernel.ComponentEntity @see ptolemy.actor.CompositeActor
|
|
|
|
|
|