RandomDataModel.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Shaker.Models
  7. {
  8. public class RandomDataModel : BaseModel, IResultDataModel
  9. {
  10. public double CurrentIdentifyDisplacement = 0.05;
  11. public double CurrentIdentifyRms = 0;
  12. public int IdentifyIndex = 0;
  13. public List<double[]> CurrentAccelerationPSD = new List<double[]>();
  14. public double[] CurrentAccelerationSynthesisPSD = new double[0];
  15. public double[] TransferFunction = new double[0];
  16. public double[] DriverPSD = new double[0];
  17. public RandomStatus RandomStatus = RandomStatus.Start;
  18. public RandomTestStep RandomTestStep = RandomTestStep.Start;
  19. public double CurrentTestLevel = 0;
  20. public double CurrentTestTime = 0;
  21. public override object Clone()
  22. {
  23. return this.CloneBase();
  24. }
  25. public MainPageType MainPageType = MainPageType.RandomPage;
  26. }
  27. public enum RandomStatus
  28. {
  29. Start,
  30. Up,
  31. Identify,
  32. Stop,
  33. Test,
  34. IdentifyMaxLevel,
  35. IdentifyOpenLoop,
  36. TestUpStop,
  37. TestDownStop,
  38. TestRMSError,
  39. }
  40. }