edu.umass.cs.sase.engine
Class Match

java.lang.Object
  extended by edu.umass.cs.sase.engine.Match

public class Match
extends java.lang.Object

This class represents a match.

Author:
haopeng

Constructor Summary
Match()
          default constructor
Match(java.util.ArrayList<Event> eventList, NFA nfa)
          Constructor, used by the sharing engine
Match(Run r, NFA nfa, EventBuffer buffer)
          Constructor, used by the default engine
 
Method Summary
 Event[] getEvents()
           
 NFA getNfa()
           
 void setEvents(Event[] events)
           
 void setNfa(NFA nfa)
           
 java.lang.String toString()
          outputs the description
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Match

public Match()
default constructor


Match

public Match(Run r,
             NFA nfa,
             EventBuffer buffer)
Constructor, used by the default engine

Parameters:
r - the input run
nfa - the nfa for the query
buffer - the event buffer

Match

public Match(java.util.ArrayList<Event> eventList,
             NFA nfa)
Constructor, used by the sharing engine

Parameters:
eventList - the events for this match
nfa - the nfa for the query
Method Detail

toString

public java.lang.String toString()
outputs the description

Overrides:
toString in class java.lang.Object

getEvents

public Event[] getEvents()
Returns:
the events

setEvents

public void setEvents(Event[] events)
Parameters:
events - the events to set

getNfa

public NFA getNfa()
Returns:
the nfa

setNfa

public void setNfa(NFA nfa)
Parameters:
nfa - the nfa to set