コード例 #1
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();
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 public double Update(
     ContosoOeeAvailabilityData availablility,
     ContosoOeePerformanceData performance,
     ContosoOeeQualityData quality)
 {
     _availability = availablility.OeeAvailability;
     _performance  = performance.OeePerformance;
     _quality      = quality.OeeQuality;
     Value         = CalculateOeeOverall();
     return(Value);
 }