03.08.2013 Views

PTOLEMY II - CiteSeerX

PTOLEMY II - CiteSeerX

PTOLEMY II - CiteSeerX

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.8 Higher-Order Components<br />

Using Vergil<br />

Ptolemy <strong>II</strong> includes a number of higher-order components, which are actors that operate on the<br />

structure of the model rather than on data. This notion of higher-order components appeared in<br />

Ptolemy Classic and is described in [81], but the realization in Ptolemy <strong>II</strong> is more flexible than that in<br />

Ptolemy Classic. These higher-order components help significantly in building large designs where the<br />

model structure does not depend on the scale of the problem. In this section, we describe a few of these<br />

components, all of which are found in the HigherOrderActors library. The ModalModel actor is<br />

described below in section 2.10, after explaining some of the domains that can make effective use of it.<br />

2.8.1 MultiInstance Composite<br />

Consider model in figure 2.37, which has five instances of the Channel class wired in parallel. This<br />

model has the unfortunate feature that the number of instances is hardwired into the diagram. It is awkward,<br />

therefore, to change this number, and particularly awkward to create a larger number of<br />

FIGURE 2.44. Instances of a class that is defined in its own file can be made available in the UserLibrary.<br />

74 Ptolemy <strong>II</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!