private void AddSubtract(ExprTimePeriodImpl parent, DateTimeEx dateTime, int factor, EventBean[] eventsPerStream, bool newData, ExprEvaluatorContext context) { var adders = parent.Adders; var evaluators = parent.Evaluators; var evaluateParams = new EvaluateParams(eventsPerStream, newData, context); for (int i = 0; i < adders.Length; i++) { var value = evaluators[i].Evaluate(evaluateParams).AsInt(); adders[i].Add(dateTime, factor * value); } }
public ExprTimePeriodEvalDeltaNonConstMsec(ExprTimePeriodImpl exprTimePeriod) { this._exprTimePeriod = exprTimePeriod; }
public ExprTimePeriodEvalDeltaNonConstDateTimeAdd(TimeZoneInfo timeZone, ExprTimePeriodImpl parent) { _parent = parent; _dateTime = new DateTimeEx(DateTimeOffsetHelper.Now(timeZone), timeZone); }
public ExprTimePeriodEvalDeltaNonConstDtxAdd(TimeZoneInfo timeZone, ExprTimePeriodImpl parent) { _parent = parent; _dateTime = new DateTimeEx(DateTimeOffsetHelper.Now(timeZone), timeZone); _indexMicroseconds = ExprTimePeriodUtil.FindIndexMicroseconds(parent.Adders); }