add event sequence diagram

This commit is contained in:
2023-10-22 17:05:30 +02:00
parent c07c47385e
commit c9d2c05b73
3 changed files with 59 additions and 34 deletions

View File

@@ -8,40 +8,6 @@
# Time Algorithm
<details>
<summary>Code puml (maybe it's displayed) </summary>
```plantuml
@startuml
start
:newTime = 0
totalTime = 0
isEnd = it == list.end()
lastTime = 0;
#tomato:if (!isEnd) then (not end)
#tomato:totalTime += it.getRelTicks();
endif
while ( !isEnd && (totalTime <= newTime) ) is (goForward)
:isEnd = (++it == list.end());
:lastTime = totalTime;
#tomato:if (!isEnd) then (not end)
#tomato:totalTime += it.getRelTicks();
endif
endwhile
#tomato:if (!isEnd) then (not end)
#tomato:subRelTicks(newTime- lastTime);
endif
:it.setRelTicks(newTime - lastTime);
:insert(it, newTimeout);
@enduml
```
</details>
<img src="./UML/timeAlgorithme.png">
@@ -50,6 +16,10 @@ endif
<img src="./UML/timeout.png">
## Event
<img src="./UML/event.png">
# Tests
## Test 1
This test launches an instance of the Task01Tm class and produces some output. Optionally, multiple instances of Task01Tm can be created to test the XF.