In our effort to build a headless Ptolemy model (Giri posted about it earlier this week), we find that most of our actors do not become "full citizens" of the new model. As a result, nothing happens when we execute the model. We tried to model our code on MoMLSimpleApplication and the entity-creation code in MoML parser:
// The top-level TypedCompositeActor is named "world" // mote extends TypedCompositeActor NamedObj moteClone = (NamedObj) mote.clone(world.workspace()); world.workspace().add(moteClone); moteClone.setName("MoteActor " + i); ((ComponentEntity)moteClone).setContainer(world); // This differs on purpose from the "_location" parameter Parameter position = (Parameter) moteClone.getAttribute("position"); // ... Actors added this way make it into the manager's contained entity list, but not into the entity cache. When we call execute(), the method returns almost immediately, and none of the actors we tried to add using the above method are initialized ... Thanks for your guidance, Andy Z. ----- Andrew Zimdars Modeling, Simulation, and Information Sciences (Org. ABCS) Advanced Technology Center, Lockheed Martin Space Systems Co. Bldg. 153, Col. 2J4 1111 Lockheed Martin Way, Sunnyvale, CA 94089 w: 408/742.2111 m: 510/915.0662 ---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]