|
|||||||||||
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. |
boolean |
equals(java.lang.Object o)
|
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. |
void |
setStatus()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, 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 void setStatus()
public long getVolume()
public java.lang.String toString()
public boolean equals(java.lang.Object o)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |