com.mytrendtimer.trendtimer
Class Line

java.lang.Object
  extended by com.mytrendtimer.trendtimer.Line

public class Line
extends java.lang.Object

Represent line/rows of the quote file.

Version:
v0.99.81
Author:
FRM

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

quoteSrcFile

public QuoteSourceFile quoteSrcFile
Constructor Detail

Line

public Line(java.util.Date dateArg,
            float quoteArg,
            int fileLineNumberArg,
            QuoteSourceFile quoteSrcFileArg)
     throws java.lang.Exception
Main constructor used to store quote file content in line objects. We check that quote is positive and above zero.

Parameters:
dateArg - Date of the quote
quoteArg - The quote itself
fileLineNumberArg - 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)
Throws:
java.lang.Exception
Method Detail

getDate

public java.util.Date getDate()
Getter to retrieve the date in the line

Returns:
date

getDay

public int getDay()
Getter to retrieve the day (1-31)

Returns:
date.getDay the day (1-31)

getDiffOsc

public float getDiffOsc()
Getter

Returns:
diffOsc The diffOSC.

getFileLineNumber

public int getFileLineNumber()
Getter to retrieve the line number (useless for now)

Returns:
fileLineNumber

getMonth

public int getMonth()
Getter to retrieve the month (1-12)

Returns:
date.getMonth the month (1-12)

getPercChange

public float getPercChange()
Getter

Returns:
percChange The percChange to set.

getQuote

public float getQuote()
Getter to retrieve the quote in the line

Returns:
quote

getSignalStrength

public float getSignalStrength()
Getter

Returns:
The signalStrength to set.

getYear

public int getYear()
Getter to retrieve the year (1990-9999)

Returns:
date.getYear the year (1990-9999)

setDiffOsc

public void setDiffOsc(float diffOSCArg)
Setter

Parameters:
diffOSCArg - The diffOSC to set.

setPercChange

public void setPercChange(float percChangeArg)
Setter

Parameters:
percChangeArg - The percChange to set.

setSignalStrength

public void setSignalStrength(float signalStrengthArg)
Setter

Parameters:
signalStrengthArg - The signalStrength to set.

toCsv

public java.lang.String toCsv()
Display line objects in comma separated format


toString

public java.lang.String toString()
Display line objects

Overrides:
toString in class java.lang.Object
Returns:
showLine