/**********************************************************/ public override void addPayloadToReport(ReportWrapper reportWrapper, IntervalValue intervalValue) { PowerValue pv = (PowerValue)intervalValue; // TODO: point in time values should not include a duration, but the test set will fail // certain test cases duration is not included. once the test set is fixed, change to not inlcude // the duration reportWrapper.addIntervalReportPayload(pv.DateTime.ToUniversalTime(), RID, pv.Confidence, pv.Accuracy, pv.Value, DataQuality.qualityGoodNonSpecific, 10, DurationModifier.SECONDS); // reportWrapper.addIntervalReportPayload(pv.DateTime.ToUniversalTime(), RID, pv.Confidence, pv.Accuracy, pv.Value, DataQuality.qualityGoodNonSpecific); }
/**********************************************************/ public override void addPayloadToReport(ReportWrapper reportWrapper, IntervalValue intervalValue) { StatusValue sv = (StatusValue)intervalValue; // TODO: point in time values should not include a duration, but the test set will fail // certain test cases duration is not included. once the test set is fixed, change to not inlcude // the duration reportWrapper.addIntervalResourceStatus(sv.DateTime.ToUniversalTime(), RID, 1, (float)1.0, DataQuality.qualityGoodNonSpecific, sv.Online, sv.Override, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, 10, DurationModifier.SECONDS); /*reportWrapper.addIntervalResourceStatus(sv.DateTime.ToUniversalTime(), RID, 1, (float)1.0, DataQuality.qualityGoodNonSpecific, sv.Online, sv.Override, (float)1.0, (float)1.0, (float)1.0, (float)1.0, * (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, (float)1.0, * (float)1.0, (float)1.0);*/ }
/**********************************************************/ abstract public void addPayloadToReport(ReportWrapper reportWrapper, IntervalValue intervalValue);
/**********************************************************/ public override void addPayloadToReport(ReportWrapper reportWrapper, IntervalValue intervalValue) { PowerValue pv = (PowerValue)intervalValue; reportWrapper.addIntervalReportPayload(pv.DateTime.ToUniversalTime(), RID, pv.Confidence, pv.Accuracy, pv.Value, DataQuality.qualityGoodNonSpecific, m_intervalMinutes, DurationModifier.MINUTES); }