-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathroles.txt
69 lines (66 loc) · 1.5 KB
/
roles.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
TrainRoute(Mark):
-sync()
-Direction
-Line name(red, blue, etc.)
-nextStation(train T)
-direction GetRoute(station arrival, station destination)
Train(Andrew):
-ID
-Maximum # of occupants
-Direction
-Speed (ticks / second)
-Passengers ArrayList
-bool Board(Passenger)
-Disembark(passenger)
Passenger(Tin):
-ID
-Embark
-Disembark
-Destination
-Switch lines
Station(Bryon):
-Platforms(inbound, outbound)
-TrainRoute
-Station Name
-station ID
-SetPlatformTrain(train)//if null passed, that means there is no train
-Arrivingassenger(passenger) //Decides where to send the passenger to which platform
-DepartingPassenger(passenger) //
Platform(Jeffery):
-ID
-Station //accesors
-Direction //Accesors
-EnqueuePassenger
-ArrivingPassenger(passenger) ->
-Departing passenger -> station.DepartPassenger(passenger);
-train
-queue length
TrainSimulation(Shakib):
-Read from file
-Initialize route
-generate passengers
Action
-embark(Platform)
-disembark(station)
---------------------------------
---------------------------------
-TrainSimulation->TrainRoute
-Route information
-list of stations, and ticks between them, and # of trains
-TrainSimulation->Stations
-generate Random Passengers
-TrainRoute->Station
-Creates station, creates platform
-Update when train arrives
-Station->Passenger
-TrainRoute
-Station->Platform
-Tells it when train has arrived
-platform->station
-
-TrainRoute->Train
-CurrentLocation(Platform)
-Train->Passenger
-Update location
-Passenger->Train
-disembark