public long? GetExpectedEndTime(ContextManagerRealization realization)
 {
     var agentInstanceContext = realization.AgentInstanceContextCreate;
     var current = agentInstanceContext.SchedulingService.Time;
     var msec = TimePeriodCompute.DeltaAdd(current, null, true, agentInstanceContext);
     return current + msec;
 }
Exemplo n.º 2
0
 public OutputConditionTimeFactory(
     bool hasVariable,
     TimePeriodCompute timePeriodCompute,
     bool isStartConditionOnCreation,
     int scheduleCallbackId)
 {
     IsVariable = hasVariable;
     TimePeriodCompute = timePeriodCompute;
     IsStartConditionOnCreation = isStartConditionOnCreation;
     ScheduleCallbackId = scheduleCallbackId;
 }
 public OutputConditionFactory MakeOutputConditionTime(
     bool hasVariable,
     TimePeriodCompute timePeriodCompute,
     bool isStartConditionOnCreation,
     int scheduleCallbackId)
 {
     return new OutputConditionTimeFactory(
         hasVariable,
         timePeriodCompute,
         isStartConditionOnCreation,
         scheduleCallbackId);
 }
 public OutputProcessViewDirectDistinctOrAfterFactory(
     OutputStrategyPostProcessFactory postProcessFactory,
     bool distinct,
     EventPropertyValueGetter distinctKeyGetter,
     TimePeriodCompute afterTimePeriod,
     int? afterConditionNumberOfEvents,
     EventType resultEventType)
     : base(postProcessFactory)
 {
     IsDistinct = distinct;
     DistinctKeyGetter = distinctKeyGetter;
     this.AfterTimePeriod = afterTimePeriod;
     this.AfterConditionNumberOfEvents = afterConditionNumberOfEvents;
 }
 public OutputConditionPolledTimeFactory(TimePeriodCompute timePeriodCompute)
 {
     this.timePeriodCompute = timePeriodCompute;
 }
 public long AbsExpiry(PatternAgentInstanceContext context)
 {
     var current = context.StatementContext.SchedulingService.Time;
     return current + TimePeriodCompute.DeltaAdd(current, null, true, context.AgentInstanceContext);
 }