Simulation Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

212 lines
7.6 KiB

  1. module PermissionsVariables
  2. ! use CVoidEventHandlerCollection
  3. type::PermissionsType
  4. logical :: FillupHeadPermission = .false.
  5. ! type(VoidEventHandlerCollection) :: OnFillupHeadPermissionChange
  6. logical :: InstallFillupHeadPermission = .false.
  7. ! type(VoidEventHandlerCollection) :: OnInstallFillupHeadPermissionChange
  8. logical :: InstallMudBucketPermission = .false.
  9. ! type(VoidEventHandlerCollection) :: OnInstallMudBucketPermissionChange
  10. logical :: IrIbopPermission = .false.
  11. ! type(VoidEventHandlerCollection) :: OnIrIbopPermissionChange
  12. logical :: IrSafetyValvePermission = .false.
  13. ! type(VoidEventHandlerCollection) :: OnIrSafetyValvePermissionChange
  14. logical :: RemoveFillupHeadPermission = .false.
  15. ! type(VoidEventHandlerCollection) :: OnRemoveFillupHeadPermissionChange
  16. logical :: RemoveMudBucketPermission = .false.
  17. ! type(VoidEventHandlerCollection) :: OnRemoveMudBucketPermissionChange
  18. logical :: SwingDrillPermission = .false.
  19. ! type(VoidEventHandlerCollection) :: OnSwingDrillPermissionChange
  20. logical :: SwingOffPermission = .false.
  21. ! type(VoidEventHandlerCollection) :: OnSwingOffPermissionChange
  22. logical :: SwingTiltPermission = .false.
  23. ! type(VoidEventHandlerCollection) :: OnSwingTiltPermissionChange
  24. end type PermissionsType
  25. type(PermissionsType):: permissions
  26. contains
  27. subroutine Set_SwingTiltPermission(v)
  28. implicit none
  29. logical , intent(in) :: v
  30. #ifdef ExcludeExtraChanges
  31. if(permissions%SwingTiltPermission == v) return
  32. #endif
  33. permissions%SwingTiltPermission = v
  34. #ifdef deb
  35. print*, 'permissions%SwingTiltPermission=', permissions%SwingTiltPermission
  36. #endif
  37. !**call permissions%OnSwingTiltPermissionChange%RunAll()
  38. end subroutine
  39. logical function Get_SwingTiltPermission()
  40. implicit none
  41. Get_SwingTiltPermission = permissions%SwingTiltPermission
  42. end function
  43. subroutine Set_SwingOffPermission(v)
  44. implicit none
  45. logical , intent(in) :: v
  46. #ifdef ExcludeExtraChanges
  47. if(permissions%SwingOffPermission == v) return
  48. #endif
  49. permissions%SwingOffPermission = v
  50. #ifdef deb
  51. print*, 'permissions%SwingOffPermission=', permissions%SwingOffPermission
  52. #endif
  53. !**call permissions%OnSwingOffPermissionChange%RunAll()
  54. end subroutine
  55. logical function Get_SwingOffPermission()
  56. implicit none
  57. Get_SwingOffPermission = permissions%SwingOffPermission
  58. end function
  59. subroutine Set_SwingDrillPermission(v)
  60. implicit none
  61. logical , intent(in) :: v
  62. #ifdef ExcludeExtraChanges
  63. if(permissions%SwingDrillPermission == v) return
  64. #endif
  65. permissions%SwingDrillPermission = v
  66. #ifdef deb
  67. print*, 'permissions%SwingDrillPermission=', permissions%SwingDrillPermission
  68. #endif
  69. !**call permissions%OnSwingDrillPermissionChange%RunAll()
  70. end subroutine
  71. logical function Get_SwingDrillPermission()
  72. implicit none
  73. Get_SwingDrillPermission = permissions%SwingDrillPermission
  74. end function
  75. subroutine Set_RemoveMudBucketPermission(v)
  76. implicit none
  77. logical , intent(in) :: v
  78. #ifdef ExcludeExtraChanges
  79. if(permissions%RemoveMudBucketPermission == v) return
  80. #endif
  81. permissions%RemoveMudBucketPermission = v
  82. #ifdef deb
  83. print*, 'permissions%RemoveMudBucketPermission=', permissions%RemoveMudBucketPermission
  84. #endif
  85. !**call permissions%OnRemoveMudBucketPermissionChange%RunAll()
  86. end subroutine
  87. logical function Get_RemoveMudBucketPermission()
  88. implicit none
  89. Get_RemoveMudBucketPermission = permissions%RemoveMudBucketPermission
  90. end function
  91. subroutine Set_RemoveFillupHeadPermission(v)
  92. implicit none
  93. logical , intent(in) :: v
  94. #ifdef ExcludeExtraChanges
  95. if(permissions%RemoveFillupHeadPermission == v) return
  96. #endif
  97. permissions%RemoveFillupHeadPermission = v
  98. #ifdef deb
  99. print*, 'permissions%RemoveFillupHeadPermission=', permissions%RemoveFillupHeadPermission
  100. #endif
  101. !**call permissions%OnRemoveFillupHeadPermissionChange%RunAll()
  102. end subroutine
  103. logical function Get_RemoveFillupHeadPermission()
  104. implicit none
  105. Get_RemoveFillupHeadPermission = permissions%RemoveFillupHeadPermission
  106. end function
  107. subroutine Set_IrSafetyValvePermission(v)
  108. implicit none
  109. logical , intent(in) :: v
  110. #ifdef ExcludeExtraChanges
  111. if(permissions%IrSafetyValvePermission == v) return
  112. #endif
  113. permissions%IrSafetyValvePermission = v
  114. #ifdef deb
  115. print*, 'permissions%IrSafetyValvePermission=', permissions%IrSafetyValvePermission
  116. #endif
  117. !**call permissions%OnIrSafetyValvePermissionChange%RunAll()
  118. end subroutine
  119. logical function Get_IrSafetyValvePermission()
  120. implicit none
  121. Get_IrSafetyValvePermission = permissions%IrSafetyValvePermission
  122. end function
  123. subroutine Set_IrIbopPermission(v)
  124. implicit none
  125. logical , intent(in) :: v
  126. #ifdef ExcludeExtraChanges
  127. if(permissions%IrIbopPermission == v) return
  128. #endif
  129. permissions%IrIbopPermission = v
  130. #ifdef deb
  131. print*, 'permissions%IrIbopPermission=', permissions%IrIbopPermission
  132. #endif
  133. !**call permissions%OnIrIbopPermissionChange%RunAll()
  134. end subroutine
  135. logical function Get_IrIbopPermission()
  136. implicit none
  137. Get_IrIbopPermission = permissions%IrIbopPermission
  138. end function
  139. subroutine Set_InstallMudBucketPermission(v)
  140. implicit none
  141. logical , intent(in) :: v
  142. #ifdef ExcludeExtraChanges
  143. if(permissions%InstallMudBucketPermission == v) return
  144. #endif
  145. permissions%InstallMudBucketPermission = v
  146. #ifdef deb
  147. print*, 'permissions%InstallMudBucketPermission=', permissions%InstallMudBucketPermission
  148. #endif
  149. !**call permissions%OnInstallMudBucketPermissionChange%RunAll()
  150. end subroutine
  151. logical function Get_InstallMudBucketPermission()
  152. implicit none
  153. Get_InstallMudBucketPermission = permissions%InstallMudBucketPermission
  154. end function
  155. subroutine Set_InstallFillupHeadPermission(v)
  156. implicit none
  157. logical , intent(in) :: v
  158. #ifdef ExcludeExtraChanges
  159. if(permissions%InstallFillupHeadPermission == v) return
  160. #endif
  161. permissions%InstallFillupHeadPermission = v
  162. #ifdef deb
  163. print*, 'InstallFillupHeadPermission=', permissions%InstallFillupHeadPermission
  164. #endif
  165. !**call permissions%OnInstallFillupHeadPermissionChange%RunAll()
  166. end subroutine
  167. logical function Get_InstallFillupHeadPermission()
  168. implicit none
  169. Get_InstallFillupHeadPermission = permissions%InstallFillupHeadPermission
  170. end function
  171. subroutine Set_FillupHeadPermission(v)
  172. implicit none
  173. logical , intent(in) :: v
  174. #ifdef ExcludeExtraChanges
  175. if(permissions%FillupHeadPermission == v) return
  176. #endif
  177. permissions%FillupHeadPermission = v
  178. #ifdef deb
  179. print*, 'FillupHeadPermission=', permissions%FillupHeadPermission
  180. #endif
  181. !**call permissions%OnFillupHeadPermissionChange%RunAll()
  182. end subroutine
  183. logical function Get_FillupHeadPermission()
  184. implicit none
  185. Get_FillupHeadPermission = permissions%FillupHeadPermission
  186. end function
  187. end module