|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dxfeed.event.candle.Candle
@EventType public class Candle
Field Summary | |
---|---|
static int |
MAX_SEQUENCE
|
Constructor Summary | |
---|---|
Candle()
|
|
Candle(CandleSymbol eventSymbol)
|
Method Summary | |
---|---|
double |
getClose()
|
long |
getCount()
|
long |
getEventId()
Returns identifier of this event. |
CandleSymbol |
getEventSymbol()
|
double |
getHigh()
|
double |
getLow()
|
double |
getOpen()
|
int |
getSequence()
Returns sequence number of this event to distinguish events that has the same time . |
long |
getTime()
Returns timestamp of original event in milliseconds. |
long |
getVolume()
|
double |
getVWAP()
|
void |
setClose(double close)
|
void |
setCount(long count)
|
void |
setEventId(long eventId)
Changes identifier for this event. |
void |
setEventSymbol(CandleSymbol eventSymbol)
|
void |
setHigh(double high)
|
void |
setLow(double low)
|
void |
setOpen(double open)
|
void |
setSequence(int sequence)
Changes getSequence() sequence number} of this event. |
void |
setTime(long time)
Changes time spate of event in milliseconds. |
void |
setVolume(long volume)
|
void |
setVWAP(double vwap)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAX_SEQUENCE
Constructor Detail |
---|
public Candle()
public Candle(CandleSymbol eventSymbol)
Method Detail |
---|
public CandleSymbol getEventSymbol()
public void setEventSymbol(CandleSymbol eventSymbol)
public long getEventId()
time
and sequence
.
Changing either time or sequence changes event identifier.
getEventId
in interface TimeSeriesEvent
public void setEventId(long eventId)
time
and sequence
,
invocation of this method changes time and sequence.
eventId
- the event identifier.getEventId()
public long getTime()
getTime
in interface TimeSeriesEvent
public void setTime(long time)
time
- timestamp in milliseconds.getTime()
public int getSequence()
time
. This sequence number does not have to be unique and
does not need to be sequential. Sequence can range from 0 to MAX_SEQUENCE
.
public void setSequence(int sequence)
getSequence()
sequence number} of this event.
sequence
- the sequence.
java.lang.IllegalArgumentException
- if sequence is below zero or above MAX_SEQUENCE
.getSequence()
public long getCount()
public void setCount(long count)
public double getOpen()
public void setOpen(double open)
public double getHigh()
public void setHigh(double high)
public double getLow()
public void setLow(double low)
public double getClose()
public void setClose(double close)
public long getVolume()
public void setVolume(long volume)
public double getVWAP()
public void setVWAP(double vwap)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |