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()
FitDataBase
getFitScope
in interface FitDataBase
public String getFitGroup()
FitDataBase
getFitGroup
in interface FitDataBase
public void setFitGroup(String fitGroup)
fitGroup
- grouping of the data snapshot.public DBDateTime getTimestamp()
FitDataUnderlying
getTimestamp
in interface FitDataUnderlying
public void setTimestamp(DBDateTime timestamp)
timestamp
- timestamp of the data snapshot.public long getUnderlyingId()
FitDataUnderlying
getUnderlyingId
in interface FitDataUnderlying
public void setUnderlyingId(long underlyingId)
underlyingId
- underlying id.public String getUnderlyingSym()
FitDataUnderlying
getUnderlyingSym
in interface FitDataUnderlying
public void setUnderlyingSym(String usym)
usym
- underlying symbol.public String getUnderlyingType()
FitDataUnderlying
getUnderlyingType
in interface FitDataUnderlying
public void setUnderlyingType(String underlyingType)
underlyingType
- type of underlying (e.g. "Equity", "Future").public long[] getOptionIds()
FitDataOptionChain
getOptionIds
in interface FitDataOptionChain
public void setOptionIds(long[] optionIds)
optionIds
- array of ids associated with the options.public String[] getOptionSyms()
FitDataOptionChain
getOptionSyms
in interface FitDataOptionChain
public void setOptionSyms(String[] optionSyms)
optionSyms
- array of symbols associated with the options.public String[] getOptionRoots()
FitDataOptionChain
getOptionRoots
in interface FitDataOptionChain
public void setOptionRoots(String[] optionRoots)
optionRoots
- array of root symbols associated with the options.public DBDateTime[] getOptionExpirations()
FitDataOptionChain
getOptionExpirations
in interface FitDataOptionChain
public void setOptionExpirations(DBDateTime[] optionExpirations)
optionExpirations
- expirations associated with the option prices.public double[] getOptionStrikes()
FitDataOptionChain
getOptionStrikes
in interface FitDataOptionChain
public void setOptionStrikes(double[] optionStrikes)
optionStrikes
- array of strikes associated with the option prices.public String[] getOptionPayoffTypes()
FitDataOptionChain
getOptionPayoffTypes
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()
FitDataOptionChain
getOptionExerciseTypes
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()
FitDataOptionChain
getOptionSettlementTypes
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()
FitDataRates
getDivExDates
in interface FitDataRates
public void setDivExDates(DBDateTime[] divExDates)
divExDates
- array of dividend ex-dates for the underlying security.public double[] getDivCashAmounts()
FitDataRates
getDivCashAmounts
in interface FitDataRates
public void setDivCashAmounts(double[] divCashAmounts)
divCashAmounts
- array of cash dividend values for the underlying security.public double[] getDivProportionalAmounts()
FitDataRates
getDivProportionalAmounts
in interface FitDataRates
public void setDivProportionalAmounts(double[] divProportionalAmounts)
divProportionalAmounts
- array of proportinoal dividend values for the underlying security.public DBDateTime[] getYieldCurveDates()
FitDataRates
getYieldCurveDates
in interface FitDataRates
public void setYieldCurveDates(DBDateTime[] yieldCurveDates)
yieldCurveDates
- array of dates defining the yield curve.public double[] getYieldCurveRates()
FitDataRates
getYieldCurveRates
in interface FitDataRates
public void setYieldCurveRates(double[] yieldCurveRates)
yieldCurveRates
- array of rates defining the yield curve.public DBDateTime[] getCarryCurveDates()
FitDataRates
getCarryCurveDates
in interface FitDataRates
public void setCarryCurveDates(DBDateTime[] carryCurveDates)
carryCurveDates
- array of dates defining the cost-of-carry curve.public double[] getCarryCurveRates()
FitDataRates
getCarryCurveRates
in interface FitDataRates
public void setCarryCurveRates(double[] carryCurveRates)
carryCurveRates
- array of rates defining the cost-of-carry curve.public double[] getCarryCurveErrors()
FitDataRates
getCarryCurveErrors
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)