Simulation Core
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Permissions.f90 7.3 KiB

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