-
Notifications
You must be signed in to change notification settings - Fork 0
DataManager.java
Raphaël Lutz edited this page May 22, 2019
·
2 revisions
Static class (id est no instance is created) in charge of managing the input and output data.
-
probas
: will contain the probability matrix of an element to be created at an entrance and goes to an exit. You can more information about it in theRapport/
folder. -
inputMatrixEntrances
: matrix of the number of vehicle to generate at an entry point for each hour of the day. -
inputMatrixExits
: matrix of the number of vehicle to exit at an exit for each hour of the day. -
inputMatrixReports
: matrix of the min and max value of the transfer scenario (seeRapport/
folder). -
flowPerExit
: matrix of the flow of vehicle in and out of the system. -
timeSpentTransit
: list of the time spend by vehicle on the network (people transiting between France and Geneva only). -
timeSpentCERN
: list of the time spend by the vehicles on the network (CERN employees only). -
distanceTravelledTransit
: list of the distance travelled by the vehicles on the network (people transiting between France and Geneva only). -
distanceTravelledCERN
: list of the distance travelled by the vehicles on the network (CERN employees only).
-
void initProbas()
: it extracts the data from the input entrance/exit text files and register it into the fields. Then it computes the matrix of probability need with the algorithm you can find in theFlowComputation/
folder. -
void initFlowPerExit()
: initializes theflowPerExit
field with the input matrices. -
void initTransfers()
: extracts the data from the input reports file and register it into the fields.
-
void applyData(Simulator simulator)
: applies the data chosen by the user when the simulation starts. It callsapplyDataToRides()
andapplyRidesToRoads()
. -
void applyFlowFromVariables(Ride r)
: afterapplyDataToRides(Simulator simulator)
is called, this method apply the flow to the given Ride (applyDataToRides()
-
boolean lastRoadIs(Ride r, String roadName)
: returntrue
if the last road of the Ride isroadName
, false if not
- data/
- DataManager.java (TODO)
- ExpVarCalculator.java (TODO)
- VehicleCounter.java (TODO)
- elements/
- Cell.java (TODO)
- Connection.java (TODO)
- CrossRoad.java (empty) (TODO)
- Direction.java (TODO)
- MaxVehicleOutflow.java (TODO)
- MultiLaneRoundAbout.java (TODO)
- Phase.java (TODO)
- Ride.java (TODO)
- Road.java (empty) (TODO)
- RoundAbout.java (empty) (TODO)
- TrafficLightsSystem.java (TODO)
- Vehicle.java (TODO)
- graphics/
- Assets.java (TODO)
- Display.java (TODO)
- ImageLoader.java (TODO)
- SpriteSheet.java (TODO)
- Text.java (TODO)
- input/
- KeyManager.java (TODO)
- MouseManager.java (TODO)
- main/
- Main.java (TODO)
- Simulation.java (TODO)
- network/
- AllNetworkRides.java (empty) (TODO)
- Network.java (TODO)
- NetworkComputing.java (TODO)
- NetworkRendering.java (TODO)
- states/
- MenuState.java (TODO)
- SimSettingsState.java (TODO)
- SimState.java (TODO)
- State.java (TODO)
- ui/
- ClickListener.java (TODO)
- UIImageButton.java (TODO)
- UIManager.java (TODO)
- UIObject.java (TODO)
- UISlider.java (TODO)
- UISliderDouble.java (TODO)
- UISliderTriple.java (TODO)
- UITextButton.java (TODO)
- UITextSwitch.java (TODO)
- utils/
- Defaults.java (TODO)
- OriginDestinationCalculator.java (TODO)
- SortByPos.java (TODO)
- Utils.java (TODO)