Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pragma solidity ^0.5.0;
- contract BureauDeProjet
- {
- //STATE VARIABLES
- // name/address of client
- string client;
- // One per battery
- uint controller_module;
- // One each per elevator
- uint shaft_equipment_module;
- uint rail_module;// contains the guide rails : main rails and counterweight rails
- uint traction_module; // machine room : motor, drive sheave, brake and machine bed plate
- uint governor_module; // speed monitoring device
- uint wiring_package_module;
- uint car_sling_gearless;
- uint counterweights_gearless;
- uint safeties; // : attached to the safety planks under the car
- uint rope_compensation;// : used to counter-balance the weight of the hoist ropes
- // Two per elevator (one for each door)
- uint entrance_module; // (external doors)
- // One per elevator per floor
- uint door_protection_module;
- // Interior of elevator x number of floors plus 3: open, close + emergency
- uint elevator_panel_buttons;
- // Two per columns per floor (up/down)
- uint external_panel_buttons;
- // Excelium, Premium, or Standard
- string elevator_module;
- function createOrder(uint _controller_module, uint _shaft_equipment_module, uint _rail_module,
- uint _traction_module, uint _governor_module, uint _wiring_package_module,
- uint _car_sling_gearless, uint _counterweights_gearless,
- uint _safeties, uint _rope_compensation, uint _entrance_module,
- uint _door_protection_module, uint _elevator_panel_buttons,
- uint _external_panel_buttons, string memory _elevator_module,
- string memory _client) public {
- client = _client;
- // One per battery
- controller_module = _controller_module;
- shaft_equipment_module = _shaft_equipment_module;
- rail_module = _rail_module;
- traction_module = _traction_module;
- governor_module = _governor_module;
- wiring_package_module = _wiring_package_module;
- car_sling_gearless = _car_sling_gearless;
- counterweights_gearless = _counterweights_gearless;
- safeties = _safeties;
- rope_compensation = _rope_compensation;
- entrance_module = _entrance_module;
- door_protection_module = _door_protection_module;
- elevator_panel_buttons = _elevator_panel_buttons;
- external_panel_buttons = _external_panel_buttons;
- // Excelium, Premium, or Standard
- elevator_module = _elevator_module;
- }
- function getClientName() public view returns (string memory){
- return client;
- }
- function getControllerModules() public view returns (uint){
- return controller_module;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement