Open fruitBohl opened 1 year ago
Consider tracking the route on the Person instance rather than the BusStop
"Need to create a structure and standardised way to store data about the different simulation scenarions. Need a way to efficiently get this information to display it on the front end and allow user to (temporarilly and then maybe save) this information. Also need a way to then get this data to the model (this part then ties into ticket to do with importing data to simulation) - RedwallFred"
Just took this from another ticket and deleted it because its the same sorta thing
NEED TO DO REFACTOR BEFORE ANYTHING ELSE ON SIM IS DONE
Need a sim object which will then be converted into a db model and then serialized to sent to the front end and saved in the db
Instead will append data to each route, etc object about each thing. So Routes will contain info for the X different busses that ran along it and where the people got it on for each bus on the route.
Create a new method on the BusStop object which stores data on the travel path of all the Person objects which are currently located at the bus stop (this will most likely be run at the end of the simulation).
This would ideally be generated as a .csv or some other format that can be easily be used to generate graphs & data for frontend and backend (this could be something that gets stored on the database).