public override string ToString()
 {
     return(string.Format("Uri - {0}, WebUrl - {1}, MinMotionDuration - {7}, MaxMotionDuration - {8}, SlidingWindowSize - {2}, IntervalInSlidingWindow - {3} Parameters - {4}, EventTopics - {5}, Source - {6} ",
                          Uri,
                          WebUrl ?? string.Empty,
                          SlidingWindowSize.TotalMilliseconds,
                          IntervalInSlidingWindow.TotalMilliseconds,
                          Parameters != null ? ConvertorHelper.DictionaryToJson(Parameters) : string.Empty, string.Join(",", TopicFilters.Select(x => x.TopicExpresion)),
                          Source, MinMotionDuration, MaxMotionDuration));
 }
示例#2
0
        public ScadaCommand()
        {
            convertorHelper = new ConvertorHelper();
            ConnectToSimulator();

            listOfAnalog        = new List <AnalogLocation>();
            listOfAnalogCopy    = new List <AnalogLocation>();
            listOfDiscretes     = new List <DiscreteLocation>();
            listOfDiscretesCopy = new List <DiscreteLocation>();
            modelResourcesDesc  = new ModelResourcesDesc();
        }
示例#3
0
        public ScadaProcessing()
        {
            convertorHelper = new ConvertorHelper();

            generatorAnalogs          = new List <AnalogLocation>();
            generatorAnalogsCopy      = new List <AnalogLocation>();
            energyConsumerAnalogs     = new List <AnalogLocation>();
            energyConsumerAnalogsCopy = new List <AnalogLocation>();
            modelResourcesDesc        = new ModelResourcesDesc();
            //previousGeneratorDiscretes = new Dictionary<long, float>(10);
            energyConsumerDiscretes     = new List <DiscreteLocation>();
            energyConsumerDiscretesCopy = new List <DiscreteLocation>();
            generatorDscretes           = new List <DiscreteLocation>();
            generatorDscretesCopy       = new List <DiscreteLocation>();
            DiscretMaxVal = new Dictionary <Tuple <long, string>, int>();
        }