Presentation is loading. Please wait.

Presentation is loading. Please wait.

Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion.

Similar presentations


Presentation on theme: "Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion."— Presentation transcript:

1 Consultant Presentation Group B5

2 Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion

3 Introduction By Nigel

4 Our client project Our client project : Bus Route System. Nowadays, although private car is popular, there is a lot of people travel by bus. Some people such as tourists may not know the bus route well. In this case, This system is very useful.

5 Advantage 1 Useful: It is useful for the tourists and residents to search the route of the bus, especially for the tourists. It can help them to go to a place more easily and quickly. So that they don’t need to ask some people or find the map. And if there is no direct bus route that the user selected in the system, it can help the user to search an indirect bus route.

6 Advantage 2 Realistic: Because the system don ’ t need too many intricate functions and data structure, it can be realized easily. Convenient: This system can be set in all the bus stop and can search all the main locations.

7 Advantage 3 Friendly: The operation of the system is easy for everyone to use. Extensible: For the system, it is used for the bus now. It can be advance it to diversified program which relate to other conveyance.

8 Target Our targets are people who travel by bus. Such as tourists and residents. In an international city, such as Macao, there are many tourists visit every day. If the government or some public utilities can provide more facilities, then it can make a good impression on the tourists.

9 Function 1 Through the system, there are three different functions for the user to choose: 1. A particular bus path 2. A bus route between two place 3. Calculation of the bus payment

10 Function 2 A particular bus path: Insert the number of the bus, the whole bus route show A bus route between two place : Insert the starting and the terminal point and get the bus route between them Calculation of the bus payment : The systems will calculus the bus payment

11 How to design by Group A5 By Kenneth

12 What function in their system A particular bus path (Insert the number of the bus, and then show the whole bus route) (Insert the number of the bus, and then show the whole bus route) A bus route from a place to another place (Insert the starting and the terminal point, get the bus route between them) (Insert the starting and the terminal point, get the bus route between them)

13 What function in their system The charge for bus Calculus the bus payment Calculus the bus payment

14 Data structure & Data Base They want to save data in data base and data structure

15 What kind of data will be save in database Different buses ’ stop The information of the different buses ’ route The company belongs The fee of a particular bus

16 Data structure (for function 1) Use link list to store data (bus stops) The link between each nodes are path between each stops.

17 Data structure (for function 2) uses O(N) time to access the data use hash table to collect data create an index array for each bus stop get the corresponding bus route in the hash table

18 The Problem of Function 2 we think there still have some problem in this function Example: how to choose the best way if there are many path between two stops.

19 Data Structure By Jacky

20 Client ’ s idea A particular bus path Insert the number of the bus, the whole bus route shows. A bus route from a place to another place Insert the starting and the terminal point; get the bus route between them.

21 How to solve it ? After we have meeting discuss this two data structure problem. at that time, we find that there is several ways to solve it. 1)Array, 2) vector, 3) hash table

22 Which one we choose? Hash table: We think it is not the good way to do this or it is not necessary. Reason:if use hash table, the hash function is rather trouble for that and also maybe consider the link list.

23 Which one we choose? Array: Since the sequence of the bus station is fix. Reason: a) can arrange the sequence of the bus station b) avoid getting the hash function problem Disadvantage: can not add or eliminate the bus station.

24 Which one we choose? Vector: similar to the array but it can be add or eliminate easily. Reason: a) the search time is almost same as hashing b) no need to consider the hash function.

25 Further Extensions 1 Arrange the whole bus station and put it to the vector orderly also all the bus No. which will through that bus station. As the figure 1.1 16,1A,5.. 98,22,12.. 30,11.... … A B C D E

26 Further Extensions 2 Actually do: First find the starting point and then find the terminal point Get the intersection about this two

27 Another Problem 1 The changing bus problem It is a rather difficult problem of our client program. Since it is so many situation about this so that we are not easy to control.

28 Another Problem 2 And I have though a way to solve it, but we still have not discussed before. I don ’ t know this is work or not. My idea is use the vector and also the graph data structure.

29 Another Problem 3 The vector find the point to point The graph find the shortest way from the starting station to the terminal station. Search each bus one by one which can go to destination, or not. Find again and again … until find the answer.

30 Interface By Simon

31 Procedure 1 Beautiful interface like a screen Show the city map and all the stations Bus routes on the map (several bus routes pass same station )

32 Procedure 2 Each station has a button Change Starting station (default set is location used) Click Destination station (input the station name)

33 Procedure 3 System can compute the routes Draw the path (highlight) from source to destination Directly find the optimal path from the Screen

34 Procedure 4 Display a Dialog Box Include all the information: Bus company name Bus number Bus route (starting station and terminal station are marked) Number of station Total fee

35 Software Use Visual C++.NET to implement the interface Good for design the interface, graphics and image programming More power, more compliance, more C++

36 Reference book “ Visual C++.NET graphics and image programming ” (Chinese Edition) Knowledge for programming the graphics and implement the interface

37 Interface 1 Open the map file (DDB bitmap file) Set up all the station and bus routes Background of this interface

38 Interface 2 3D-graphics-screen display Design the button of each station Use the mouse mutual plot technique set the mouse clicking position Input the Starting station and the terminal station

39 Interface 3 Use the plot function drawing the line from the source to the destination Set the Pixel of each station use some function (just like MoveTo(), LineTo()

40 Interface 4 Display of the Dialog Box base GUI function to implement Information save in the Database

41 Future Consultant By Solomon

42 Future How to help our client A5 Schedule

43 How to help our client We will give some suggestion or some ideal Discussion together in order to improve their program Also, we will choose some book that it can help our client

44 Schedule We will assist our client in the May and June At least we have third meeting with A5 Each meeting about 2-3 hours

45 Conclusion Improve the Data Structure and Interface Teach them more knowledge about GUI and graphics programming. Support them with their final project

46 Q & A

47 ~The End~ Thank you for attention!


Download ppt "Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion."

Similar presentations


Ads by Google