Trait elevate_lib::controller::ElevatorController
source · pub trait ElevatorController {
// Required methods
fn get_building(&mut self) -> &Building;
fn get_building_mut(&mut self) -> &mut Building;
fn clone_building(&mut self) -> Building;
fn can_be_upgraded(&self) -> bool;
fn upgrade(&mut self, incrementation: f64);
fn update_elevators(&mut self);
}Expand description
§ElevatorController trait
An ElevatorController implementation controls the elevators of a building.