|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.mytrendtimer.trendtimer.Line
public class Line
Represent line/rows of the quote file.
| Field Summary | |
|---|---|
QuoteSourceFile |
quoteSrcFile
|
| Constructor Summary | |
|---|---|
Line(java.util.Date dateArg,
float quoteArg,
int fileLineNumberArg,
QuoteSourceFile quoteSrcFileArg)
Main constructor used to store quote file content in line objects. |
|
| Method Summary | |
|---|---|
java.util.Date |
getDate()
Getter to retrieve the date in the line |
int |
getDay()
Getter to retrieve the day (1-31) |
float |
getDiffOsc()
Getter |
int |
getFileLineNumber()
Getter to retrieve the line number (useless for now) |
int |
getMonth()
Getter to retrieve the month (1-12) |
float |
getPercChange()
Getter |
float |
getQuote()
Getter to retrieve the quote in the line |
float |
getSignalStrength()
Getter |
int |
getYear()
Getter to retrieve the year (1990-9999) |
void |
setDiffOsc(float diffOSCArg)
Setter |
void |
setPercChange(float percChangeArg)
Setter |
void |
setSignalStrength(float signalStrengthArg)
Setter |
java.lang.String |
toCsv()
Display line objects in comma separated format |
java.lang.String |
toString()
Display line objects |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public QuoteSourceFile quoteSrcFile
| Constructor Detail |
|---|
public Line(java.util.Date dateArg,
float quoteArg,
int fileLineNumberArg,
QuoteSourceFile quoteSrcFileArg)
throws java.lang.Exception
dateArg - Date of the quotequoteArg - The quote itselffileLineNumberArg - The fileLineNumber is just used as an id (useless for for the time beeing)quoteSrcFileArg - The quote files that produced the line objects (error handling)
java.lang.Exception| Method Detail |
|---|
public java.util.Date getDate()
public int getDay()
public float getDiffOsc()
public int getFileLineNumber()
public int getMonth()
public float getPercChange()
public float getQuote()
public float getSignalStrength()
public int getYear()
public void setDiffOsc(float diffOSCArg)
diffOSCArg - The diffOSC to set.public void setPercChange(float percChangeArg)
percChangeArg - The percChange to set.public void setSignalStrength(float signalStrengthArg)
signalStrengthArg - The signalStrength to set.public java.lang.String toCsv()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||