Beispiel #1
0
 public Accdata(ParseProtocal protocol, DataRepo dataRepo, Action <string> log, Dev dev)
     : base(protocol, dataRepo, log)
 {
     _dev           = dev;
     _fluxRunModels = dataRepo.GetKJ370_FluxRunModels();
     _lastWriteTime = DateTime.Now;
 }
Beispiel #2
0
 public Base(ParseProtocal protocol, DataRepo dataRepo, Action <string> log)
 {
     Parent   = protocol;
     DataRepo = dataRepo;
     Log      = log;
     MineCode = Parent.HostConfig.MineProtocalConfig.MineCode;
 }
Beispiel #3
0
 public Rtdata(ParseProtocal protocol, DataRepo dataRepo, Action <string> log, Dev dev)
     : base(protocol, dataRepo, log)
 {
     _dev               = dev;
     RealDatas          = new List <KJ370_RealDataModel>();
     _startTime         = DateTime.Now;
     FluxRealDataModels = new List <KJ370_FluxRealDataModel>();
 }
Beispiel #4
0
        internal static IParseProtocal Create(string protocalName)
        {
            IParseProtocal protocol = default;

            switch (protocalName)
            {
            case ProtocalConst.SANHENG_SAFETY_PROTOCAL:
                protocol = new YongMeiSanHeng.ParseProtocal();
                break;

            default:
                break;
            }
            return(protocol);
        }
Beispiel #5
0
 public Ycbjdata(ParseProtocal protocol, DataRepo dataRepo, Action <string> log, Dev dev)
     : base(protocol, dataRepo, log)
 {
     _dev = dev;
 }
Beispiel #6
0
 public Kgbhdata(ParseProtocal protocol, DataRepo dataRepo, Action <string> log, Dev dev)
     : base(protocol, dataRepo, log)
 {
 }
Beispiel #7
0
 public Unknown(ParseProtocal protocol, DataRepo dataRepo, Action <string> log)
     : base(protocol, dataRepo, log)
 {
 }
Beispiel #8
0
 public Dev(ParseProtocal protocol, DataRepo dataRepo, Action <string> log)
     : base(protocol, dataRepo, log)
 {
     AnalogPointModels = dataRepo.GetKJ370_AnalogPointModels();
     FluxPointModels   = dataRepo.GetKJ370_FluxPointModels();
 }
Beispiel #9
0
 public Fzdata(ParseProtocal protocol, DataRepo dataRepo, Action <string> log, Dev dev, Rtdata rtdata)
     : base(protocol, dataRepo, log)
 {
     _dev    = dev;
     _rtdata = rtdata;
 }