+ void set_name(const std::string &);
+ void set_speed(unsigned);
+ void set_reverse(bool);
+ void set_route(const Route *);
+ const std::string &get_name() const { return name; }
+ Locomotive &get_locomotive() const { return loco; }
+ unsigned get_target_speed() const { return target_speed; }
+ const Route *get_route() const { return route; }
+ const std::string &get_status() const { return status; }
+ const Point &get_position() const { return pos; }
+ void place(Block *, unsigned);
+ bool free_block(Block *);
+ void tick(const Msp::Time::TimeStamp &, const Msp::Time::TimeDelta &);
+ void save(std::list<Msp::DataFile::Statement> &) const;
+private:
+ void locomotive_reverse_changed(bool);
+ void sensor_event(bool, Sensor *);
+ void turnout_path_changing(unsigned, Turnout *);
+ void turnout_path_changed(unsigned, Turnout *);
+ unsigned reserve_more();
+ void update_speed();
+ float get_real_speed(unsigned) const;
+ unsigned find_speed(float) const;
+ void set_status(const std::string &);
+ void set_position(const Block::Endpoint &);
+ void release_reserved_blocks();