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(); }
public override void Add(ContosoDataItem dataItem) { ContosoOeePerformanceData x = dataItem as ContosoOeePerformanceData; _idealCycleTime += x.IdealCycleTime; ActualCycleTime += x.ActualCycleTime; Time = new DateTime(Math.Max(Time.Ticks, dataItem.Time.Ticks), DateTimeKind.Utc); }
public double Update( ContosoOeeAvailabilityData availablility, ContosoOeePerformanceData performance, ContosoOeeQualityData quality) { _availability = availablility.OeeAvailability; _performance = performance.OeePerformance; _quality = quality.OeeQuality; Value = CalculateOeeOverall(); return(Value); }