edu.umass.cs.sase.engine
Interface ValueVectorElement

All Known Implementing Classes:
ValueVectorElementAvg, ValueVectorElementCount, ValueVectorElementMax, ValueVectorElementMin, ValueVectorElementSet, ValueVectorElementSum

public interface ValueVectorElement

This is an interface for the value vector of the computation state. If you add any new class implementing this interface, please also add the reference point in the following places: -edu.umass.cs.sase.engine.Run.initializeValueVector(Event e)

Author:
haopeng

Method Summary
 java.lang.String getAttribute()
           
 int getNeededByState()
           
 int getStateNumber()
           
 java.lang.String getType()
           
 int getValue()
          Gets the current value
 void initializeValue(Event e)
          initializes the value by an eventg
 void setAttribute(java.lang.String a)
           
 void setNeededByState(int n)
           
 void updateValue(Event e)
          Updates the value
 

Method Detail

getValue

int getValue()
Gets the current value

Returns:
the current value

updateValue

void updateValue(Event e)
Updates the value

Parameters:
e - the newly selected event

getStateNumber

int getStateNumber()
Returns:
the state number of the value

getType

java.lang.String getType()
Returns:
the opearation type, avg, max, min, set

getAttribute

java.lang.String getAttribute()
Returns:
the attribute name

setAttribute

void setAttribute(java.lang.String a)
Parameters:
a - the attribute name to set

initializeValue

void initializeValue(Event e)
initializes the value by an eventg

Parameters:
e -

getNeededByState

int getNeededByState()

setNeededByState

void setNeededByState(int n)