RandomDataModel.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Shaker.Models
  8. {
  9. public class RandomDataModel : BaseModel, IResultDataModel
  10. {
  11. public double CurrentIdentifyDisplacement = 0.05;
  12. public double CurrentIdentifyRms = 0;
  13. public int IdentifyIndex = 0;
  14. public List<double[]> CurrentAccelerationPSD = new List<double[]>();
  15. public double[] CurrentAccelerationSynthesisPSD = new double[0];
  16. public double[] TransferFunction = new double[0];
  17. public double[] DriverPSD = new double[0];
  18. public double DriverSpectrumRMS = 0;
  19. public int CurrentLevelIndex = 0;
  20. public double TimeDomainRMS = 0;
  21. public RandomStatus RandomStatus = RandomStatus.Start;
  22. public RandomTestStep RandomTestStep = RandomTestStep.Start;
  23. public uint TestTotalRunTime = 0;
  24. public double CurrentTestLevel = 0;
  25. public uint CurrentTestTime = 0;
  26. public uint CurrentLevelTestMaxTime = 0;
  27. public override object Clone()
  28. {
  29. return this.CloneBase();
  30. }
  31. public MainPageType MainPageType = MainPageType.RandomPage;
  32. }
  33. public enum RandomStatus : uint
  34. {
  35. [Description("RandomStatusStart")]
  36. Start = 1,
  37. [Description("RandomStatusUp")]
  38. Up = 1 << 1,
  39. [Description("RandomStatusIdentify")]
  40. Identify = 1 << 2,
  41. [Description("RandomStatusStop")]
  42. Stop = 1 << 3,
  43. [Description("RandomStatusTest")]
  44. Test = 1 << 4,
  45. [Description("RandomStatusIdentifyMaxLevel")]
  46. IdentifyMaxLevel = 1 << 5,
  47. [Description("RandomStatusIdentifyOpenLoop")]
  48. IdentifyOpenLoop = 1 << 6,
  49. [Description("RandomStatusTestUpStop")]
  50. TestUpStop = 1 << 7,
  51. [Description("RandomStatusTestDownStop")]
  52. TestDownStop = 1 << 8,
  53. [Description("RandomStatusTestUpWarn")]
  54. TestUpWarn = 1 << 9,
  55. [Description("RandomStatusTestDownWarn")]
  56. TestDownWarn = 1 << 10,
  57. [Description("RandomStatusTestRMSError")]
  58. TestRMSError = 1 << 100,
  59. }
  60. }