Skip to content

ziqidong/velib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

velib

There are two branches in this reposities:

first branche "master":

There is a main folder Velib, it contains three parts in this folder, a folder "Host" who containes the intermediary Web service (IWS) in folder "host", a folder "Client" whoe contains client-side, a folder "MonitoringClient" who contains a monitor to supervise the IWS, i put these three folder in folder "velib", to compile these codes you need to create new WCF project in VS for "Host" and "Client", and a winform project for "MonitoringClient".

It provide four functions in my project:

  1. A user interface which provide three button "Get Citys", "Get City", "Get Station". image

at first, you need to click button "Get Citys" to get the list of city available, if not, it will show a error message

image

"Get Citys" will show you all citys available.

image

"Get City" will show you all stations of the city you choice, you need to enter a city name in left list and click "Get City".

image

if you enter a wrong city name, it will notice you that the name is not correct.

image

"Get Station" will show you the information of the station you choice, you need to enter a station name and click "Get Station".

image

  1. A cache in IWS which will reduce the communication time between IWS and client-side

image

It contains a ObjectCache which cations all informations of the citys queried. for example, it can look up information of stations.

image

  1. Asynchronous methods in both IWS and client-side, IWS use asynchronous methods to reduce the comminication time between IWS and https://api.jcdecaux.com/, client-side use asynchronous methods to reduce the time between client-side and IWS.

image image image

  1. A monitor with graphic interface to supervise three values, the number of client who has connected to this IWS, the average time of communication between IWS and client, the sum of the number of requests of all clients.

image

after some clients connected to server, it will record the infomation of this connection and user of minitor can click button to get these informations

image

second branche "extension_velib":

There is a main folder Velib, it contains one more folder than branch master, the folder "Eclient", it provide a console for users to subscribe these fonctions of server, it subscribe a fonction which can get all the information of stations of one city, at first, you need to enter a cityname, it will pass a string to server and search in a cache, if there are informations of this city, it will notice client and return the result, if not, it will tell client there are not related information and continue to find until there are informations corredpond, once it finds information, it will return the result to client.

image image

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages