RandomDataModel.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 double TimeDomainRMS = 0;
  20. public RandomStatus RandomStatus = RandomStatus.Start;
  21. public RandomTestStep RandomTestStep = RandomTestStep.Start;
  22. public double CurrentTestLevel = 0;
  23. public uint CurrentTestTime = 0;
  24. public uint CurrentLevelTestMaxTime = 0;
  25. public override object Clone()
  26. {
  27. return this.CloneBase();
  28. }
  29. public MainPageType MainPageType = MainPageType.RandomPage;
  30. }
  31. public enum RandomStatus
  32. {
  33. [Description("RandomStatusStart")]
  34. Start,
  35. [Description("RandomStatusUp")]
  36. Up,
  37. [Description("RandomStatusIdentify")]
  38. Identify,
  39. [Description("RandomStatusStop")]
  40. Stop,
  41. [Description("RandomStatusTest")]
  42. Test,
  43. [Description("RandomStatusIdentifyMaxLevel")]
  44. IdentifyMaxLevel,
  45. [Description("RandomStatusIdentifyOpenLoop")]
  46. IdentifyOpenLoop,
  47. [Description("RandomStatusTestUpStop")]
  48. TestUpStop,
  49. [Description("RandomStatusTestDownStop")]
  50. TestDownStop,
  51. [Description("RandomStatusTestRMSError")]
  52. TestRMSError,
  53. }
  54. }