|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.exponto.jstock.Series
com.exponto.jstock.LogDataSeries
Field Summary | |
java.util.ArrayList |
logStock
|
long |
maxVol
|
double |
yMax
|
double |
yMin
|
Fields inherited from class com.exponto.jstock.Series |
stepSize, tradedHighInPeriode, tradedLowInPeriode |
Constructor Summary | |
LogDataSeries()
Creates new empty daily LogDataseries |
|
LogDataSeries(boolean b)
Creates new LogDataseries with the isWeekly paramter set to b. |
|
LogDataSeries(double[] closingPrices)
FOR TEST PURPOSES ONLY!!! Used to easily create a logDataSeries for testing other functions |
Method Summary | |
java.lang.String |
debugInfo()
|
int |
findNumberInPeriode(Date d)
Finds the position in the current periode to the LogTradingData with a date that is equl to the date d. |
void |
findYScaleLimits(int height)
Should be possible to indicate what range the limits shall be calculated from Calculates values used to scale the y-axis of the graph. |
int |
getEndOfPeriode()
|
long |
getMaxVol()
|
LogTradingData |
getNextLTD()
Finds the next logTradingData in a series. |
int |
getNextWeekNumber()
Searches for the next week number related to the currentPosistion in the in a dataseries. |
LogTradingData |
getResult(int index)
Retrieves data for a day. |
int |
getStartOfPeriode()
|
double |
getYMax()
|
double |
getYMin()
|
boolean |
hasNextLTD()
Returns true if there is more elements in a series (window) false if the currentPosistion is at the last element. |
boolean |
isWeekly()
|
void |
moveToStartInCurrentPeriode()
|
int |
numberOfDaysInFirstWeek()
Finds the number of days of the first week present in this dataseries |
void |
resetCurrentPeriode()
|
void |
rotate()
Rotates the elements in this ArrayList so that the first becomes the last an vice versa. |
void |
setCurrentPeriode()
Sets the current periode to the whole series |
void |
setCurrentPeriode(int numberOfDays)
Sets the current periode to the latest date and numberOfDays back |
void |
setCurrentPeriode(int start,
int stop)
Sets the current periode |
void |
storeResult(LogTradingData lTD)
Stores data for a single day at the end of an arraylist. |
void |
storeResultWeekly(LogTradingData lTD)
|
Methods inherited from class com.exponto.jstock.Series |
base, findSignificant, roundToStepSize, stepSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public long maxVol
public double yMax
public double yMin
public java.util.ArrayList logStock
Constructor Detail |
public LogDataSeries()
public LogDataSeries(boolean b)
public LogDataSeries(double[] closingPrices)
closingPrices
- Method Detail |
public void storeResult(LogTradingData lTD)
lTD
- Trading data to storepublic void storeResultWeekly(LogTradingData lTD)
public void setCurrentPeriode()
public void setCurrentPeriode(int numberOfDays)
public void setCurrentPeriode(int start, int stop)
public void resetCurrentPeriode()
public void moveToStartInCurrentPeriode()
public LogTradingData getNextLTD()
public boolean hasNextLTD()
public int getEndOfPeriode()
public int getStartOfPeriode()
public boolean isWeekly()
public void findYScaleLimits(int height)
public LogTradingData getResult(int index)
index
- Index in the arraylist of the wanted day
public int findNumberInPeriode(Date d)
d
- Date to look for
public long getMaxVol()
public void rotate()
public int numberOfDaysInFirstWeek()
public int getNextWeekNumber()
public java.lang.String debugInfo()
public double getYMin()
public double getYMax()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |