03.08.2013 Views

PTOLEMY II - CiteSeerX

PTOLEMY II - CiteSeerX

PTOLEMY II - CiteSeerX

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using Vergil<br />

these ports are shown in the diagram. The Expression actor is a very flexible actor in the Ptolemy <strong>II</strong><br />

actor library. It can have any number of input ports, with arbitrary names, and uses a rich and expressive<br />

expression language to specify the value of the output as a function of the inputs (and parameters<br />

of the containing model, if desired).<br />

Three of the actors in figure 2.1 are composite actors, which means that their implementation is<br />

itself given as a block diagram. Composite actors are indicated visually by the red outline. You can<br />

look inside to reveal the implementation, as shown in figure 2.5, which shows the implementation of<br />

the Signal Source in figure 2.1. It is evident from the block diagram how a sinusoidal signal is generated.<br />

2.2.3 Executing a Pre-Built Model: A Continuous-Time Example<br />

A key principle of the Ptolemy <strong>II</strong> system is that the model of computation that defines the meaning<br />

of a block diagram is not built-in, but is rather specified by the director component that is included in<br />

the model. The box labeled “SDF Director” in figures 2.1 and 2.5 specifies that these block diagrams<br />

have synchronous dataflow semantics, which is explained further below. The second example in the<br />

quick tour of figure 2.3, by contrast, has continuous-time semantics (the one labeled “Continuous-<br />

Time Modeling”). The example is the well-known Lorenz attractor, a non-linear feedback system that<br />

exhibits chaotic behavior.<br />

FIGURE 2.4. The run window for the model shown in figure 2.1.<br />

48 Ptolemy <strong>II</strong>

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

Saved successfully!

Ooh no, something went wrong!