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