Informative Maps on pda-phones



Download 2.99 Mb.
View original pdf
Page24/33
Date23.10.2022
Size2.99 Mb.
#59791
1   ...   20   21   22   23   24   25   26   27   ...   33
Chui (2006)
ClientDatabaseGatew ay
<>
DatabaseGatew ay
<>
Map
alt
[If an Optimal Path is Found]
<>
Graphics
<>
Coordinate
loop
[for each Coordinates in the Optimal Path]
alt
[If listen to Instruction]
<>
Picture
alt
[If display photo]
[If display map]
Login displayRoutine getUserStatus(userID)
executeDataset(SQL)
userStatus
DrawPath(map, targetCoordinate, zoomlevel)
OptimalPathFinding(targetCoordinate)
Coordinates2PixelPtsConversion(OptimalPath, zoomLevel)
DrawLine a Map with the Optimal Route getTotalDistance
CalculateDistance(ParentCoordinate)
Distance between 2 coordinates
Total Distance of the route createInstruction(userID)
displayRoadMap(sourceCoordinateID, secondCoordinateID)
getPhotoByTwoCoordinateID(sourceCoordinateID, secondCoordinateID)
ExecuteDataSet(SQL)
a specific photo a specific photo display the specific photo receive the specific photo display the Informative Map receive the informative map

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.

Download 2.99 Mb.

Share with your friends:
1   ...   20   21   22   23   24   25   26   27   ...   33




The database is protected by copyright ©ininet.org 2024
send message

    Main page