Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public double Update(
     ContosoOeeAvailabilityData availablility,
     ContosoOeePerformanceData performance,
     ContosoOeeQualityData quality)
 {
     _availability = availablility.OeeAvailability;
     _performance  = performance.OeePerformance;
     _quality      = quality.OeeQuality;
     Value         = CalculateOeeOverall();
     return(Value);
 }
Exemplo n.º 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();
 }