|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.mytrendtimer.trendtimer.Operation
public class Operation
Represent the buy/sell operations created.
| Constructor Summary | |
|---|---|
Operation(java.util.Date dateArg,
int quantityArg,
float costPriceArg,
float deltaOpPercArg,
int deltaOpDaysArg)
Main constructor used to instanciate the buy/sell operations generated. |
|
| Method Summary | |
|---|---|
float |
getCostPrice()
Getter getCostPrice |
java.util.Date |
getDate()
Getter getDate |
int |
getDeltaOpDays()
Getter getDeltaOpDays |
float |
getDeltaOpPerc()
Getter getDeltaOpPerc |
int |
getQuantity()
Getter getQuantity |
java.lang.String |
toCSV()
Display operation objects in comma separated format. |
java.lang.String |
toString()
Display operation objects |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Operation(java.util.Date dateArg,
int quantityArg,
float costPriceArg,
float deltaOpPercArg,
int deltaOpDaysArg)
dateArg - Date of the generated operationquantityArg - 1 is for buy operations, -1 for sell operations (used for the CSV file generation.. dirty)costPriceArg - The theoritical price of the generated operationdeltaOpPercArg - The percentage difference (gain or loss) based on the previous
operation.deltaOpDaysArg - The difference in days (datediff like) based on the previous
operation.| Method Detail |
|---|
public float getCostPrice()
public java.util.Date getDate()
public int getDeltaOpDays()
public float getDeltaOpPerc()
public int getQuantity()
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 | |||||||