Code Monkey home page Code Monkey logo

tratt-api's People

Contributors

alexander-poulikakos avatar magnus-ramstedt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tratt-api's Issues

Change signature of method: EventIterator.hasNext()

On the EventIterator interface I would like to change the method signature, from:

    boolean hasNext();

To:

    boolean hasNext() throws InterruptedException;

and remove this from the EventIterator interface:

 extends Iterator<Event>,

This is a possible breaking change. any comments?

Checking all possible sequence matches

Hi,

Lets say this is my event stream:

(User1, event1)
(User1, event2)
(User1, event1)
(User2, event2)

I want to check that any user that has event1 has also event2 (any user can have many such groups). Also, I don't want to specify a specific user, I want to check them all. I tried creating a sequence that matches this:

{
    "comment": "First tdl",
	
	
	
    "sequences": [{
        "type": "CONTAINER",
        "name": "BattleStarted has BattleEnded",
        "sequenceMaxTime": "PT3M",
        "checkPoints": [
        {
            "eventType": "1",
            "set": ["BS_userId=userId", "BS_battleId=p_battleId", "BS_timestamp=timestamp"]
        }, 
        {
            "eventType": "2",
            "match": "userId==BS_userId && p_battleId==BS_battleId",
            "validate": "timestamp > BS_timestamp"
        }]
    }]
}

The problem is checkpoint only matches first event it finds, so in this case, only first 2 events will be checked, failing to report that User1 does not have event2 for all event1. Is it possible for a sequence to search through all possible matches?

Welcome to the tratt-api!

Use this forum for any communication with the tratt community, such as questions, pull-requests, help-to-get-started, design issues, bug reports etc.

/Alex

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.