In recent years,the number of urban automotive vehicles has increased rapidly,making parking problems become more conspicuous.The resource gap of parking spaces presents an uneven distribution of time and space,which is neatly illustrated by the following regularities.First,the shortage of parking spaces is mainly concentrated in the central area of the city.In addition,parking spaces in the office complex are in a short supply during the working hours.Meanwhile,a large number of parking spaces in the residential property stay idle.With the continuous development of the Internet of Things and the gradual popularization of the concept of sharing,some studies on shared parking have emerged to improve the allocation of parking space resources.Based on the above background,this thesis designed and implemented the Android client application for urban parking space sharing platform,merging parking reservation,parking space management,order management function,etc.The client application built a shared parking service,so as to optimize the resource allocation and effectively utilize the limited parking space resources.The research work includes:1.Analysis of application scenario and functional requirement:investigate and survey the situation of urban traffic parking and the law of parking space storage,and analyze the functional requirements in urban transport scenario,from the perspective of vehicle owners with parking requirement and parking space owners with sharing requirement.2.Design of the layered architecture and functional modules of client application:establish a three-tier architecture model consisted of the Presentation Layer,the Business Logic Layer,and the Data Access Layer.Functional modules are divided based on the above architecture.3.Multithreaded Computation of distance-optimum parking space based on the map:sift the optimal driving distance parking space,using the route planning API provided by map SDK.In the custom class,AsyncTasks are scheduled to complete the shortest route planning based on the Publish/Subscribe Pattern.In this way,the impact of route planning computing time-consumption was reduced.4.Test of the client application for the urban parking space sharing platform:in accordance with the software engineering specification,white-box testing and black-box testing are used to test functional requirements in a completely covered way.Android Profile and the other tools are used to test the client performance.In conclusion,the test results showed that the client application was able to run stably,achieve the expected effect,and meet the needs of users. |