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.

MoML<br />

implement.<br />

7.3.7 Doc Element<br />

Some elements can be documented using the doc element. For example,<br />

<br />

<br />

Initialize the ramp above the default because... <br />

<br />

<br />

This actor produces an increasing sequence beginning with 5.<br />

<br />

<br />

With the above syntax, the documentation information must be textual data. It can include markup, as<br />

in the following example, which uses XHTML 5 formatting within the doc element:<br />

<br />

Using HTMLText with markup.<br />

<br />

An alternative method is to use an XML processing instruction as follows:<br />

<br />

<br />

<br />

This requires that any utility that uses the documentation information be able to handle the xhtml processing<br />

instruction, but it makes it very clear that the contents are XHTML. However, for reasons we<br />

do not understand, XML does not allow processing instructions to be nested, so this technique has its<br />

limitations.<br />

More than one doc element can be included in an element. To do this, give each doc element a<br />

name, as follows:<br />

<br />

<br />

doc contents<br />

<br />

<br />

The name must not conflict with any preexisting property. If a doc element or a property with the specified<br />

name exists, then it is removed and replaced with the property. If no name is given, then the doc<br />

element is assigned the name “_doc”.<br />

5. XHTML is HTML with additional constraints so that it conforms with XML syntax rules. In particular, every<br />

start tag must be matched by an end tag, something that ordinary HTML does not require (but fortunately, does<br />

allow).<br />

Heterogeneous Concurrent Modeling and Design 203

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

Saved successfully!

Ooh no, something went wrong!