public abstract class CoreFitData extends Object implements FitDataUnderlying, FitDataOptionChain, FitDataRates, Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
CoreFitData()
Create a new, empty data set.
|
protected |
CoreFitData(CoreFitData data)
Copy the data.
|
| Modifier and Type | Method and Description |
|---|---|
protected static double[][] |
clone2d(double[][] vals) |
DBDateTime[] |
getCarryCurveDates()
Gets an array of dates defining the cost-of-carry curve.
|
double[] |
getCarryCurveErrors()
Gets an array of rate errors defining the cost-of-carry curve.
|
double[] |
getCarryCurveRates()
Gets an array of rates defining the cost-of-carry curve.
|
double[] |
getDivCashAmounts()
Gets an array of cash dividend values for the underlying security.
|
DBDateTime[] |
getDivExDates()
Gets an array of dividend ex-dates for the underlying security.
|
double[] |
getDivProportionalAmounts()
Gets an array of proportional dividend values for the underlying security.
|
String[] |
getOptionExerciseTypes()
Gets the type of option exercise (e.g.
|
DBDateTime[] |
getOptionExpirations()
Gets an array of expirations associated with the option prices.
|
long[] |
getOptionIds()
Gets an array of ids associated with the options.
|
String[] |
getOptionPayoffTypes()
Gets the type of option payoff (e.g.
|
String[] |
getOptionSettlementTypes()
Gets the type of option settlement (e.g.
|
double[] |
getOptionStrikes()
Gets an array of strikes associated with the option prices.
|
String[] |
getOptionSyms()
Gets an array of symbols associated with the options.
|
DBDateTime |
getTimestamp()
Gets the timestamp of the data snapshot.
|
long |
getUnderlyingId()
Gets the underlying id.
|
String |
getUnderlyingSym()
Gets the underlying symbol.
|
String |
getUnderlyingType()
Gets the type of underlying (e.g.
|
DBDateTime[] |
getYieldCurveDates()
Gets an array of dates defining the yield curve.
|
double[] |
getYieldCurveRates()
Gets an array of rates defining the yield curve.
|
void |
setCarryCurveDates(DBDateTime[] carryCurveDates)
Sets an array of dates defining the cost-of-carry curve.
|
void |
setCarryCurveErrors(double[] carryCurveErrors)
Sets an array of rate errors defining the cost-of-carry curve.
|
void |
setCarryCurveRates(double[] carryCurveRates)
Sets an array of rates defining the cost-of-carry curve.
|
void |
setDivCashAmounts(double[] divCashAmounts)
Sets an array of cash dividend values for the underlying security.
|
void |
setDivExDates(DBDateTime[] divExDates)
Sets an array of dividend ex-dates for the underlying security.
|
void |
setDivProportionalAmounts(double[] divProportionalAmounts)
Sets an array of proportional dividend values for the underlying security.
|
void |
setOptionExerciseTypes(String[] optionExerciseTypes)
Sets the type of option exercise (e.g.
|
void |
setOptionExpirations(DBDateTime[] optionExpirations)
Sets the expirations associated with the option prices.
|
void |
setOptionIds(long[] optionIds)
Sets an array of ids associated with the options.
|
void |
setOptionPayoffTypes(String[] optionPayoffTypes)
Sets the type of option payoff (e.g.
|
void |
setOptionSettlementTypes(String[] optionSettlementTypes)
Sets the type of option settlement (e.g.
|
void |
setOptionStrikes(double[] optionStrikes)
Sets an array of strikes associated with the option prices.
|
void |
setOptionSyms(String[] optionSyms)
Sets an array of symbols associated with the options.
|
void |
setTimestamp(DBDateTime timestamp)
Set the timestamp of the data snapshot.
|
void |
setUnderlyingId(long underlyingId)
Set the underlying id.
|
void |
setUnderlyingSym(String usym)
Set the underlying symbol.
|
void |
setUnderlyingType(String underlyingType)
Sets the type of underlying (e.g.
|
void |
setYieldCurveDates(DBDateTime[] yieldCurveDates)
Sets an array of dates defining the yield curve.
|
void |
setYieldCurveRates(double[] yieldCurveRates)
Sets an array of rates defining the yield curve.
|
String |
toString() |
protected String |
toStringContents() |
protected CoreFitData()
protected CoreFitData(CoreFitData data)
data - data to copy.public DBDateTime getTimestamp()
FitDataUnderlyinggetTimestamp in interface FitDataUnderlying
public void setTimestamp(DBDateTime timestamp)
timestamp - timestamp of the data snapshot.public long getUnderlyingId()
FitDataUnderlyinggetUnderlyingId in interface FitDataUnderlying
public void setUnderlyingId(long underlyingId)
underlyingId - underlying id.public String getUnderlyingSym()
FitDataUnderlyinggetUnderlyingSym in interface FitDataUnderlying
public void setUnderlyingSym(String usym)
usym - underlying symbol.public String getUnderlyingType()
FitDataUnderlyinggetUnderlyingType in interface FitDataUnderlying
public void setUnderlyingType(String underlyingType)
underlyingType - type of underlying (e.g. "Equity", "Future").public long[] getOptionIds()
FitDataOptionChaingetOptionIds in interface FitDataOptionChain
public void setOptionIds(long[] optionIds)
optionIds - array of ids associated with the options.public String[] getOptionSyms()
FitDataOptionChaingetOptionSyms in interface FitDataOptionChain
public void setOptionSyms(String[] optionSyms)
optionSyms - array of symbols associated with the options.public DBDateTime[] getOptionExpirations()
FitDataOptionChaingetOptionExpirations in interface FitDataOptionChain
public void setOptionExpirations(DBDateTime[] optionExpirations)
optionExpirations - expirations associated with the option prices.public double[] getOptionStrikes()
FitDataOptionChaingetOptionStrikes in interface FitDataOptionChain
public void setOptionStrikes(double[] optionStrikes)
optionStrikes - array of strikes associated with the option prices.public String[] getOptionPayoffTypes()
FitDataOptionChaingetOptionPayoffTypes in interface FitDataOptionChain
public void setOptionPayoffTypes(String[] optionPayoffTypes)
optionPayoffTypes - type of option payoff (e.g. "Put", "Call", etc.) associated with the option prices.public String[] getOptionExerciseTypes()
FitDataOptionChaingetOptionExerciseTypes in interface FitDataOptionChain
public void setOptionExerciseTypes(String[] optionExerciseTypes)
optionExerciseTypes - type of option exercise (e.g. "American", "European", etc.) associated with the option prices.public String[] getOptionSettlementTypes()
FitDataOptionChaingetOptionSettlementTypes in interface FitDataOptionChain
public void setOptionSettlementTypes(String[] optionSettlementTypes)
optionSettlementTypes - type of option settlement (e.g. "Cash", "Underlying", etc.) associated with the option prices.public DBDateTime[] getDivExDates()
FitDataRatesgetDivExDates in interface FitDataRates
public void setDivExDates(DBDateTime[] divExDates)
divExDates - array of dividend ex-dates for the underlying security.public double[] getDivCashAmounts()
FitDataRatesgetDivCashAmounts in interface FitDataRates
public void setDivCashAmounts(double[] divCashAmounts)
divCashAmounts - array of cash dividend values for the underlying security.public double[] getDivProportionalAmounts()
FitDataRatesgetDivProportionalAmounts in interface FitDataRates
public void setDivProportionalAmounts(double[] divProportionalAmounts)
divProportionalAmounts - array of proportinoal dividend values for the underlying security.public DBDateTime[] getYieldCurveDates()
FitDataRatesgetYieldCurveDates in interface FitDataRates
public void setYieldCurveDates(DBDateTime[] yieldCurveDates)
yieldCurveDates - array of dates defining the yield curve.public double[] getYieldCurveRates()
FitDataRatesgetYieldCurveRates in interface FitDataRates
public void setYieldCurveRates(double[] yieldCurveRates)
yieldCurveRates - array of rates defining the yield curve.public DBDateTime[] getCarryCurveDates()
FitDataRatesgetCarryCurveDates in interface FitDataRates
public void setCarryCurveDates(DBDateTime[] carryCurveDates)
carryCurveDates - array of dates defining the cost-of-carry curve.public double[] getCarryCurveRates()
FitDataRatesgetCarryCurveRates in interface FitDataRates
public void setCarryCurveRates(double[] carryCurveRates)
carryCurveRates - array of rates defining the cost-of-carry curve.public double[] getCarryCurveErrors()
FitDataRatesgetCarryCurveErrors in interface FitDataRates
public void setCarryCurveErrors(double[] carryCurveErrors)
carryCurveErrors - array of rate errors defining the cost-of-carry curve.protected String toStringContents()
protected static double[][] clone2d(double[][] vals)