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.

Using Vergil<br />

model, simply copy (or cut) an instance from the composite where the class is, and then paste that<br />

instance into the composite.<br />

2.7.4 Sharing Classes Across Models<br />

A class may be shared across multiple models by saving the class definition in its own file. We will<br />

illustrate how to do that with the Channel class. First, look inside the Channel class, and then select<br />

Save As from the File menu. The dialog that appears is shown in figure 2.42. The checkbox at the<br />

right, labeled “Save submodel only” is by default unchecked, and if left unchecked, what will be saved<br />

will be the entire model. In our case, we wish to save the Channel submodel only, so we must check the<br />

box.<br />

Move subclass<br />

FIGURE 2.39. The model from figure 2.38 with a subclass of the Channel with no overrides (yet).<br />

FIGURE 2.40. The subclass from figure 2.39 with overrides that add sinusoidal interference.<br />

Heterogeneous Concurrent Modeling and Design 71

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

Saved successfully!

Ooh no, something went wrong!