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 />

we have modified the custom icons so that each has a different color, and the fifth one has an extra<br />

graphical element. To do this, just right click on the icon of the instance and select “Edit Custom Icon.”<br />

2.7.3 Subclassing and Inheritance<br />

Suppose now that we wish to modify some of the channels to add interference in the form of<br />

another sinewave. A good way to do this is to create a subclass of the Channel class, as shown in figure<br />

2.39. A subclass is created by right clicking on the class icon and selecting “Create Subclass.” The<br />

Model with<br />

connections<br />

removed.<br />

FIGURE 2.36. Creating and using a channel class.<br />

Model after channel is converted to class.<br />

Model after class is moved to the top.<br />

Model after instance is created from class.<br />

Model with<br />

multiple instances<br />

of the same class.<br />

Heterogeneous Concurrent Modeling and Design 69

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

Saved successfully!

Ooh no, something went wrong!