public abstract class CoreFitData extends Object implements FitDataBase, 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 |
getFitGroup()
Gets the grouping of the data snapshot.
|
FitScope |
getFitScope()
Gets the scope indicating the extent of this data (e.g.
|
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[] |
getOptionRoots()
Gets an array of root symbols associated with the options.
|
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 |
setFitGroup(String fitGroup)
Set the grouping of the data snapshot.
|
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 |
setOptionRoots(String[] optionRoots)
Sets an array of root symbols associated with the options.
|
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 FitScope getFitScope()
FitDataBasegetFitScope in interface FitDataBasepublic String getFitGroup()
FitDataBasegetFitGroup in interface FitDataBasepublic void setFitGroup(String fitGroup)
fitGroup - grouping of the data snapshot.public DBDateTime getTimestamp()
FitDataUnderlyinggetTimestamp in interface FitDataUnderlyingpublic void setTimestamp(DBDateTime timestamp)
timestamp - timestamp of the data snapshot.public long getUnderlyingId()
FitDataUnderlyinggetUnderlyingId in interface FitDataUnderlyingpublic void setUnderlyingId(long underlyingId)
underlyingId - underlying id.public String getUnderlyingSym()
FitDataUnderlyinggetUnderlyingSym in interface FitDataUnderlyingpublic void setUnderlyingSym(String usym)
usym - underlying symbol.public String getUnderlyingType()
FitDataUnderlyinggetUnderlyingType in interface FitDataUnderlyingpublic void setUnderlyingType(String underlyingType)
underlyingType - type of underlying (e.g. "Equity", "Future").public long[] getOptionIds()
FitDataOptionChaingetOptionIds in interface FitDataOptionChainpublic void setOptionIds(long[] optionIds)
optionIds - array of ids associated with the options.public String[] getOptionSyms()
FitDataOptionChaingetOptionSyms in interface FitDataOptionChainpublic void setOptionSyms(String[] optionSyms)
optionSyms - array of symbols associated with the options.public String[] getOptionRoots()
FitDataOptionChaingetOptionRoots in interface FitDataOptionChainpublic void setOptionRoots(String[] optionRoots)
optionRoots - array of root symbols associated with the options.public DBDateTime[] getOptionExpirations()
FitDataOptionChaingetOptionExpirations in interface FitDataOptionChainpublic void setOptionExpirations(DBDateTime[] optionExpirations)
optionExpirations - expirations associated with the option prices.public double[] getOptionStrikes()
FitDataOptionChaingetOptionStrikes in interface FitDataOptionChainpublic void setOptionStrikes(double[] optionStrikes)
optionStrikes - array of strikes associated with the option prices.public String[] getOptionPayoffTypes()
FitDataOptionChaingetOptionPayoffTypes in interface FitDataOptionChainpublic 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 FitDataOptionChainpublic 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 FitDataOptionChainpublic 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 FitDataRatespublic void setDivExDates(DBDateTime[] divExDates)
divExDates - array of dividend ex-dates for the underlying security.public double[] getDivCashAmounts()
FitDataRatesgetDivCashAmounts in interface FitDataRatespublic void setDivCashAmounts(double[] divCashAmounts)
divCashAmounts - array of cash dividend values for the underlying security.public double[] getDivProportionalAmounts()
FitDataRatesgetDivProportionalAmounts in interface FitDataRatespublic void setDivProportionalAmounts(double[] divProportionalAmounts)
divProportionalAmounts - array of proportinoal dividend values for the underlying security.public DBDateTime[] getYieldCurveDates()
FitDataRatesgetYieldCurveDates in interface FitDataRatespublic void setYieldCurveDates(DBDateTime[] yieldCurveDates)
yieldCurveDates - array of dates defining the yield curve.public double[] getYieldCurveRates()
FitDataRatesgetYieldCurveRates in interface FitDataRatespublic void setYieldCurveRates(double[] yieldCurveRates)
yieldCurveRates - array of rates defining the yield curve.public DBDateTime[] getCarryCurveDates()
FitDataRatesgetCarryCurveDates in interface FitDataRatespublic void setCarryCurveDates(DBDateTime[] carryCurveDates)
carryCurveDates - array of dates defining the cost-of-carry curve.public double[] getCarryCurveRates()
FitDataRatesgetCarryCurveRates in interface FitDataRatespublic void setCarryCurveRates(double[] carryCurveRates)
carryCurveRates - array of rates defining the cost-of-carry curve.public double[] getCarryCurveErrors()
FitDataRatesgetCarryCurveErrors in interface FitDataRatespublic void setCarryCurveErrors(double[] carryCurveErrors)
carryCurveErrors - array of rate errors defining the cost-of-carry curve.protected String toStringContents()
protected static double[][] clone2d(double[][] vals)