|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.exponto.jstock.indicators.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.
Field Summary | |
double |
close
|
Date |
day
|
double |
high
|
double |
logDiff
|
double |
logHigh
|
double |
logLow
|
double |
logX
|
double |
low
|
double |
open
|
char |
status
|
long |
volume
|
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()
|
int |
hashCode()
|
boolean |
isTraded()
Check if the LogTradingData is traded. |
boolean |
isUsable()
Check if the LogTradingData should be used in further processing. |
void |
setDate(Date d)
|
void |
setStatus()
|
void |
setStatus(char status)
|
java.lang.String |
toString()
|
java.lang.String |
toString2()
|
java.lang.String |
toString3()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public double logHigh
public double logLow
public double logDiff
public double open
public double close
public double high
public double low
public double logX
public long volume
public char status
public Date day
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 void setDate(Date d)
public char getStatus()
public void setStatus()
public long getVolume()
public java.lang.String toString()
public java.lang.String toString2()
public java.lang.String toString3()
public boolean equals(java.lang.Object o)
public int hashCode()
public void setStatus(char status)
status
- The status to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |