spring school on integrated operational problems may 14
play

Spring School on Integrated Operational Problems May 14-16, 2018, - PowerPoint PPT Presentation

Spring School on Integrated Operational Problems May 14-16, 2018, Troyes, France PLAN Introduction (15-30 minutes) C++ (1 hour) The Clarke and Wright algorithm 1rst session Modifying the CAW and testing it Adding your own strategy to the CAW


  1. Spring School on Integrated Operational Problems May 14-16, 2018, Troyes, France PLAN Introduction (15-30 minutes) C++ (1 hour) The Clarke and Wright algorithm 1rst session Modifying the CAW and testing it Adding your own strategy to the CAW How to debug ? JSON (30 minutes) Understanding the role of the JSON files Adding two new algorithms to the CAW 2nd session PHP (30 minutes) Adding a new problem to the web-site Conclusion will be yours ! Pierre Bomel & Marc Sevaux 1 Université de Bretagne Sud, Lab-STICC, Lorient, France, 2018

  2. Spring School on Integrated Operational Problems May 14-16, 2018, Troyes, France Introduction What is a web service for operational problems ? 2

  3. What is a web-service ? This is an Internet-based remote computing service. This is a client/server application, The client does RPCs which means "remote procedure calls". There a client and a server. 3

  4. What is a web-service ? With the "magic of Internet", a service is executed at a given IP address, which can be any (even the computer where the client resides = localhost). function A() function B(params) { { … … B(params); … … } } There a client and a server Client IP Server IP 4

  5. What is a web-service ? // the callee function B(params)// the service { … … // the caller } function A() main() // the server { { for(;;) { … wait for call (on a port number) call B() get functionID at serverIP switch (functionID) with IO params case functionB: … get params of B } call B() send results to caller break case ... … } } 5

  6. What is a web-service ? You already know and use a lot of such services ftpd FTP mail servers email ping server ping HTTP server web surfing ... ... There a client and a server. 6

  7. What is a web-service ? To work, a web-service ABSOLUTELY NEEDS a server → a HTTP server and a client → a web browser HTTP server Web browser 7

  8. What is web-specific ? URL, HTTP and HTML 1 URL = http://labsticc.univ-ubs.fr/WS4RP 2 index.html 3 /var/www/html/RPWS/index.html 8

  9. URL ? Uniform Resource Locator URL = http://labsticc.univ-ubs.fr/WS4RP Path = WS4RP => Location of service "inside the private file-system of the HTTP server" What computer = labsticc.univ-ubs.fr What protocol = HTTP This is an IP address obtained via the DNS. This is an IP port number DNS(URL) → IP address DNS is another remote service !!!! 9

  10. HTTP protocol/server ? The apache server is a running process on the remote computer, associated with the HTTP protocol. Traditionally this is a process listening at port 80 It has been configured to map the "user’s path" = WS4RP to a file system local path = /var/www/html/RPWS 2 When called by a browser, it searches The browser interprets the for an index.html file. index.html If found, it sends it back to the browser There is javascript (code) that will interpret its content. and CSS (look and feel) embedded into the HTML file. 10

  11. What does the javascript at client side ? It collects and sends service-specific parameters to the server 1 It displays received service-specific results 3 11

  12. What happens on the server side again ? 2 PHP: receive call + params & convert network data to program data Call C++ (or any programing langage) Algorithm. 12

  13. Let’s sum up What shall we do and where ? // the callee function B(params)// the service { YOUR … CODE … // the caller } function A() main() // the server { { for(;;) { … wait for call call B() get functionID at serverIP switch (functionID) with IO params case functionB: … localhost get params of B } call B() send results to caller break case ... … } } 13

  14. Spring School on Integrated Operational Problems May 14-16, 2018, Troyes, France PLAN Introduction (15-30 minutes) C++ (1 hour) The Clarke and Wright algorithm 1rst session Modifying the CAW and testing it Adding your own strategy to the CAW How to debug ? JSON (30 minutes) Understanding the role of the JSON files Adding two new algorithms to the CAW 2nd session PHP (30 minutes) Adding a new problem to the web-site Conclusion will be yours ! Pierre Bomel & Marc Sevaux 14 Université de Bretagne Sud, Lab-STICC, Lorient, France, 2018

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend