|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umass.cs.sase.stream.StockEvent
public class StockEvent
This class represents the stock event.
Constructor Summary | |
---|---|
StockEvent(int id,
int ts,
int symbol,
int price,
int volume)
Constructor |
|
StockEvent(int id,
int ts,
int symbol,
int price,
int volume,
java.lang.String type)
Another constructor |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones the event |
int |
getAttributeByName(java.lang.String attributeName)
Returns the attribute value for the given attribute |
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 |
getPrice()
|
int |
getSymbol()
|
int |
getTimestamp()
|
int |
getVolume()
|
void |
setEventType(java.lang.String eventType)
|
void |
setId(int id)
|
void |
setPrice(int price)
|
void |
setSymbol(int symbol)
|
void |
setTimestamp(int timestamp)
|
void |
setVolume(int volume)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StockEvent(int id, int ts, int symbol, int price, int volume)
public StockEvent(int id, int ts, int symbol, int price, int volume, java.lang.String type)
id
- ts
- symbol
- price
- volume
- type
- Method Detail |
---|
public int getAttributeByName(java.lang.String attributeName)
getAttributeByName
in interface Event
attributeName
- The name of the attribute to be returned
public java.lang.String getEventType()
getEventType
in interface Event
public int getId()
getId
in interface Event
public int getTimestamp()
getTimestamp
in interface Event
public java.lang.String toString()
toString
in interface Event
toString
in class java.lang.Object
public int getSymbol()
public void setSymbol(int symbol)
symbol
- the symbol to setpublic int getPrice()
public void setPrice(int price)
price
- the price to setpublic int getVolume()
public void setVolume(int volume)
volume
- the volume to setpublic void setId(int id)
setId
in interface Event
id
- the id to setpublic void setTimestamp(int timestamp)
timestamp
- the timestamp to setpublic void setEventType(java.lang.String eventType)
eventType
- the eventType to setpublic java.lang.Object clone()
clone
in interface Event
clone
in class java.lang.Object
public double getAttributeByNameDouble(java.lang.String attributeName)
Event
getAttributeByNameDouble
in interface Event
attributeName
- the required attribute name
public java.lang.String getAttributeByNameString(java.lang.String attributeName)
Event
getAttributeByNameString
in interface Event
attributeName
- the required attribute name
public int getAttributeValueType(java.lang.String attributeName)
Event
getAttributeValueType
in interface Event
attributeName
- the required attribute name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |