]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/block.h
Move the sleep in ArduControl baud rate logic to the correct place
[r2c2.git] / source / libr2c2 / block.h
index 4309290da3f3145a553a405009dc35a4c60b8ad9..2f898b0992af7e14799fc576532265f8b808bff8 100644 (file)
@@ -32,8 +32,9 @@ public:
 
 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;
@@ -48,9 +49,9 @@ private:
 
 public:
        unsigned get_id() const { return id; }
-       unsigned get_sensor_id() const { return sensor_id; }
-       unsigned get_turnout_id() const { return turnout_id; }
-       TrackCircuit &get_sensor() const { return *sensor; }
+       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;
        int get_endpoint_by_link(Block &) const;