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.
 
 
 
 
 
 

469 lines
13 KiB

  1. module CUnityInputs
  2. ! use CVoidEventHandlerCollection
  3. implicit none
  4. type :: UnityInputsType
  5. logical :: ElevatorConnectionPossible
  6. logical :: JointConnectionPossible
  7. logical :: IsKellyBushingSetInTable
  8. logical :: ElevatorPickup
  9. logical :: NearFloorPosition
  10. logical :: SingleSetInMouseHole
  11. logical :: TdsConnectionPossible
  12. logical :: TdsStemIn
  13. ! private :: ElevatorConnectionPossible
  14. ! private :: JointConnectionPossible
  15. ! private :: IsKellyBushingSetInTable
  16. ! private :: ElevatorPickup
  17. ! private :: NearFloorPosition
  18. ! private :: SingleSetInMouseHole
  19. ! private :: TdsConnectionPossible
  20. ! private :: TdsStemIn
  21. ! public
  22. ! type(VoidEventHandlerCollection) :: OnElevatorConnectionPossibleChange
  23. ! type(VoidEventHandlerCollection) :: OnJointConnectionPossibleChange
  24. ! type(VoidEventHandlerCollection) :: OnIsKellyBushingSetInTableChange
  25. ! type(VoidEventHandlerCollection) :: OnElevatorPickupChange
  26. ! type(VoidEventHandlerCollection) :: OnNearFloorPositionChange
  27. ! type(VoidEventHandlerCollection) :: OnSingleSetInMouseHoleChange
  28. ! type(VoidEventHandlerCollection) :: OnTdsConnectionPossibleChange
  29. ! type(VoidEventHandlerCollection) :: OnTdsStemInChange
  30. end type UnityInputsType
  31. contains
  32. ! Input routines
  33. ! subroutine Set_OutOfMouseHole(v)
  34. ! !DEC$ ATTRIBUTES DLLEXPORT :: Set_OutOfMouseHole
  35. ! !DEC$ ATTRIBUTES ALIAS: 'Set_OutOfMouseHole' :: Set_OutOfMouseHole
  36. ! implicit none
  37. ! logical, intent(in) :: v
  38. ! !#ifdef ExcludeExtraChanges
  39. ! ! if(OutOfMouseHole == v) return
  40. ! !#endif
  41. ! ! OutOfMouseHole = v
  42. ! ! call OnOutOfMouseHoleChange%RunAll()
  43. ! !#ifdef deb
  44. ! ! print*, 'OutOfMouseHole=', OutOfMouseHole
  45. ! !#endif
  46. ! end subroutine
  47. ! !logical function Get_OutOfMouseHole()
  48. ! ! implicit none
  49. ! ! Get_OutOfMouseHole = OutOfMouseHole
  50. ! !end function
  51. ! subroutine Set_Unlatch(v)
  52. ! !DEC$ ATTRIBUTES DLLEXPORT :: Set_Unlatch
  53. ! !DEC$ ATTRIBUTES ALIAS: 'Set_Unlatch' :: Set_Unlatch
  54. ! implicit none
  55. ! logical, intent(in) :: v
  56. ! !#ifdef ExcludeExtraChanges
  57. ! ! if(Unlatch == v) return
  58. ! !#endif
  59. ! ! Unlatch = v
  60. ! ! call OnUnlatchChange%RunAll()
  61. ! !#ifdef deb
  62. ! ! print*, 'Unlatch=', Unlatch
  63. ! !#endif
  64. ! end subroutine
  65. ! !logical function Get_Unlatch()
  66. ! ! implicit none
  67. ! ! Get_Unlatch = Unlatch
  68. ! !end function
  69. ! subroutine Set_Latch(v)
  70. ! !DEC$ ATTRIBUTES DLLEXPORT :: Set_Latch
  71. ! !DEC$ ATTRIBUTES ALIAS: 'Set_Latch' :: Set_Latch
  72. ! implicit none
  73. ! logical, intent(in) :: v
  74. ! !#ifdef ExcludeExtraChanges
  75. ! ! if(Latch == v) return
  76. ! !#endif
  77. ! ! Latch = v
  78. ! ! call OnLatchChange%RunAll()
  79. ! !#ifdef deb
  80. ! ! print*, 'Latch=', Latch
  81. ! !#endif
  82. ! end subroutine
  83. ! !logical function Get_Latch()
  84. ! ! implicit none
  85. ! ! Get_Latch = Latch
  86. ! !end function
  87. ! subroutine Set_SlipsUnSet(v)
  88. ! !DEC$ ATTRIBUTES DLLEXPORT :: Set_SlipsUnSet
  89. ! !DEC$ ATTRIBUTES ALIAS: 'Set_SlipsUnSet' :: Set_SlipsUnSet
  90. ! implicit none
  91. ! logical, intent(in) :: v
  92. ! !#ifdef ExcludeExtraChanges
  93. ! ! if(SlipsUnSet == v) return
  94. ! !#endif
  95. ! ! SlipsUnSet = v
  96. ! ! call OnSlipsUnSetChange%RunAll()
  97. ! !#ifdef deb
  98. ! ! print*, 'SlipsUnSet=', SlipsUnSet
  99. ! !#endif
  100. ! end subroutine
  101. ! !logical function Get_SlipsUnSet()
  102. ! ! implicit none
  103. ! ! Get_SlipsUnSet = SlipsUnSet
  104. ! !end function
  105. ! subroutine Set_SlipsSet(v)
  106. ! !DEC$ ATTRIBUTES DLLEXPORT :: Set_SlipsSet
  107. ! !DEC$ ATTRIBUTES ALIAS: 'Set_SlipsSet' :: Set_SlipsSet
  108. ! implicit none
  109. ! logical, intent(in) :: v
  110. ! !#ifdef ExcludeExtraChanges
  111. ! ! if(SlipsSet == v) return
  112. ! !#endif
  113. ! ! SlipsSet = v
  114. ! ! call OnSlipsSetChange%RunAll()
  115. ! !#ifdef deb
  116. ! ! print*, 'SlipsSet=', SlipsSet
  117. ! !#endif
  118. ! end subroutine
  119. ! !logical function Get_SlipsSet()
  120. ! ! implicit none
  121. ! ! Get_SlipsSet = SlipsSet
  122. ! !end function
  123. ! subroutine Set_BreakupTong(v)
  124. ! !DEC$ ATTRIBUTES DLLEXPORT :: Set_BreakupTong
  125. ! !DEC$ ATTRIBUTES ALIAS: 'Set_BreakupTong' :: Set_BreakupTong
  126. ! implicit none
  127. ! logical, intent(in) :: v
  128. ! !#ifdef ExcludeExtraChanges
  129. ! ! if(BreakupTong == v) return
  130. ! !#endif
  131. ! ! BreakupTong = v
  132. ! ! call OnBreakupTongChange%RunAll()
  133. ! !#ifdef deb
  134. ! ! print*, 'BreakupTong=', BreakupTong
  135. ! !#endif
  136. ! end subroutine
  137. ! !logical function Get_BreakupTong()
  138. ! ! implicit none
  139. ! ! Get_BreakupTong = BreakupTong
  140. ! !end function
  141. ! subroutine Set_MakeupTong(v)
  142. ! !DEC$ ATTRIBUTES DLLEXPORT :: Set_MakeupTong
  143. ! !DEC$ ATTRIBUTES ALIAS: 'Set_MakeupTong' :: Set_MakeupTong
  144. ! implicit none
  145. ! logical, intent(in) :: v
  146. ! !#ifdef ExcludeExtraChanges
  147. ! ! if(MakeupTong == v) return
  148. ! !#endif
  149. ! ! MakeupTong = v
  150. ! ! call OnMakeupTongChange%RunAll()
  151. ! !#ifdef deb
  152. ! ! print*, 'MakeupTong=', MakeupTong
  153. ! !#endif
  154. ! end subroutine
  155. ! !logical function Get_MakeupTong()
  156. ! ! implicit none
  157. ! ! Get_MakeupTong = MakeupTong
  158. ! !end function
  159. ! subroutine Set_NewHookHeight(v)
  160. ! !DEC$ ATTRIBUTES DLLEXPORT :: Set_NewHookHeight
  161. ! !DEC$ ATTRIBUTES ALIAS: 'Set_NewHookHeight' :: Set_NewHookHeight
  162. ! implicit none
  163. ! real(8), intent(in) :: v
  164. ! !#ifdef ExcludeExtraChanges
  165. ! ! if(NewHookHeight == v) return
  166. ! !#endif
  167. ! ! NewHookHeight = v
  168. ! ! call OnNewHookHeightChange%RunAll()
  169. ! !#ifdef deb
  170. ! ! print*, 'NewHookHeight=', NewHookHeight
  171. ! !#endif
  172. ! end subroutine
  173. ! !real(8) function Get_NewHookHeight()
  174. ! ! implicit none
  175. ! ! Get_NewHookHeight = NewHookHeight
  176. ! !end function
  177. ! subroutine Set_ElevatorConnectionPossible(v)
  178. ! !DEC$ ATTRIBUTES DLLEXPORT :: Set_ElevatorConnectionPossible
  179. ! !DEC$ ATTRIBUTES ALIAS: 'Set_ElevatorConnectionPossible' :: Set_ElevatorConnectionPossible
  180. ! implicit none
  181. ! logical, intent(in) :: v
  182. ! #ifdef ExcludeExtraChanges
  183. ! if(data%Equipments%UnityInputs%ElevatorConnectionPossible == v) return
  184. ! #endif
  185. ! data%Equipments%UnityInputs%ElevatorConnectionPossible = v
  186. ! !**call data%Equipments%UnityInputs%OnElevatorConnectionPossibleChange%RunAll()
  187. ! #ifdef deb
  188. ! print*, 'ElevatorConnectionPossible=', data%Equipments%UnityInputs%ElevatorConnectionPossible
  189. ! #endif
  190. ! end subroutine
  191. ! logical function Get_ElevatorConnectionPossible_WN()
  192. ! !DEC$ ATTRIBUTES DLLEXPORT :: Get_ElevatorConnectionPossible_WN
  193. ! !DEC$ ATTRIBUTES ALIAS: 'Get_ElevatorConnectionPossible_WN' :: Get_ElevatorConnectionPossible_WN
  194. ! implicit none
  195. ! Get_ElevatorConnectionPossible_WN = data%Equipments%UnityInputs%ElevatorConnectionPossible
  196. ! !Get_ElevatorConnectionPossible_WN = .true.
  197. ! end function
  198. ! subroutine Set_JointConnectionPossible(v)
  199. ! !DEC$ ATTRIBUTES DLLEXPORT :: Set_JointConnectionPossible
  200. ! !DEC$ ATTRIBUTES ALIAS: 'Set_JointConnectionPossible' :: Set_JointConnectionPossible
  201. ! implicit none
  202. ! logical, intent(in) :: v
  203. ! #ifdef ExcludeExtraChanges
  204. ! if(data%Equipments%UnityInputs%JointConnectionPossible == v) return
  205. ! #endif
  206. ! data%Equipments%UnityInputs%JointConnectionPossible = v
  207. ! !**call data%Equipments%UnityInputs%OnJointConnectionPossibleChange%RunAll()
  208. ! #ifdef deb
  209. ! print*, 'JointConnectionPossible=', data%Equipments%UnityInputs%JointConnectionPossible
  210. ! #endif
  211. ! end subroutine
  212. ! logical function Get_JointConnectionPossible_WN()
  213. ! !DEC$ ATTRIBUTES DLLEXPORT :: Get_JointConnectionPossible_WN
  214. ! !DEC$ ATTRIBUTES ALIAS: 'Get_JointConnectionPossible_WN' :: Get_JointConnectionPossible_WN
  215. ! implicit none
  216. ! Get_JointConnectionPossible_WN = data%Equipments%UnityInputs%JointConnectionPossible
  217. ! end function
  218. ! subroutine Set_IsKellyBushingSetInTable(v)
  219. ! !DEC$ ATTRIBUTES DLLEXPORT :: Set_IsKellyBushingSetInTable
  220. ! !DEC$ ATTRIBUTES ALIAS: 'Set_IsKellyBushingSetInTable' :: Set_IsKellyBushingSetInTable
  221. ! implicit none
  222. ! logical, intent(in) :: v
  223. ! #ifdef ExcludeExtraChanges
  224. ! if(data%Equipments%UnityInputs%IsKellyBushingSetInTable == v) return
  225. ! #endif
  226. ! data%Equipments%UnityInputs%IsKellyBushingSetInTable = v
  227. ! !**call data%Equipments%UnityInputs%OnIsKellyBushingSetInTableChange%RunAll()
  228. ! #ifdef deb
  229. ! print*, 'IsKellyBushingSetInTable=', data%Equipments%UnityInputs%IsKellyBushingSetInTable
  230. ! #endif
  231. ! end subroutine
  232. ! logical function Get_IsKellyBushingSetInTable_WN()
  233. ! !DEC$ ATTRIBUTES DLLEXPORT :: Get_IsKellyBushingSetInTable_WN
  234. ! !DEC$ ATTRIBUTES ALIAS: 'Get_IsKellyBushingSetInTable_WN' :: Get_IsKellyBushingSetInTable_WN
  235. ! implicit none
  236. ! Get_IsKellyBushingSetInTable_WN = data%Equipments%UnityInputs%IsKellyBushingSetInTable
  237. ! end function
  238. ! subroutine Set_ElevatorPickup(v)
  239. ! !DEC$ ATTRIBUTES DLLEXPORT :: Set_ElevatorPickup
  240. ! !DEC$ ATTRIBUTES ALIAS: 'Set_ElevatorPickup' :: Set_ElevatorPickup
  241. ! implicit none
  242. ! logical, intent(in) :: v
  243. ! #ifdef ExcludeExtraChanges
  244. ! if(data%Equipments%UnityInputs%ElevatorPickup == v) return
  245. ! #endif
  246. ! data%Equipments%UnityInputs%ElevatorPickup = v
  247. ! !**call data%Equipments%UnityInputs%OnElevatorPickupChange%RunAll()
  248. ! #ifdef deb
  249. ! print*, 'ElevatorPickup =', data%Equipments%UnityInputs%ElevatorPickup
  250. ! #endif
  251. ! end subroutine
  252. ! logical function Get_ElevatorPickup_WN()
  253. ! !DEC$ ATTRIBUTES DLLEXPORT :: Get_ElevatorPickup_WN
  254. ! !DEC$ ATTRIBUTES ALIAS: 'Get_ElevatorPickup_WN' :: Get_ElevatorPickup_WN
  255. ! implicit none
  256. ! Get_ElevatorPickup_WN = data%Equipments%UnityInputs%ElevatorPickup
  257. ! end function
  258. ! subroutine Set_NearFloorPosition_WN(v)
  259. ! !DEC$ ATTRIBUTES DLLEXPORT :: Set_NearFloorPosition_WN
  260. ! !DEC$ ATTRIBUTES ALIAS: 'Set_NearFloorPosition_WN' :: Set_NearFloorPosition_WN
  261. ! implicit none
  262. ! logical, intent(in) :: v
  263. ! call Set_NearFloorPosition(v)
  264. ! end subroutine
  265. ! logical function Get_NearFloorPosition_WN()
  266. ! !DEC$ ATTRIBUTES DLLEXPORT :: Get_NearFloorPosition_WN
  267. ! !DEC$ ATTRIBUTES ALIAS: 'Get_NearFloorPosition_WN' :: Get_NearFloorPosition_WN
  268. ! implicit none
  269. ! Get_NearFloorPosition_WN = data%Equipments%UnityInputs%NearFloorPosition
  270. ! end function
  271. ! subroutine Set_SingleSetInMouseHole(v)
  272. ! !DEC$ ATTRIBUTES DLLEXPORT :: Set_SingleSetInMouseHole
  273. ! !DEC$ ATTRIBUTES ALIAS: 'Set_SingleSetInMouseHole' :: Set_SingleSetInMouseHole
  274. ! implicit none
  275. ! logical, intent(in) :: v
  276. ! #ifdef ExcludeExtraChanges
  277. ! if(data%Equipments%UnityInputs%SingleSetInMouseHole == v) return
  278. ! #endif
  279. ! data%Equipments%UnityInputs%SingleSetInMouseHole = v
  280. ! !**call data%Equipments%UnityInputs%OnSingleSetInMouseHoleChange%RunAll()
  281. ! #ifdef deb
  282. ! print*, 'singleSetInMouseHole=', data%Equipments%UnityInputs%SingleSetInMouseHole
  283. ! #endif
  284. ! end subroutine
  285. ! logical function Get_TdsStemIn_WN()
  286. ! !DEC$ ATTRIBUTES DLLEXPORT :: Get_TdsStemIn_WN
  287. ! !DEC$ ATTRIBUTES ALIAS: 'Get_TdsStemIn_WN' :: Get_TdsStemIn_WN
  288. ! implicit none
  289. ! Get_TdsStemIn_WN = data%Equipments%UnityInputs%TdsStemIn
  290. ! !Get_TdsStemIn_WN = .true.
  291. ! end function
  292. end module CUnityInputs