private:
unsigned id;
- unsigned sensor_id;
- unsigned turnout_id;
+ unsigned sensor_addr;
+ unsigned turnout_addr;
+ bool conflict;
TrackCircuit *sensor;
std::vector<Endpoint> endpoints;
Train *train;
public:
unsigned get_id() const { return id; }
- unsigned get_sensor_id() const { return sensor_id; }
- unsigned get_turnout_id() const { return turnout_id; }
+ unsigned get_sensor_address() const { return sensor_addr; }
+ unsigned get_turnout_address() const { return turnout_addr; }
TrackCircuit *get_sensor() const { return sensor; }
const std::vector<Endpoint> &get_endpoints() const { return endpoints; }
const Endpoint &get_endpoint(unsigned) const;