com.mytrendtimer.trendtimer
Class PeriodicPerf

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

public class PeriodicPerf
extends java.lang.Object

Represent the Periodic (months/years) performance calculation

Version:
v0.99.83
Author:
FRM

Constructor Summary
PeriodicPerf(int monthArg, int yearArg, float perfArg)
          Main constructor used to instanciate PeriodicPerf objects generated.
 
Method Summary
 int getMonth()
          Return the month of the performance (1=jan, 2 = feb etc...)
 float getPerf()
          Return the performance in human readable format 5% = 5.0
 float getPerfPerc()
          Return the performance in a chainable format : +5% is 1.05
 int getYear()
          Return the year of the performance (2000, 2001 etc...)
 java.lang.String getYearStr()
          Return the year of the performance as a string ("2000", "2001" etc...)
 java.lang.String toCSV()
          Display periodic performance objects in a comma separated format
 java.lang.String toString()
          Display periodic performance objects
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PeriodicPerf

public PeriodicPerf(int monthArg,
                    int yearArg,
                    float perfArg)
Main constructor used to instanciate PeriodicPerf objects generated.

Parameters:
monthArg - Month of the Performance (1=Jan, 2=Feb etc...)
yearArg - Year of the Performance (2000, 2001 etc...)
perfArg - The Performance itself, in human readable format 5% = 5.0)
Method Detail

getMonth

public int getMonth()
Return the month of the performance (1=jan, 2 = feb etc...)

Returns:
month

getPerf

public float getPerf()
Return the performance in human readable format 5% = 5.0

Returns:
perf

getPerfPerc

public float getPerfPerc()
Return the performance in a chainable format : +5% is 1.05

Returns:
1 + (perf / 100)

getYear

public int getYear()
Return the year of the performance (2000, 2001 etc...)

Returns:
year

getYearStr

public java.lang.String getYearStr()
Return the year of the performance as a string ("2000", "2001" etc...)

Returns:
yearStr

toCSV

public java.lang.String toCSV()
Display periodic performance objects in a comma separated format


toString

public java.lang.String toString()
Display periodic performance objects

Overrides:
toString in class java.lang.Object