TIPS.txt 691 B

12345678910111213141516171819202122232425
  1. CODING CONVENTIONS
  2. 1. write your methods always in the following order:
  3. extTransition
  4. timeAdvance
  5. outputFnc
  6. intTransition
  7. this reflects the order in which the methods are called by the simulator:
  8. extTransition always has highest priority (can interrupt anything)
  9. timeAdvance is called before outputFnc
  10. outputFnc is called right before intTransition
  11. 2. input/output port attributes start with 'in_' and 'out_'
  12. TROUBLESHOOTING
  13. - did you forget to return `self.state` from intTransition or extTransition ?
  14. - did you accidentally write to `self.x` instead of `self.state.x` ?
  15. - did you modify the state in timeAdvance or outputFnc (NOT ALLOWED!!)