-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbus.h
More file actions
executable file
·21 lines (18 loc) · 744 Bytes
/
Copy pathbus.h
File metadata and controls
executable file
·21 lines (18 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
enum bus_types{VOR,ASK,PEL};
typedef struct bus{
int id;
int type;
int people;
int capacity;
int parkperiod;
int mantime;
long arrival_time;
} bus;
void arrive_at_station(shm_data* data, bus* temp_bus, FILE* fp);
void get_in_station(shm_data* data, bus temp_bus, FILE* fp);
void proceed_to_bay(shm_data* data, int* final_bay, int* spot, FILE* fp);
void maneuver_in(shm_data* data, bus temp_bus, FILE* fp);
void park(shm_data* data, bus temp_bus, int final_bay,int spot,FILE* fp);
void maneuver_out(shm_data* data, bus temp_bus, FILE* fp);
void request_out(shm_data* data, int final_bay, int spot, bus temp_bus, FILE* fp);
void get_out_of_station(shm_data* data, int final_bay,int spot, bus temp_bus, FILE* fp);