private void ProcessAction(long currentTime, String timeInSec, TimeAction value, bool isAssert, bool isExpectNullRemoveStream, bool allowAnyOrder) { IDictionary <int, StepDesc> assertions = _expected.Assertions.Get(currentTime); // Assert step 0 which is the timer event result then send events and assert remaining AssertStep(timeInSec, 0, assertions, _expected.Properties, isAssert, isExpectNullRemoveStream, allowAnyOrder); for (int step = 1; step < 10; step++) { if (value.Events.Count >= step) { EventSendDesc sendEvent = value.Events[step - 1]; Log.Info(".execute At " + timeInSec + " sending event: " + sendEvent.Event + " " + sendEvent.EventDesc); _engine.EPRuntime.SendEvent(sendEvent.Event); if (Log.IsDebugEnabled) { Log.Debug( "{0,5} {1,5}{2,8} {3,7:F1} {4}", "", sendEvent.Event.Symbol, sendEvent.Event.Volume, sendEvent.Event.Price, sendEvent.EventDesc); } } AssertStep(timeInSec, step, assertions, _expected.Properties, isAssert, isExpectNullRemoveStream, allowAnyOrder); } }
private static void Add(long time, String desc) { TimeAction timeAction = actions.Get(time); if (timeAction == null) { timeAction = new TimeAction(); timeAction.ActionDesc = desc; actions.Put(time, timeAction); } }
private static void Add(long time, SupportMarketDataBean theEvent, String eventDesc) { TimeAction timeAction = actions.Get(time); if (timeAction == null) { timeAction = new TimeAction(); actions.Put(time, timeAction); } timeAction.Add(theEvent, eventDesc); }