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.

4.3.12. Real Time 142<br />

4.3.13. Signal Processing 143<br />

4.3.14. String 146<br />

4.3.15. Domain Specific 146<br />

4.3.16. Discrete Event 148<br />

4.4. Data Polymorphism 148<br />

4.5. Domain Polymorphism 150<br />

5. Designing Actors 151<br />

5.1. Overview 151<br />

5.2. Anatomy of an Actor 152<br />

5.2.1. Ports 152<br />

5.2.2. Port Rates and Dependencies Between Ports 158<br />

5.2.3. Parameters 159<br />

5.2.4. Constructors 160<br />

5.2.5. Cloning 160<br />

5.3. Action Methods 162<br />

5.3.1. Initialization 162<br />

5.3.2. Prefire 163<br />

5.3.3. Fire 164<br />

5.3.4. Postfire 165<br />

5.3.5. Wrapup 165<br />

5.4. Coupled Port and Parameter 168<br />

5.5. Iterate Method 170<br />

5.6. Time 170<br />

5.7. Icons 171<br />

5.7.1. The Older Method 172<br />

Appendix: Creating and Using a Simple Actor 174<br />

6. Coding Style 177<br />

6.1. Motivation 177<br />

6.2. Anatomy of a File 178<br />

6.2.1. Copyright 178<br />

6.2.2. Imports 181<br />

6.3. Comment Structure 181<br />

6.3.1. Javadoc and HTML 182<br />

6.3.2. Class documentation 182<br />

6.3.3. Code rating 183<br />

6.3.4. Constructor documentation 184<br />

6.3.5. Method documentation 184<br />

6.3.6. Referring to methods in comments 186<br />

6.3.7. Tags in method documents 186<br />

6.3.8. FIXME annotations 187<br />

6.4. Code Structure 187<br />

6.4.1. Names of classes and variables 187<br />

6.4.2. Indentation and brackets 187<br />

6.4.3. Spaces 188<br />

6.4.4. Exceptions 188<br />

6.5. Directory naming conventions 189

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

Saved successfully!

Ooh no, something went wrong!