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.

7. MoML 191<br />

7.1. Introduction 191<br />

7.2. MoML Principles 193<br />

7.2.1. Clustered Graphs 194<br />

7.2.2. Abstraction 195<br />

7.3. Specification of a Model 196<br />

7.3.1. Data Organization 196<br />

7.3.2. Overview of XML 198<br />

7.3.3. Names and Classes 199<br />

7.3.4. Top-Level Entities 199<br />

7.3.5. Entity Element 200<br />

7.3.6. Properties 201<br />

7.3.7. Doc Element 203<br />

7.3.8. Ports 204<br />

7.3.9. Relations and Links 205<br />

7.3.10. Classes 207<br />

7.3.11. Inheritance 210<br />

7.3.12. Directors 210<br />

7.3.13. Input Element 211<br />

7.3.14. Annotations for Visual Rendering 211<br />

7.4. Incremental Parsing 213<br />

7.4.1. Adding Entities 213<br />

7.4.2. Using Absolute Names 213<br />

7.4.3. Adding Ports, Relations, and Links 214<br />

7.4.4. Changing Port Configurations 214<br />

7.4.5. Deleting Entities, Relations, and Ports 215<br />

7.4.6. Renaming Objects 215<br />

7.4.7. Converting a Class to an Entity or Vice Versa 216<br />

7.4.8. Changing Documentation, Properties, and Directors 216<br />

7.4.9. Removing Links 216<br />

7.4.10. Grouping Elements 217<br />

7.5. Parsing MoML 218<br />

7.6. Exporting MoML 220<br />

7.7. Special Attributes 221<br />

7.8. Acknowledgements 221<br />

Appendix: Example 222<br />

Sinewave Generator 222<br />

Modulation 226<br />

8. Custom Applets 233<br />

8.1. Introduction 233<br />

8.2. HTML Files Containing Applets 234<br />

8.3. Defining a Model in a Java File 235<br />

8.3.1. A Model Class as a Composite Actor 235<br />

8.3.2. Compiling 237<br />

8.3.3. Executing the Model in an Application 239<br />

8.3.4. Extending PtolemyApplet 239<br />

8.3.5. Using Model Parameters 241

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

Saved successfully!

Ooh no, something went wrong!