RandomDataModel.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 double CurrentTestLevel = 0;
  24. public uint CurrentTestTime = 0;
  25. public uint CurrentLevelTestMaxTime = 0;
  26. public override object Clone()
  27. {
  28. return this.CloneBase();
  29. }
  30. public MainPageType MainPageType = MainPageType.RandomPage;
  31. }
  32. public enum RandomStatus : uint
  33. {
  34. [Description("RandomStatusStart")]
  35. Start = 1,
  36. [Description("RandomStatusUp")]
  37. Up = 1 << 1,
  38. [Description("RandomStatusIdentify")]
  39. Identify = 1 << 2,
  40. [Description("RandomStatusStop")]
  41. Stop = 1 << 3,
  42. [Description("RandomStatusTest")]
  43. Test = 1 << 4,
  44. [Description("RandomStatusIdentifyMaxLevel")]
  45. IdentifyMaxLevel = 1 << 5,
  46. [Description("RandomStatusIdentifyOpenLoop")]
  47. IdentifyOpenLoop = 1 << 6,
  48. [Description("RandomStatusTestUpStop")]
  49. TestUpStop = 1 << 7,
  50. [Description("RandomStatusTestDownStop")]
  51. TestDownStop = 1 << 8,
  52. [Description("RandomStatusTestUpWarn")]
  53. TestUpWarn = 1 << 9,
  54. [Description("RandomStatusTestDownWarn")]
  55. TestDownWarn = 1 << 10,
  56. [Description("RandomStatusTestRMSError")]
  57. TestRMSError = 1 << 100,
  58. }
  59. }