Skip to content

Wojtek-Rokicki/DistributionSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authors

Krzysztof Pierczyk, Wojciech Rokicki

Version

0.0.1

Usage (OUT-OF-DATE)

Currently implemented python-HTTPServer can be run without installing any non-standard libraries. Server runs at the 0.0.0.0:PORT socket (where PORT can be set in the /config/python_server.conf file) and can be reached via web browser.

Server requests

Creator

GET requests - requesting page to load - response with proper html

POST requests - sending data to server (without response):

//Cities form data
var headerName = "Content-type";
var headerValue = "creator/cities";
var sendString = json_form_data;
//Transports form data
var headerName = "Content-type";
var headerValue = "creator/transports";
var sendString = json_form_data;
//Map parameters form data
var headerName = "Content-type";
var headerValue = "creator/map-params";
var sendString = json_form_data;
//Simulation transition, all forms acceptance confirmation
var headerName = "Information";
var headerValue = "creator-success";

Simulation

GET requests - requesting page to load - response with proper html

POST request - constantly querying for snapshot - response with snapshot:

//Simulation snapshot request
var headerName = "Information";
var headerValue = "simulation-snapshot-request";

POST requests - sending information about request - buttons state reflection (without response):

//Simulation pause
var headerName = "Information";
var headerValue = "simulation-stop";
//Simulation play
var headerName = "Information";
var headerValue = "simulation-play";
//Simulation forward
var headerName = "Information";
var headerValue = "simulation-forward";
//Simulation backward
var headerName = "Information";
var headerValue = "simulation-backward";
//Simulation fast forward
var headerName = "Information";
var headerValue = "simulation-fast-forward";
//Simulation fast backward
var headerName = "Information";
var headerValue = "simulation-fast-backward";

POST requests - sending information about modifications (without response):

//Simulation modifications
var headerName = "Content-type";
var headerValue = "simulation-modifications";
var sendString = json_data;

About

Multi-agent system - distribution system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published