Advertisement
Guest User

Untitled

a guest
May 21st, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. pragma solidity ^0.5.0;
  2. contract BureauDeProjet
  3. {
  4. //STATE VARIABLES
  5. // name/address of client
  6. string client;
  7.  
  8.  
  9. // One per battery
  10. uint controller_module;
  11.  
  12. // One each per elevator
  13. uint shaft_equipment_module;
  14. uint rail_module;// contains the guide rails : main rails and counterweight rails
  15. uint traction_module; // machine room : motor, drive sheave, brake and machine bed plate
  16. uint governor_module; // speed monitoring device
  17. uint wiring_package_module;
  18. uint car_sling_gearless;
  19. uint counterweights_gearless;
  20. uint safeties; // : attached to the safety planks under the car
  21. uint rope_compensation;// : used to counter-balance the weight of the hoist ropes
  22.  
  23. // Two per elevator (one for each door)
  24. uint entrance_module; // (external doors)
  25. // One per elevator per floor
  26. uint door_protection_module;
  27. // Interior of elevator x number of floors plus 3: open, close + emergency
  28. uint elevator_panel_buttons;
  29. // Two per columns per floor (up/down)
  30. uint external_panel_buttons;
  31. // Excelium, Premium, or Standard
  32. string elevator_module;
  33.  
  34. function createOrder(uint _controller_module, uint _shaft_equipment_module, uint _rail_module,
  35. uint _traction_module, uint _governor_module, uint _wiring_package_module,
  36. uint _car_sling_gearless, uint _counterweights_gearless,
  37. uint _safeties, uint _rope_compensation, uint _entrance_module,
  38. uint _door_protection_module, uint _elevator_panel_buttons,
  39. uint _external_panel_buttons, string memory _elevator_module,
  40. string memory _client) public {
  41.  
  42. client = _client;
  43. // One per battery
  44. controller_module = _controller_module;
  45. shaft_equipment_module = _shaft_equipment_module;
  46. rail_module = _rail_module;
  47. traction_module = _traction_module;
  48. governor_module = _governor_module;
  49. wiring_package_module = _wiring_package_module;
  50. car_sling_gearless = _car_sling_gearless;
  51. counterweights_gearless = _counterweights_gearless;
  52. safeties = _safeties;
  53. rope_compensation = _rope_compensation;
  54. entrance_module = _entrance_module;
  55. door_protection_module = _door_protection_module;
  56. elevator_panel_buttons = _elevator_panel_buttons;
  57. external_panel_buttons = _external_panel_buttons;
  58. // Excelium, Premium, or Standard
  59. elevator_module = _elevator_module;
  60. }
  61.  
  62. function getClientName() public view returns (string memory){
  63. return client;
  64. }
  65.  
  66. function getControllerModules() public view returns (uint){
  67. return controller_module;
  68. }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement