CS) Informative
Maps on PDA-phones Chui Pui Ling Page 44 The sequence diagram Route Finding shows the classes interaction in the route finding process. The process is triggered by users through the display of an informative map.
sd RouteFinding<
>
Map
<>
Node
<>
Coordinate
loop
[Not Reach the Destination]
loop
[for each childlist item]
loop
[for each Neighbouring Coordinates item]
<>
DatabaseGatew ay
loop
[for each solutionNode]
OptimalPathFinding(targetCoordinate)
getAndRemoveBestNode(openList)
FindNeighbours(targetCoordinate)
FindNeighbours
ExecuteDataSet
A list for Neighbouring Coordinates
DistanceToTarget:= CalculateDistance(targetCoordinate)
DistanceTraveled
A list of Neighbouring Nodes
Add(solutionNode)
solutionNode:= returnParentNode
CS) Informative Maps on PDA-phones
Chui Pui Ling Page 45 The sequence diagram Create Instruction shows the classes interaction when an audio instruction is required by users. “CreateOneInstruction” shown as the name of a loop in the diagram is in fact a function in class Map but it is used as a loop name for simplicity. It is a fcuntion considers 3 coordinates at a time to produce one instruction and the detailed logic is shown as flowchart in Figure 22.
Share with your friends: