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.

CHeadEnum.f90 2.9 KiB

1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. module CHeadEnum
  2. use COperationScenariosVariables
  3. implicit none
  4. contains
  5. subroutine Evaluate_FillupHead()
  6. use CStudentStationVariables, only: FillupHeadInstallation
  7. implicit none
  8. if (DriveType == TopDrive_DriveType) then
  9. #ifdef OST
  10. print*, 'Evaluate_FillupHead=TopDrive'
  11. #endif
  12. endif
  13. if (DriveType == Kelly_DriveType) then
  14. #ifdef OST
  15. print*, 'Evaluate_FillupHead=Kelly'
  16. #endif
  17. endif
  18. if (Get_FillupHead() == FILLUP_HEAD_INSTALL) then
  19. FillupHeadInstallation = .true.
  20. else if (Get_FillupHead() == FILLUP_HEAD_REMOVE) then
  21. FillupHeadInstallation = .false.
  22. endif
  23. end subroutine
  24. ! subroutine Subscribe_FillupHead()
  25. ! use CStudentStationVariables
  26. ! implicit none
  27. ! call OnFillupHeadInstallationPress%Add(ButtonPress_FillupHeadInstallation)
  28. ! call OnFillupHeadRemovePress%Add(ButtonPress_FillupHeadRemove)
  29. ! end subroutine
  30. subroutine ButtonPress_FillupHeadInstallation()
  31. implicit none
  32. if (DriveType == TopDrive_DriveType) then
  33. #ifdef OST
  34. print*, 'ButtonPress_FillupHeadInstallation=TopDrive'
  35. #endif
  36. !TOPDRIVE-CODE=67
  37. if (Get_FillupHeadPermission()) then
  38. call Set_FillupHead(FILLUP_HEAD_INSTALL)
  39. return
  40. end if
  41. endif
  42. if (DriveType == Kelly_DriveType) then
  43. #ifdef OST
  44. print*, 'ButtonPress_FillupHeadInstallation=Kelly'
  45. #endif
  46. !OPERATION-CODE=71
  47. if (Get_InstallFillupHeadPermission()) then
  48. call Set_FillupHead(FILLUP_HEAD_INSTALL)
  49. return
  50. end if
  51. endif
  52. end subroutine
  53. subroutine ButtonPress_FillupHeadRemove()
  54. implicit none
  55. if (DriveType == TopDrive_DriveType) then
  56. #ifdef OST
  57. print*, 'ButtonPress_FillupHeadRemove=TopDrive'
  58. #endif
  59. !TOPDRIVE-CODE=68
  60. if (Get_FillupHeadPermission()) then
  61. call Set_FillupHead(FILLUP_HEAD_REMOVE)
  62. return
  63. end if
  64. endif
  65. if (DriveType == Kelly_DriveType) then
  66. #ifdef OST
  67. print*, 'ButtonPress_FillupHeadRemove=Kelly'
  68. #endif
  69. !OPERATION-CODE=72
  70. if (Get_InstallFillupHeadPermission()) then
  71. call Set_FillupHead(FILLUP_HEAD_REMOVE)
  72. return
  73. end if
  74. endif
  75. end subroutine
  76. end module CHeadEnum