Example #1
0
        /**********************************************************/

        public void addStatus(DateTime dateTime, bool online, bool aOverride)
        {
            StatusValue sv = new StatusValue(dateTime, online, aOverride);

            m_intervals.Insert(0, sv);

            if (m_intervals.Count > m_maxIntervals)
            {
                m_intervals.RemoveAt(m_intervals.Count - 1);
            }
        }
Example #2
0
        /**********************************************************/

        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);*/
        }