KeplerData.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Reflection.Metadata.Ecma335;
  5. using System.Security.Principal;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Test;
  9. internal class DataCollection<T>
  10. {
  11. public Guid UID { get; set; }
  12. public DateTime Time { get; set; }
  13. public Dictionary<string, T> ValueCollection { get; set; }
  14. }
  15. internal class PairValue<T>
  16. {
  17. public T SetPoint { get; set; }
  18. public T Value { get; set; }
  19. }
  20. internal class PM
  21. {
  22. public Guid UID { get; set; }
  23. public DateTime Time { get; set; }
  24. public DataCollection<float> OnTime { get; set; }
  25. public DataCollection<float> Pressure { get; set; }
  26. public DataCollection<float> Mfcs { get; set; }
  27. public DataCollection<bool> IoSensor { get; set; }
  28. public DataCollection<PairValue<bool>> IoValve { get; set; }
  29. public DataCollection<Heater> IoHeater { get; set; }
  30. public HighTemperatureHeater HighTemperatureHeater { get; set; }
  31. public Lid Lid { get; set; }
  32. public MainPump MainPump { get; set; }
  33. public Match Match { get; set; }
  34. public PendulumValve pendulumValve { get; set; }
  35. public PV PV { get; set; }
  36. public RF RF { get; set; }
  37. public RFBox RFBox { get; set; }
  38. public SlitDoor SlitDoor { get; set; }
  39. public TurboPump TurboPump { get; set; }
  40. }
  41. internal class HighTemperatureHeater
  42. {
  43. public bool IsOn { get; set; }
  44. public bool HeaterDriverAlarm { get; set; }
  45. public float InnerCurrent { get; set; }
  46. public float InnerPower { get; set; }
  47. public float InnerResistance { get; set; }
  48. public float InnerVoltage { get; set; }
  49. public float MaxPower { get; set; }
  50. public float MinPower { get; set; }
  51. public float OuterCurrent { get; set; }
  52. public float OuterPower { get; set; }
  53. public float OuterResistance { get; set; }
  54. public float OuterVoltage { get; set; }
  55. public float Posi_Mm { get; set; }
  56. public float Position { get; set; }
  57. public float Power_Output { get; set; }
  58. public float PurgeN2Flow { get; set; }
  59. public float Ratio { get; set; }
  60. public float ShaftTCTemp { get; set; }
  61. public float SourceTCTemp { get; set; }
  62. public float Speed { get; set; }
  63. public float Temperature { get; set; }
  64. public float TemperatureSetPoint { get; set; }
  65. public float TM_Temp { get; set; }
  66. }
  67. internal class Heater
  68. {
  69. public PairValue<float> ControlTc { get; set; }
  70. public PairValue<bool> IsPowerOn { get; set; }
  71. }
  72. internal class Lid
  73. {
  74. public bool IsClosed { get; set; }
  75. }
  76. internal class MainPump
  77. {
  78. public bool IsError { get; set; }
  79. public bool IsRunning { get; set; }
  80. }
  81. internal class Match
  82. {
  83. public float C1 { get; set; }
  84. public float C2 { get; set; }
  85. public float DCBias { get; set; }
  86. public float Vpp { get; set; }
  87. }
  88. internal class PendulumValve
  89. {
  90. public bool IsOpen { get; set; }
  91. public PairValue<float> Position { get; set; }
  92. public PairValue<float> Pressure { get; set; }
  93. }
  94. internal class PV
  95. {
  96. public float ForwardPower { get; set; }
  97. public float GetPVPosition { get; set; }
  98. public Dictionary<string, float> Pressure { get; set; }
  99. public Dictionary<string, float> Flow { get; set; }
  100. }
  101. internal class RF
  102. {
  103. public float ForwardPower { get; set; }
  104. public float Frequency { get; set; }
  105. public bool IsPowerOn { get; set; }
  106. public float PowerSetPoint { get; set; }
  107. public float PulsingDutyCycle { get; set; }
  108. public float PulsingFrequency { get; set; }
  109. public float ReflectPower { get; set; }
  110. }
  111. internal class RFBox
  112. {
  113. public float C1 { get; set; }
  114. public float C2 { get; set; }
  115. public float DCBias { get; set; }
  116. public float Vpp { get; set; }
  117. }
  118. internal class SlitDoor
  119. {
  120. public bool IsClosed { get; set; }
  121. }
  122. internal class TurboPump
  123. {
  124. public float Temperature { get; set; }
  125. public bool IsTurboPumpAtSpeed { get; set; }
  126. }