return value.getName().equals("a"); }).times(2).allowCombinations().followedBy("end1").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
return value.getName().equals("a"); }).times(2, 3).allowCombinations().followedBy("end1").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
return value.getName().equals("a"); }).timesOrMore(2).allowCombinations().followedBy("end1").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
return value.getName().equals("a"); }).times(2).allowCombinations().followedBy("end1").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
return value.getName().equals("a"); }).times(2).allowCombinations().followedBy("end1").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
return value.getName().equals("a"); }).timesOrMore(2).allowCombinations().followedBy("end1").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
return value.getName().equals("a"); }).times(2).allowCombinations().optional().followedBy("end1").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
return value.getName().equals("a"); }).times(2, 3).allowCombinations().optional().followedBy("end1").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
return value.getName().equals("a"); }).times(2).allowCombinations().optional().followedBy("end1").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
return value.getName().equals("a"); }).oneOrMore().allowCombinations().followedByAny("end1").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
return value.getName().equals("a"); }).times(2).allowCombinations().followedBy("end1").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
return value.getName().equals("a"); }).timesOrMore(2).allowCombinations().followedBy("end1").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
return value.getName().equals("a"); }).oneOrMore().optional().allowCombinations().next("end").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
return value.getName().equals("a"); }).times(0, 2).allowCombinations().followedBy("end1").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
return value.getName().equals("a"); }).times(1, 3).allowCombinations().followedBy("end1").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
.followedBy("middle").subtype(SubEvent.class).where(new MySubeventIterCondition()).oneOrMore().allowCombinations() .followedBy("end").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 7056763917392056548L;
private List<List<Event>> testIterativeWithLoopingStarting(boolean eager) throws Exception { List<StreamRecord<Event>> inputEvents = new ArrayList<>(); inputEvents.add(new StreamRecord<>(startEvent1, 1L)); inputEvents.add(new StreamRecord<>(startEvent2, 2L)); inputEvents.add(new StreamRecord<>(startEvent3, 3L)); inputEvents.add(new StreamRecord<>(endEvent, 4L)); // for now, a pattern inherits its continuity property from the followedBy() or next(), and the default // behavior (which is the one applied in the case that the pattern graph starts with such a pattern) // of a looping pattern is with relaxed continuity (as in followedBy). Pattern<Event, ?> pattern = eager ? Pattern.<Event>begin("start").where(new MyEventIterCondition()).oneOrMore().optional() .followedBy("end").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 7056763917392056548L; @Override public boolean filter(Event value) throws Exception { return value.getName().equals("end"); } }) : Pattern.<Event>begin("start").where(new MyEventIterCondition()).oneOrMore().allowCombinations().optional() .followedBy("end").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 7056763917392056548L; @Override public boolean filter(Event value) throws Exception { return value.getName().equals("end"); } }); NFA<Event> nfa = compile(pattern, false); return feedNFA(inputEvents, nfa); }
return value.getName().equals("a"); }).oneOrMore().allowCombinations().followedBy("end").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
return value.getName().equals("a"); }).oneOrMore().allowCombinations().optional().followedBy("end1").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;
return value.getName().equals("a"); }).oneOrMore().allowCombinations().followedBy("end1").where(new SimpleCondition<Event>() { private static final long serialVersionUID = 5726188262756267490L;