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.

CUnityInputs.i90 12 KiB

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