RandomDataModel.cs 2.2 KB

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