ModelGeneration

This page contains an applet that should appear as a separate window.

This model is inpired by the ModelChange Ptalon model (in ptolemy/actor/ptalon/demo/ModelChange). It generates a simple model parameterized by the by number n. Initially, an empty model with name "myModel" is generated by the ModelGenerator actor. The first transformation rule, CreateDisplay, creates a Display actor and a Merge actor in that empty model, and adds a DE Director as well. (Right click on CreateDisplay and choose "Open Actor" to see the design of this transformation rule.) The model then enters a loop for n iterations. In each iteration, the transformation rule in the CreateNode actor is applied once. In each application, a SingleEvent actor is added to that model. As a result, the model that is sent to the Display has n SingleEvent actors inside.

\ \ MoML specification for this model. \