Examples of InEvent


Examples of org.wso2.siddhi.core.event.in.InEvent

              }
             
              // in order to find second derivative, we need at least 3 events.
              if (newEventList.size() > 2) {

                InEvent firstDerivative1 =
                                           gradient(inEvents[0],
                                                    inEvents[(newEventList.size() / 2) - 1],
                                                    null)[0];
                InEvent firstDerivative2 =
                                           gradient(inEvents[newEventList.size() / 2],
                                                    inEvents[newEventList.size() - 1],
                                                    null)[0];
                InEvent[] secondDerivative =
                                             gradient(firstDerivative1,
View Full Code Here

Examples of org.wso2.siddhi.core.event.in.InEvent

    }
    log.debug("Gradient: " + gradient + " Last val: " + lastVal +
              " First val: " + firstVal + " Time Gap: " + tGap );
    Object[] data = firstInEvent.getData().clone();
    data[subjectedAttrIndex] = gradient;
    InEvent gradientEvent =
                            new InEvent(firstInEvent.getStreamId(), t1+((t2-t1)/2),
                                        data);
    InEvent[] output = new InEvent[1];
    output[0] = gradientEvent;
    return output;
  }
View Full Code Here

Examples of org.wso2.siddhi.core.event.in.InEvent

                Iterator it = timeStampMap.entrySet().iterator();
               
                while ( it.hasNext() ) {
                    Map.Entry pair = (Map.Entry)it.next();
                    long currentTime = System.currentTimeMillis();
                    InEvent event = (InEvent)pair.getValue();

                    if ((currentTime - event.getTimeStamp()) / MILI_TO_MINUTE > TIME_OUT) {
                        log.info("Member Inactive : " + pair.getKey() + " : " + "for " + TIME_OUT + " seconds");
                        it.remove();
                        log.debug("Inactive member : " + pair.getKey() + " : " + "for " + TIME_OUT + " seconds");
                        nextProcessor.process(event);
                    }
View Full Code Here

Examples of org.wso2.siddhi.core.event.in.InEvent

    }
    log.debug("Gradient: " + gradient + " Last val: " + lastVal +
              " First val: " + firstVal + " Time Gap: " + tGap );
    Object[] data = firstInEvent.getData().clone();
    data[subjectedAttrIndex] = gradient;
    InEvent gradientEvent =
                            new InEvent(firstInEvent.getStreamId(), (t1+t2)/2,
                                        data);
    InEvent[] output = new InEvent[1];
    output[0] = gradientEvent;
    return output;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.