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

Using Vergil<br />

Authors: Edward A. Lee<br />

Steve Neuendorffer<br />

2.1 Introduction<br />

There are many ways to use Ptolemy <strong>II</strong>. It can be used as a framework for assembling software<br />

components, as a modeling and simulation tool, as a block-diagram editor, as a system-level rapid prototyping<br />

application, as a toolkit supporting research in component-based design, or as a toolkit for<br />

building Java applications. This chapter introduces its use as a modeling and simulation tool.<br />

In this chapter, we describe how to graphically construct models using Vergil, a graphical user<br />

interface (GUI) for Ptolemy <strong>II</strong>. Figure 2.1 shows a simple Ptolemy <strong>II</strong> model in Vergil, showing the<br />

graph editor, one of several editors available in Vergil. Keep in mind as you read this document that<br />

graphical entry of models is only one of several possible entry mechanisms available in Ptolemy <strong>II</strong>. For<br />

example, you can define models in Java, as shown in figure 1.5, or in XML, as shown in figure 1.3 of<br />

the previous chapter. Moreover, only some of the execution engines (called domains) are described<br />

here. A major emphasis of Ptolemy <strong>II</strong> is to provide a framework for the construction of modeling and<br />

design tools, so the specific modeling and design tools described here should be viewed as representative<br />

of our efforts.<br />

2.2 Quick Start<br />

This section shows how to start Vergil, how to execute and explore pre-built models, and how to<br />

construct your own models.<br />

2.2.1 Starting Vergil<br />

First start Vergil. From the command line, enter “vergil”, or select Ptolemy <strong>II</strong> and Vergil in the<br />

Start menu 1 , or click on a Web Start link on a web page supporting the web edition. You should see an<br />

Heterogeneous Concurrent Modeling and Design 45

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

Saved successfully!

Ooh no, something went wrong!