You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

266 lines
17KB

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:java="http://www.yworks.com/xml/yfiles-common/1.0/java" xmlns:sys="http://www.yworks.com/xml/yfiles-common/markup/primitives/2.0" xmlns:x="http://www.yworks.com/xml/yfiles-common/markup/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xmlns:yed="http://www.yworks.com/xml/yed/3" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd">
  3. <!--Created by yEd 3.18.2-->
  4. <key attr.name="Beschreibung" attr.type="string" for="graph" id="d0"/>
  5. <key for="port" id="d1" yfiles.type="portgraphics"/>
  6. <key for="port" id="d2" yfiles.type="portgeometry"/>
  7. <key for="port" id="d3" yfiles.type="portuserdata"/>
  8. <key attr.name="url" attr.type="string" for="node" id="d4"/>
  9. <key attr.name="description" attr.type="string" for="node" id="d5"/>
  10. <key for="node" id="d6" yfiles.type="nodegraphics"/>
  11. <key for="graphml" id="d7" yfiles.type="resources"/>
  12. <key attr.name="url" attr.type="string" for="edge" id="d8"/>
  13. <key attr.name="description" attr.type="string" for="edge" id="d9"/>
  14. <key for="edge" id="d10" yfiles.type="edgegraphics"/>
  15. <graph edgedefault="directed" id="G">
  16. <data key="d0" xml:space="preserve"/>
  17. <node id="n0">
  18. <data key="d4" xml:space="preserve"/>
  19. <data key="d6">
  20. <y:UMLClassNode>
  21. <y:Geometry height="261.74881661991583" width="454.94982322346914" x="203.37046005726967" y="216.7983870967741"/>
  22. <y:Fill color="#FFCC00" transparent="false"/>
  23. <y:BorderStyle color="#000000" type="line" width="1.0"/>
  24. <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="49.525390625" x="202.71221629923457" xml:space="preserve" y="3.0">Vehicle<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
  25. <y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="true">
  26. <y:AttributeLabel xml:space="preserve"># position: float
  27. # curVelocity: float
  28. # maxVelocity: float
  29. # brakeProb: float
  30. # id: int
  31. # test: int
  32. # trackLength: float</y:AttributeLabel>
  33. <y:MethodLabel xml:space="preserve">+ timeElapse(): void
  34. - getPosition(): float
  35. - getCurVelocity(): float
  36. - getMaxVelocity(): float
  37. - updateVelocity(distanceForerunner: float): void
  38. - timeElapse(): void
  39. - Vehicle(id: id, position: int, maxVelocity: float, brakeProb: float, trackLength: float)</y:MethodLabel>
  40. </y:UML>
  41. </y:UMLClassNode>
  42. </data>
  43. </node>
  44. <node id="n1">
  45. <data key="d4" xml:space="preserve"/>
  46. <data key="d6">
  47. <y:UMLClassNode>
  48. <y:Geometry height="239.72392180925658" width="318.9863253856943" x="272.00000000000006" y="-73.49999999999989"/>
  49. <y:Fill color="#FFCC00" transparent="false"/>
  50. <y:BorderStyle color="#000000" type="line" width="1.0"/>
  51. <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="38.68994140625" x="140.14819198972214" xml:space="preserve" y="3.0">Track<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
  52. <y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="true">
  53. <y:AttributeLabel xml:space="preserve"># vehicles: List&lt;Vehicle&gt;
  54. # vtrList: List&lt;List&lt;VehicleTimeRecord&gt;&gt;
  55. # trackLength: float
  56. # sumAvgMemory: float
  57. # lastAvg: float</y:AttributeLabel>
  58. <y:MethodLabel xml:space="preserve">+ timeElapse(timestep: float): void
  59. # createVehiclesList(numberVehicles: int): List&lt;Vehicle&gt;
  60. - getVtrList(): List&lt;List&lt;VehicleTimeRecord&gt;&gt;
  61. - getTrackLength(): float
  62. - avg_step(step: int): float
  63. # update_avg(): void
  64. - Track(numberVehicles: int, trackLength: float)</y:MethodLabel>
  65. </y:UML>
  66. </y:UMLClassNode>
  67. </data>
  68. </node>
  69. <node id="n2">
  70. <data key="d4" xml:space="preserve"/>
  71. <data key="d6">
  72. <y:UMLClassNode>
  73. <y:Geometry height="185.25140252454426" width="407.8298854604958" x="338.5536684782608" y="515.6441795231414"/>
  74. <y:Fill color="#FFCC00" transparent="false"/>
  75. <y:BorderStyle color="#000000" type="line" width="1.0"/>
  76. <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="124.65625" x="141.5868177302479" xml:space="preserve" y="3.0">VehicleTimeRecord<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
  77. <y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="true">
  78. <y:AttributeLabel xml:space="preserve"># id: int
  79. # position: float
  80. # velocity: float
  81. # maxVelocity: float</y:AttributeLabel>
  82. <y:MethodLabel xml:space="preserve">- getMaxVelocity(): float
  83. - getPosition(): float
  84. - getVelocity(): float
  85. - VehicleTimeRecord(id: int, position: int, velocity: float, maxVelocity: float)</y:MethodLabel>
  86. </y:UML>
  87. </y:UMLClassNode>
  88. </data>
  89. </node>
  90. <node id="n3">
  91. <data key="d4" xml:space="preserve"/>
  92. <data key="d6">
  93. <y:UMLClassNode>
  94. <y:Geometry height="100.0" width="378.11827956989254" x="-347.7597373188404" y="31.442145862552735"/>
  95. <y:Fill color="#FFCC00" transparent="false"/>
  96. <y:BorderStyle color="#000000" type="line" width="1.0"/>
  97. <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="108.75537109375" x="134.68145423807127" xml:space="preserve" y="3.0">TimeRecordView<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
  98. <y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="true">
  99. <y:AttributeLabel xml:space="preserve"/>
  100. <y:MethodLabel xml:space="preserve"># onSizeChanged(w: int, h: int, oldw: int, oldh: int): void
  101. - TimeRecordView(context: context, track: Track)
  102. </y:MethodLabel>
  103. </y:UML>
  104. </y:UMLClassNode>
  105. </data>
  106. </node>
  107. <node id="n4">
  108. <data key="d4" xml:space="preserve"/>
  109. <data key="d6">
  110. <y:UMLClassNode>
  111. <y:Geometry height="28.0" width="100.0" x="-208.7005975338941" y="-160.9167031907433"/>
  112. <y:Fill color="#FFCC00" transparent="false"/>
  113. <y:BorderStyle color="#000000" type="line" width="1.0"/>
  114. <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="81.314453125" x="9.3427734375" xml:space="preserve" y="3.0">SurfaveView<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
  115. <y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="true">
  116. <y:AttributeLabel xml:space="preserve"/>
  117. <y:MethodLabel xml:space="preserve"/>
  118. </y:UML>
  119. </y:UMLClassNode>
  120. </data>
  121. </node>
  122. <node id="n5">
  123. <data key="d4" xml:space="preserve"/>
  124. <data key="d6">
  125. <y:UMLClassNode>
  126. <y:Geometry height="376.2424833450209" width="269.12833099579257" x="-417.2893072113136" y="243.66936579593266"/>
  127. <y:Fill color="#FFCC00" transparent="false"/>
  128. <y:BorderStyle color="#000000" type="line" width="1.0"/>
  129. <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="80.57177734375" x="94.27827682602128" xml:space="preserve" y="3.0">MainActivity<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
  130. <y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="true">
  131. <y:AttributeLabel xml:space="preserve"> -static defaultNoOfVehicles: int = 25 {readOnly}
  132. - static defaultTrackLength: int = 100 {readOnly}
  133. - static defaultBrakeProb: float = 0.3f {readOnly}
  134. - static defaultMaxVelocity: float = 5.0f {readOnly}
  135. - static defaultDelay: int = 0 {readOnly}
  136. - static defaultHistoryLength: int = 50 {readOnly}
  137. - static defaultFrameskip: int = 0 {readOnly}
  138. # Track track: Track
  139. # TimeRecordView trackView: TimeRecordView
  140. # Worker worker: Worker
  141. # Renderer renderer: Renderer
  142. # LinearLayout viewStack: LinearLayout</y:AttributeLabel>
  143. <y:MethodLabel xml:space="preserve"># onCreate(savedInstanceState:Bundle): void
  144. - static round(float number, int digits): float
  145. # stopWorker(): void
  146. # updateTrack(): void
  147. - onProgressChanged(seekBar: SeekBar, progress: int, fromUser; boolean): void
  148. - onStartTrackingTouch(seekBar: SeekBar): void
  149. - onStopTrackingTouch(seekBar: SeekBar): void
  150. - onStepButtonClick(view: View): void
  151. - onPlayButtonClick(view: View): void
  152. - onStopButtonClick(view: View): void
  153. - onClearButtonClick(view: View): void</y:MethodLabel>
  154. </y:UML>
  155. </y:UMLClassNode>
  156. </data>
  157. </node>
  158. <node id="n6">
  159. <data key="d4" xml:space="preserve"/>
  160. <data key="d6">
  161. <y:UMLClassNode>
  162. <y:Geometry height="87.37727910238425" width="100.0" x="646.3835539387567" y="116.33785501402525"/>
  163. <y:Fill color="#FFCC00" transparent="false"/>
  164. <y:BorderStyle color="#000000" type="line" width="1.0"/>
  165. <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="48.7890625" x="25.60546875" xml:space="preserve" y="3.0">Worker<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
  166. <y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="true">
  167. <y:AttributeLabel xml:space="preserve"># frameskip: int
  168. # renderer: Renderer
  169. # track: Track
  170. # stop: boolean
  171. # gui: MainActivity
  172. # Renderer renderer
  173. # int frameskip;</y:AttributeLabel>
  174. <y:MethodLabel xml:space="preserve">- run(): void
  175. - setStop(stop: boolean): void
  176. - setFrameskip(frames): int: void
  177. - Worker(track: track, gui: MainActivity, renderer: Renderer, frameskip: int)
  178. </y:MethodLabel>
  179. </y:UML>
  180. </y:UMLClassNode>
  181. </data>
  182. </node>
  183. <node id="n7">
  184. <data key="d4" xml:space="preserve"/>
  185. <data key="d6">
  186. <y:UMLClassNode>
  187. <y:Geometry height="28.0" width="100.0" x="646.3835539387567" y="-73.49999999999989"/>
  188. <y:Fill color="#FFCC00" transparent="false"/>
  189. <y:BorderStyle color="#000000" type="line" width="1.0"/>
  190. <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="47.341796875" x="26.3291015625" xml:space="preserve" y="3.0">Thread<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
  191. <y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="true">
  192. <y:AttributeLabel xml:space="preserve"/>
  193. <y:MethodLabel xml:space="preserve"/>
  194. </y:UML>
  195. </y:UMLClassNode>
  196. </data>
  197. </node>
  198. <edge id="e0" source="n1" target="n0">
  199. <data key="d8" xml:space="preserve"/>
  200. <data key="d10">
  201. <y:PolyLineEdge>
  202. <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/>
  203. <y:LineStyle color="#000000" type="line" width="1.0"/>
  204. <y:Arrows source="none" target="none"/>
  205. <y:BendStyle smoothed="false"/>
  206. </y:PolyLineEdge>
  207. </data>
  208. </edge>
  209. <edge id="e1" source="n0" target="n2">
  210. <data key="d8" xml:space="preserve"/>
  211. <data key="d10">
  212. <y:PolyLineEdge>
  213. <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/>
  214. <y:LineStyle color="#000000" type="line" width="1.0"/>
  215. <y:Arrows source="none" target="none"/>
  216. <y:BendStyle smoothed="false"/>
  217. </y:PolyLineEdge>
  218. </data>
  219. </edge>
  220. <edge id="e2" source="n0" target="n0">
  221. <data key="d8" xml:space="preserve"/>
  222. <data key="d9" xml:space="preserve"><![CDATA[asdsad
  223. ]]></data>
  224. <data key="d10">
  225. <y:PolyLineEdge>
  226. <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0">
  227. <y:Point x="129.87046005726967" y="339.2515120967741"/>
  228. </y:Path>
  229. <y:LineStyle color="#000000" type="line" width="1.0"/>
  230. <y:Arrows source="none" target="none"/>
  231. <y:EdgeLabel alignment="center" configuration="AutoFlippingLabel" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18.701171875" horizontalTextPosition="center" iconTextGap="4" modelName="custom" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" verticalTextPosition="bottom" visible="true" width="69.373046875" x="-247.37619167580988" xml:space="preserve" y="83.61574489684222"># forerunner<y:LabelModel><y:SmartEdgeLabelModel autoRotationEnabled="false" defaultAngle="0.0" defaultDistance="10.0"/></y:LabelModel><y:ModelParameter><y:SmartEdgeLabelModelParameter angle="0.0" distance="30.0" distanceToCenter="true" position="right" ratio="0.5" segment="0"/></y:ModelParameter><y:PreferredPlacementDescriptor angle="0.0" angleOffsetOnRightSide="0" angleReference="absolute" angleRotationOnRightSide="co" distance="-1.0" frozen="true" placement="anywhere" side="anywhere" sideReference="relative_to_edge_flow"/></y:EdgeLabel>
  232. <y:BendStyle smoothed="false"/>
  233. </y:PolyLineEdge>
  234. </data>
  235. </edge>
  236. <edge id="e3" source="n3" target="n4">
  237. <data key="d10">
  238. <y:PolyLineEdge>
  239. <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/>
  240. <y:LineStyle color="#000000" type="line" width="1.0"/>
  241. <y:Arrows source="none" target="white_delta"/>
  242. <y:BendStyle smoothed="false"/>
  243. </y:PolyLineEdge>
  244. </data>
  245. </edge>
  246. <edge id="e4" source="n6" target="n7">
  247. <data key="d10">
  248. <y:PolyLineEdge>
  249. <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/>
  250. <y:LineStyle color="#000000" type="line" width="1.0"/>
  251. <y:Arrows source="none" target="white_delta"/>
  252. <y:BendStyle smoothed="false"/>
  253. </y:PolyLineEdge>
  254. </data>
  255. </edge>
  256. </graph>
  257. <data key="d7">
  258. <y:Resources/>
  259. </data>
  260. </graphml>