Skip to content
Snippets Groups Projects
Verified Commit d61f3e70 authored by Mohcine Chraibi's avatar Mohcine Chraibi
Browse files

Add structs of trains

parent 374ddbf4
Branches
Tags
1 merge request!2Trains
Pipeline #21246 passed
#ifndef TRAIN_VAR_H_
#define TRAIN_VAR_H_ 1
#include "geometry/Point.h"
#include "geometry/Transition.h"
struct TrainTimeTable
{
int id;
std::string type;
int rid; // room id
int sid; // subroom id
double tin; // arrival time
double tout; //leaving time
Point pstart; // track start
Point pend; // track end
Point tstart; // train start
Point tend; // train end
int pid; // Platform id
bool arrival;
bool departure;
};
struct TrainType
{
std::string type;
int nmax; // agents_max
float len; //length
std::vector<Transition> doors;
};
#endif /* TRAIN_H_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment