add starting point for mosis 2024 assignment

This commit is contained in:
Joeri Exelmans 2024-12-13 11:58:27 +01:00
parent 3404c782a9
commit 4b959bc98b
9 changed files with 441 additions and 0 deletions

24
assignment/TIPS.txt Normal file
View file

@ -0,0 +1,24 @@
CODING CONVENTIONS
1. write your methods always in the following order:
extTransition
timeAdvance
outputFnc
intTransition
this reflects the order in which the methods are called by the simulator:
extTransition always has highest priority (can interrupt anything)
timeAdvance is called before outputFnc
outputFnc is called right before intTransition
2. input/output port attributes start with 'in_' and 'out_'
TROUBLESHOOTING
- did you forget to return `self.state` from intTransition or extTransition ?
- did you accidentally write to `self.x` instead of `self.state.x` ?
- did you modify the state in timeAdvance or outputFnc (NOT ALLOWED!!)