edu.umass.cs.sase.stream
Interface Event

All Known Implementing Classes:
ABCEvent, StockEvent

public interface Event

This is the interface for events that would be processed by the engine.

Author:
haopeng

Method Summary
 java.lang.Object clone()
           
 int getAttributeByName(java.lang.String attributeName)
          Returns the value of the attribute with the required name
 double getAttributeByNameDouble(java.lang.String attributeName)
          Returns the value of the attribute with the required name
 java.lang.String getAttributeByNameString(java.lang.String attributeName)
          Returns the value of the attribute with the required name
 int getAttributeValueType(java.lang.String attributeName)
          Returns the value type of the attribute
 java.lang.String getEventType()
           
 int getId()
           
 int getTimestamp()
           
 void setId(int Id)
           
 java.lang.String toString()
           
 

Method Detail

getAttributeByName

int getAttributeByName(java.lang.String attributeName)
Returns the value of the attribute with the required name

Parameters:
attributeName - the required attribute name
Returns:
the value of the attribute, integer

getAttributeByNameDouble

double getAttributeByNameDouble(java.lang.String attributeName)
Returns the value of the attribute with the required name

Parameters:
attributeName - the required attribute name
Returns:
the value of the attribute, double

getAttributeByNameString

java.lang.String getAttributeByNameString(java.lang.String attributeName)
Returns the value of the attribute with the required name

Parameters:
attributeName - the required attribute name
Returns:
the value of the attribute, string

getAttributeValueType

int getAttributeValueType(java.lang.String attributeName)
Returns the value type of the attribute

Parameters:
attributeName - the required attribute name
Returns:
the code representing the type, 0 for integer, 1 for double, 2 for string

getId

int getId()
Returns:
the event id

setId

void setId(int Id)
Parameters:
Id - the event id to set

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
self description

getTimestamp

int getTimestamp()
Returns:
the timestamp of the event

getEventType

java.lang.String getEventType()
Returns:
the event type

clone

java.lang.Object clone()
Returns:
the cloned event