]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/block.h
Rename turnout/sensor_id fields in Track and Block to *_addr
[r2c2.git] / source / libr2c2 / block.h
index c3b7c8742fe8faa247b5af2948c885eea7c522a7..2f898b0992af7e14799fc576532265f8b808bff8 100644 (file)
@@ -32,8 +32,8 @@ public:
 
 private:
        unsigned id;
-       unsigned sensor_id;
-       unsigned turnout_id;
+       unsigned sensor_addr;
+       unsigned turnout_addr;
        bool conflict;
        TrackCircuit *sensor;
        std::vector<Endpoint> endpoints;
@@ -49,8 +49,8 @@ private:
 
 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;