1 / 11

The XMPL Language

The XMPL Language. Tazeen Mahtab July 22, 2003. Introduction to XMPL. Stands for XML-based Model Programming Language Designed to be portable, human-readable and machine-readable Part of Livingstone 2 JMPL compiles to XMPL in Livingstone 2 MPL compiles to MOF in Titan.

arlo
Télécharger la présentation

The XMPL Language

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The XMPL Language Tazeen Mahtab July 22, 2003

  2. Introduction to XMPL • Stands for XML-based Model Programming Language • Designed to be portable, human-readable and machine-readable • Part of Livingstone 2 • JMPL compiles to XMPL in Livingstone 2 • MPL compiles to MOF in Titan

  3. Typical Structure of .xmpl file <componentinstance/> contains the model specification. <xmpl>   <attributetype .... />   <componenttype .... />   <componentinstance ... /> </xmpl>

  4. Model Specification A <componentinstance/> can contain multiple attribute types and components. For example, this model contains circuit breakers and LEDs. <componentinstance name="cbAndLed"> <ci:attributetype … /> … <ci:component type="cb" name="cbAndLed.cb10“… /> <ci:component type="cb" name="cbAndLed.cb9“… /> <ci:component type=“led" name="cbAndLed.led1“… /> … </componentinstance>

  5. Attributes • An attribute type specifies the domain of an attribute. <ci:attributetype name="onOffState" members="on off"/> • In Titan’s MOF format, this corresponds to the VARIABLE-DOMAIN-TYPE.

  6. Components • A typical model component contains modal constraints and transitions, as well as additional attribute types. <ci:component type="cb“ name="cbAndLed.cb10"> <ci:statevector vars="mode"/> <ci:attribute … /> <ci:transition … /> … <ci:clause … /> … </ci:component>

  7. Constraints The same element is used for both modal and transitional constraints. <ci:clause> <ci:term>!mode=off</ci:term> <ci:term>currentOut=off</ci:term> </ci:clause>

  8. Transitions A transition specifies the to and from states, as well as the transition guards. <ci:transition to="on" from="off“ name="turnOn"> <ci:clause> <ci:term>!cmdIn=on</ci:term> </ci:clause> </ci:transition>

  9. Failures • Failure transitions look the same as normal transitions. • They can include a probability. <ci:transition to="blown" probability="rare" from="*" name="blown"/>

  10. Translator • Located inside /projects/mers/xmpl-parser. • Converts .xmpl to Titan CCAModel data structure and then to .cca and .bm files. • Tried it out, but probably still has errors.

  11. Sources • Livingstone 2 distribution • http://ic.arc.nasa.gov/projects/mba/projects/L2/doc/jmpl/intro_to_xmpl.html

More Related