Example #1
0
        /// <summary>
        /// Returns true if more data is required for the next interval.
        /// </summary>
        public override bool WaitForMoreData(TimeSlice bucket, AggregateState state)
        {
            if (!state.HasTerminated)
            {
                if (bucket.ContainsTime(state.LatestTimestamp))
                {
                    return(true);
                }

                if (this.IsReverseAggregation)
                {
                    if (state.LatestTimestamp < bucket.To)
                    {
                        return(false);
                    }
                }
                else
                {
                    if (state.LatestTimestamp > bucket.To)
                    {
                        return(false);
                    }
                }

                if ((bucket.EarlyBound.Value == null) || (bucket.LateBound.Value == null))
                {
                    return(true);
                }
            }

            return(false);
        }
Example #2
0
        /// <summary>
        /// Returns true if more data is required for the next interval.
        /// </summary>
        public override bool WaitForMoreData(TimeSlice bucket, AggregateState state)
        {
            bool wait = false;

            if (!state.HasTerminated)
            {
                if (bucket.ContainsTime(state.LatestTimestamp))
                {
                    wait = true;
                }
            }
            return(wait);
        }
Example #3
0
        /// <summary>
        /// Returns true if more data is required for the next interval.
        /// </summary>
        public override bool WaitForMoreData(TimeSlice bucket, AggregateState state)
        {
            if (!state.HasTerminated)
            {
                if (bucket.ContainsTime(state.LatestTimestamp))
                {
                    return true;
                }

                if (this.IsReverseAggregation)
                {
                    if (state.LatestTimestamp < bucket.To)
                    {
                        return false;
                    }
                }
                else
                {
                    if (state.LatestTimestamp > bucket.To)
                    {
                        return false;
                    }
                }

                if ((bucket.EarlyBound.Value == null) || (bucket.LateBound.Value == null))
                {
                    return true;
                }
            }

            return false;
        }
Example #4
0
 /// <summary>
 /// Returns true if more data is required for the next interval.
 /// </summary>
 public override bool WaitForMoreData(TimeSlice bucket, AggregateState state)
 {
     bool wait = false;
     if (!state.HasTerminated)
     {
         if (bucket.ContainsTime(state.LatestTimestamp))
         {
             wait = true;
         }
     }
     return wait;
 }