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.

Expressions<br />

3.3.5 State Machines<br />

Expressions give the guards for state transitions, as well as the values used in actions that produce<br />

outputs and actions that set values of parameters in the refinements of destination states. This mechanism<br />

was explained in the previous chapter.<br />

(e)<br />

FIGURE 3.4. String parameters are indicated in the parameter editor boxes by a light blue background. A<br />

string parameter can include references to variables in scope with $name, where name is the name of the<br />

variable. In this example, the built-in constant $PI is referenced by name in the first<br />

(d)<br />

(a)<br />

(b)<br />

(c)<br />

FIGURE 3.5. Illustration of the Expression actor.<br />

Heterogeneous Concurrent Modeling and Design 101<br />

(f)

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

Saved successfully!

Ooh no, something went wrong!