private:
void position(float, float, float);
void rotation(float);
- void sensor_id(unsigned);
+ void sensor_address(unsigned);
void slope(float);
void tilt(float);
- void turnout_id(unsigned);
+ void turnout_address(unsigned);
};
typedef std::list<TrackAttachment *> AttachmentList;
Block *block;
float slope;
bool flex;
+ unsigned turnout_addr;
unsigned turnout_id;
- unsigned sensor_id;
+ unsigned sensor_addr;
std::vector<Track *> links;
unsigned active_path;
bool path_changing;
void check_slope();
public:
- void set_turnout_id(unsigned);
- void set_sensor_id(unsigned);
- unsigned get_turnout_id() const { return turnout_id; }
- unsigned get_sensor_id() const { return sensor_id; }
+ void set_turnout_address(unsigned);
+ void set_sensor_address(unsigned);
+ unsigned get_turnout_address() const { return turnout_addr; }
+ unsigned get_sensor_address() const { return sensor_addr; }
void set_active_path(unsigned);
unsigned get_active_path() const { return active_path; }
bool is_path_changing() const { return path_changing; }
void save(std::list<Msp::DataFile::Statement> &) const;
private:
void turnout_event(unsigned, unsigned);
+ void turnout_failed(unsigned);
};
} // namespace R2C2