add event sequence diagram
This commit is contained in:
38
readme.md
38
readme.md
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user