Example #1
0
        public override void AddStation(ContosoDataItem dataItem)
        {
            ContosoOeeQualityData x = dataItem as ContosoOeeQualityData;

            _bad += x.Bad;
            Good  = (Good == 0) ? x.Good : Math.Min(Good, x.Good);
            Time  = new DateTime(Math.Max(Time.Ticks, dataItem.Time.Ticks), DateTimeKind.Utc);
        }
Example #2
0
        public override void Add(ContosoDataItem dataItem)
        {
            ContosoOeeQualityData x = dataItem as ContosoOeeQualityData;

            _bad += x.Bad;
            Good += x.Good;
            Time  = new DateTime(Math.Max(Time.Ticks, dataItem.Time.Ticks), DateTimeKind.Utc);
        }
Example #3
0
 public double Update(
     ContosoOeeAvailabilityData availablility,
     ContosoOeePerformanceData performance,
     ContosoOeeQualityData quality)
 {
     _availability = availablility.OeeAvailability;
     _performance  = performance.OeePerformance;
     _quality      = quality.OeeQuality;
     Value         = CalculateOeeOverall();
     return(Value);
 }
Example #4
0
 public ContosoOeeOverallData(ContosoOeeAvailabilityData availablility, ContosoOeePerformanceData performance, ContosoOeeQualityData quality) : base()
 {
     _availability = availablility.OeeAvailability;
     _performance  = performance.OeePerformance;
     _quality      = quality.OeeQuality;
     Time          = new DateTime(Math.Max(availablility.Time.Ticks, Math.Max(performance.Time.Ticks, quality.Time.Ticks)), DateTimeKind.Utc);
     Value         = CalculateOeeOverall();
 }