|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.exponto.jstock.LogTradingData
Contains all data for a particular stock for a single day. Because Rectangle2D does not understand negative heigth it uses (logx, -, -, logh) where logx is the largest value of open and close.
Constructor Summary | |
LogTradingData()
Creates new LogChartData If real data is added later, be sure to update the status field |
|
LogTradingData(char s)
Creates new LogChartData with only the status field set. |
|
LogTradingData(Date d,
double o,
double h,
double l,
double c,
long v,
char s)
Creates new LogChartData with complete dataset |
Method Summary | |
java.lang.Object |
clone()
Note that clone() doesn't clone the date, so don't change unless intend to change it for all others using that date. |
void |
computeLogValues()
Computes the logaritmic values that normally is stored with the data. |
double |
getClose()
|
Date |
getDate()
|
char |
getStatus()
|
long |
getVolume()
|
boolean |
isTraded()
Check if the LogTradingData is traded. |
boolean |
isUsable()
Check if the LogTradingData should be used in further processing. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LogTradingData()
public LogTradingData(Date d, double o, double h, double l, double c, long v, char s)
public LogTradingData(char s)
s
- status fieldMethod Detail |
public void computeLogValues()
public java.lang.Object clone()
public boolean isUsable()
public boolean isTraded()
public double getClose()
public Date getDate()
public char getStatus()
public long getVolume()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |