public class PortfolioHistory
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
PortfolioHistory()
No args constructor for use in serialization
|
PortfolioHistory(java.util.ArrayList<java.lang.Long> timestamp,
java.util.ArrayList<java.lang.Double> equity,
java.util.ArrayList<java.lang.Double> profitLoss,
java.util.ArrayList<java.lang.Double> profitLossPct,
java.lang.Double baseValue,
PortfolioTimeFrame timeframe) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
java.lang.Double |
getBaseValue()
Basis in dollar of the profit loss calculation
|
java.util.ArrayList<java.lang.Double> |
getEquity()
Equity value of the account in dollar amount as of the end of each time window
|
java.util.ArrayList<java.lang.Double> |
getProfitLoss()
Profit/loss in dollar from the base value
|
java.util.ArrayList<java.lang.Double> |
getProfitLossPct()
Profit/loss in percentage from the base value
|
PortfolioTimeFrame |
getTimeframe()
Time window size of each data element
|
java.util.ArrayList<java.lang.Long> |
getTimestamp()
Time of each data element, left-labeled (the beginning of time window)
|
int |
hashCode() |
void |
setBaseValue(java.lang.Double baseValue)
Basis in dollar of the profit loss calculation
|
void |
setEquity(java.util.ArrayList<java.lang.Double> equity)
Equity value of the account in dollar amount as of the end of each time window
|
void |
setProfitLoss(java.util.ArrayList<java.lang.Double> profitLoss)
Profit/loss in dollar from the base value
|
void |
setProfitLossPct(java.util.ArrayList<java.lang.Double> profitLossPct)
Profit/loss in percentage from the base value
|
void |
setTimeframe(PortfolioTimeFrame timeframe)
Time window size of each data element
|
void |
setTimestamp(java.util.ArrayList<java.lang.Long> timestamp)
Time of each data element, left-labeled (the beginning of time window)
|
java.lang.String |
toString() |
public PortfolioHistory()
public PortfolioHistory(java.util.ArrayList<java.lang.Long> timestamp,
java.util.ArrayList<java.lang.Double> equity,
java.util.ArrayList<java.lang.Double> profitLoss,
java.util.ArrayList<java.lang.Double> profitLossPct,
java.lang.Double baseValue,
PortfolioTimeFrame timeframe)
timeframe - baseValue - profitLossPct - profitLoss - equity - timestamp - public java.util.ArrayList<java.lang.Long> getTimestamp()
public void setTimestamp(java.util.ArrayList<java.lang.Long> timestamp)
public java.util.ArrayList<java.lang.Double> getEquity()
public void setEquity(java.util.ArrayList<java.lang.Double> equity)
public java.util.ArrayList<java.lang.Double> getProfitLoss()
public void setProfitLoss(java.util.ArrayList<java.lang.Double> profitLoss)
public java.util.ArrayList<java.lang.Double> getProfitLossPct()
public void setProfitLossPct(java.util.ArrayList<java.lang.Double> profitLossPct)
public java.lang.Double getBaseValue()
public void setBaseValue(java.lang.Double baseValue)
public PortfolioTimeFrame getTimeframe()
public void setTimeframe(PortfolioTimeFrame timeframe)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object