add time algorithme activity diagram in png
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								UML/timeAlgorithme.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								UML/timeAlgorithme.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 28 KiB | 
							
								
								
									
										27
									
								
								UML/timeAlgorithme.puml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								UML/timeAlgorithme.puml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| @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 | ||||
		Reference in New Issue
	
	Block a user