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.
 
 
 
 
 
 

195 lines
6.3 KiB

  1. module SoftwareInputsVariables
  2. ! use CVoidEventHandlerCollection
  3. type:: SoftwareInputsType
  4. real :: HookHeight = 0
  5. ! type(VoidEventHandlerCollection) :: OnHookHeightChange
  6. real :: IbopHeight = 0
  7. ! type(VoidEventHandlerCollection) :: OnIbopHeightChange
  8. real :: NearFloorConnection = 0
  9. ! type(VoidEventHandlerCollection) :: OnNearFloorConnectionChange
  10. real :: SafetyValveHeight = 0
  11. ! type(VoidEventHandlerCollection) :: OnSafetyValveHeightChange
  12. logical :: SlackOff = .false.
  13. ! type(VoidEventHandlerCollection) :: OnSlackOffChange
  14. integer :: StandRack = 0
  15. ! type(VoidEventHandlerCollection) :: OnStandRackChanged
  16. real :: StringPressure = 0
  17. ! type(VoidEventHandlerCollection) :: OnStringPressureChange
  18. real :: TdsStemJointHeight = 0
  19. ! type(VoidEventHandlerCollection) :: OnTdsStemJointHeightChange
  20. logical :: ZeroStringSpeed = .false.
  21. ! type(VoidEventHandlerCollection) :: OnZeroStringSpeedChange
  22. end type SoftwareInputsType
  23. type(SoftwareInputsType):: softwareInputs
  24. contains
  25. subroutine Set_ZeroStringSpeed(v)
  26. implicit none
  27. logical , intent(in) :: v
  28. #ifdef ExcludeExtraChanges
  29. if(softwareInputs%ZeroStringSpeed == v) return
  30. #endif
  31. softwareInputs%ZeroStringSpeed = v
  32. #ifdef deb
  33. print*, 'ZeroStringSpeed=', softwareInputs%ZeroStringSpeed
  34. #endif
  35. ! call softwareInputs%OnZeroStringSpeedChange%RunAll()
  36. end subroutine
  37. logical function Get_ZeroStringSpeed()
  38. implicit none
  39. Get_ZeroStringSpeed = softwareInputs%ZeroStringSpeed
  40. !Get_ZeroStringSpeed = .true.
  41. end function
  42. subroutine Set_TdsStemJointHeight(v)
  43. implicit none
  44. real , intent(in) :: v
  45. #ifdef ExcludeExtraChanges
  46. if(softwareInputs%TdsStemJointHeight == v) return
  47. #endif
  48. softwareInputs%TdsStemJointHeight = v
  49. #ifdef deb
  50. print*, 'TdsStemJointHeight=', softwareInputs%TdsStemJointHeight
  51. #endif
  52. ! call softwareInputs%OnTdsStemJointHeightChange%RunAll()
  53. end subroutine
  54. real function Get_TdsStemJointHeight()
  55. implicit none
  56. Get_TdsStemJointHeight = softwareInputs%TdsStemJointHeight
  57. end function
  58. subroutine Set_StringPressure(v)
  59. implicit none
  60. real , intent(in) :: v
  61. #ifdef ExcludeExtraChanges
  62. if(softwareInputs%StringPressure == v) return
  63. #endif
  64. softwareInputs%StringPressure = v
  65. #ifdef deb
  66. print*, 'StringPressure=', softwareInputs%StringPressure
  67. #endif
  68. ! call softwareInputs%OnStringPressureChange%RunAll()
  69. end subroutine
  70. real function Get_StringPressure()
  71. implicit none
  72. Get_StringPressure = softwareInputs%StringPressure
  73. end function
  74. subroutine Set_StandRack(v)
  75. implicit none
  76. integer , intent(in) :: v
  77. #ifdef ExcludeExtraChanges
  78. if(softwareInputs%StandRack == v) return
  79. #endif
  80. softwareInputs%StandRack = v
  81. #ifdef deb
  82. print*, 'StandRack=', softwareInputs%StandRack
  83. #endif
  84. ! call softwareInputs%OnStandRackChanged%RunAll()
  85. end subroutine
  86. integer function Get_StandRack()
  87. implicit none
  88. Get_StandRack = softwareInputs%StandRack
  89. end function
  90. subroutine Set_SlackOff(v)
  91. implicit none
  92. logical , intent(in) :: v
  93. #ifdef ExcludeExtraChanges
  94. if(softwareInputs%SlackOff == v) return
  95. #endif
  96. softwareInputs%SlackOff = v
  97. #ifdef deb
  98. print*, 'SlackOff=', softwareInputs%SlackOff
  99. #endif
  100. ! call softwareInputs%OnSlackOffChange%RunAll()
  101. end subroutine
  102. logical function Get_SlackOff()
  103. implicit none
  104. Get_SlackOff = softwareInputs%SlackOff
  105. end function
  106. subroutine Set_SafetyValveHeight(v)
  107. implicit none
  108. real , intent(in) :: v
  109. #ifdef ExcludeExtraChanges
  110. if(softwareInputs%SafetyValveHeight == v) return
  111. #endif
  112. softwareInputs%SafetyValveHeight = v
  113. #ifdef deb
  114. print*, 'SafetyValveHeight=', softwareInputs%SafetyValveHeight
  115. #endif
  116. ! call softwareInputs%OnSafetyValveHeightChange%RunAll()
  117. end subroutine
  118. real function Get_SafetyValveHeight()
  119. implicit none
  120. Get_SafetyValveHeight = softwareInputs%SafetyValveHeight
  121. !Get_SafetyValveHeight = 23
  122. end function
  123. subroutine Set_NearFloorConnection(v)
  124. implicit none
  125. real , intent(in) :: v
  126. #ifdef ExcludeExtraChanges
  127. if(softwareInputs%NearFloorConnection == v) return
  128. #endif
  129. softwareInputs%NearFloorConnection = v
  130. #ifdef deb
  131. print*, 'NearFloorConnection=', softwareInputs%NearFloorConnection
  132. #endif
  133. ! call softwareInputs%OnNearFloorConnectionChange%RunAll()
  134. end subroutine
  135. real function Get_NearFloorConnection()
  136. implicit none
  137. Get_NearFloorConnection = softwareInputs%NearFloorConnection
  138. !Get_NearFloorConnection = 4
  139. end function
  140. subroutine Set_IbopHeight(v)
  141. implicit none
  142. real , intent(in) :: v
  143. #ifdef ExcludeExtraChanges
  144. if(softwareInputs%IbopHeight == v) return
  145. #endif
  146. softwareInputs%IbopHeight = v
  147. #ifdef deb
  148. print*, 'IbopHeight=', softwareInputs%IbopHeight
  149. #endif
  150. ! call softwareInputs%OnIbopHeightChange%RunAll()
  151. end subroutine
  152. real function Get_IbopHeight()
  153. implicit none
  154. Get_IbopHeight = softwareInputs%IbopHeight
  155. !Get_IbopHeight = 23.0
  156. end function
  157. subroutine Set_HookHeight(v)
  158. implicit none
  159. real , intent(in) :: v
  160. #ifdef ExcludeExtraChanges
  161. if(softwareInputs%HookHeight == v) return
  162. #endif
  163. softwareInputs%HookHeight = v
  164. #ifdef deb
  165. print*, 'HookHeight=', softwareInputs%HookHeight
  166. #endif
  167. ! call softwareInputs%OnHookHeightChange%RunAll()
  168. end subroutine
  169. real function Get_HookHeight()
  170. implicit none
  171. Get_HookHeight = softwareInputs%HookHeight
  172. end function
  173. end module