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.
 
 
 
 
 
 

470 lines
12 KiB

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