123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Shaker.Models
- {
- public class RandomDataModel : BaseModel, IResultDataModel
- {
- public double CurrentIdentifyDisplacement = 0.05;
- public double CurrentIdentifyRms = 0;
- public int IdentifyIndex = 0;
- public List<double[]> CurrentAccelerationPSD = new List<double[]>();
- public double[] CurrentAccelerationSynthesisPSD = new double[0];
- public double[] TransferFunction = new double[0];
- public double[] DriverPSD = new double[0];
- public double DriverSpectrumRMS = 0;
- public int CurrentLevelIndex = 0;
- public double TimeDomainRMS = 0;
- public RandomStatus RandomStatus = RandomStatus.Start;
- public RandomTestStep RandomTestStep = RandomTestStep.Start;
- public double CurrentTestLevel = 0;
- public uint CurrentTestTime = 0;
- public uint CurrentLevelTestMaxTime = 0;
- public override object Clone()
- {
- return this.CloneBase();
- }
- public MainPageType MainPageType = MainPageType.RandomPage;
- }
- public enum RandomStatus : uint
- {
- [Description("RandomStatusStart")]
- Start = 1,
- [Description("RandomStatusUp")]
- Up = 1 << 1,
- [Description("RandomStatusIdentify")]
- Identify = 1 << 2,
- [Description("RandomStatusStop")]
- Stop = 1 << 3,
- [Description("RandomStatusTest")]
- Test = 1 << 4,
- [Description("RandomStatusIdentifyMaxLevel")]
- IdentifyMaxLevel = 1 << 5,
- [Description("RandomStatusIdentifyOpenLoop")]
- IdentifyOpenLoop = 1 << 6,
- [Description("RandomStatusTestUpStop")]
- TestUpStop = 1 << 7,
- [Description("RandomStatusTestDownStop")]
- TestDownStop = 1 << 8,
- [Description("RandomStatusTestUpWarn")]
- TestUpWarn = 1 << 9,
- [Description("RandomStatusTestDownWarn")]
- TestDownWarn = 1 << 10,
- [Description("RandomStatusTestRMSError")]
- TestRMSError = 1 << 100,
- }
- }
|