|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
net.sourceforge.eclipsetrader.core.db.PersistentObject
net.sourceforge.eclipsetrader.core.db.Bar
Price bar data.
Constructor Summary | |
---|---|
Bar()
Constructs an empty bar object. |
|
Bar(Bar bar)
Constructs a bar object with the data from the specified object. |
|
Bar(java.util.Date date,
double open,
double high,
double low,
double close,
long volume)
Constructs a bar object with the specified data. |
|
Bar(double open,
double high,
double low,
double close)
Constructs a bar object with the specified data. |
|
Bar(double open,
double high,
double low,
double close,
long volume)
Constructs a bar object with the specified data. |
|
Bar(java.lang.Integer id)
Constructs an empty bar object with the specified id. |
Method Summary | |
---|---|
double |
getClose()
Returns the price at bar's close. |
java.util.Date |
getDate()
Returns the bar's date and time. |
double |
getHigh()
Returns the highest price. |
double |
getLow()
Returns the lowest price. |
double |
getOpen()
|
long |
getVolume()
|
void |
setClose(double close)
|
void |
setDate(java.util.Date date)
|
void |
setHigh(double high)
|
void |
setLow(double low)
|
void |
setOpen(double open)
|
void |
setVolume(long volume)
|
void |
update(Bar bar)
Updates this object with the data from the specified object. |
void |
update(double open,
double high,
double low,
double close,
long volume)
Updates this object with the specified data. |
Methods inherited from class net.sourceforge.eclipsetrader.core.db.PersistentObject |
---|
clearChanged, equals, getData, getId, getRepository, setChanged, setData, setId, setRepository |
Methods inherited from class java.util.Observable |
---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Bar()
public Bar(java.lang.Integer id)
id
- the unique idpublic Bar(Bar bar)
bar
- the object to copy the data from.public Bar(double open, double high, double low, double close)
open
- the price at open.high
- the highest price.low
- the lowest price.close
- the price at close.public Bar(double open, double high, double low, double close, long volume)
open
- the price at open.high
- the highest price.low
- the lowest price.close
- the price at close.volume
- the exchange volume.public Bar(java.util.Date date, double open, double high, double low, double close, long volume)
date
- the date that this object is referring to.open
- the price at open.high
- the highest price.low
- the lowest price.close
- the price at close.volume
- the exchange volume.Method Detail |
public double getClose()
public void setClose(double close)
public java.util.Date getDate()
public void setDate(java.util.Date date)
public double getHigh()
public void setHigh(double high)
public double getLow()
public void setLow(double low)
public double getOpen()
public void setOpen(double open)
public long getVolume()
public void setVolume(long volume)
public void update(double open, double high, double low, double close, long volume)
open
- the price at open.high
- the highest price.low
- the lowest price.close
- the price at close.volume
- the exchange volume.public void update(Bar bar)
bar
- the object to update the data from.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |