public class EmbeddedOptionSchedule
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CALL_NOTICE_PERIOD_DEFAULT |
| Constructor and Description |
|---|
EmbeddedOptionSchedule(EmbeddedOptionSchedule eosOther)
Construct a Deep Copy EOS from another EOS
|
EmbeddedOptionSchedule(int[] aiDate,
double[] adblFactor,
boolean bIsPut,
int iNoticePeriod,
boolean bFixToFloatOnExercise,
double dblFixToFloatExerciseDate,
java.lang.String strFloatIndex,
double dblFixToFloatSpread)
Construct the EOS from the array of dates and factors
|
| Modifier and Type | Method and Description |
|---|---|
static EmbeddedOptionSchedule |
CreateFromDateFactorSet(java.lang.String strDates,
java.lang.String strFactors,
int iNoticePeriod,
boolean bIsPut,
boolean bIsDiscrete,
int iScheduleStart,
boolean bFixToFloatOnExercise,
double dblFixToFloatExerciseDate,
java.lang.String strFloatIndex,
double dblFixToFloatSpread)
Create the EOS from the dates/factors string arrays
|
int[] |
dates()
Get the array of dates
|
int |
exerciseNoticePeriod()
Retrieve the exercise notice period
|
double |
factor(int iIndex)
Get the specific indexed factor
|
double[] |
factors()
Get the array of factors
|
static EmbeddedOptionSchedule |
FromAmerican(int iValDate,
int[] aiDate,
double[] adblFactor,
boolean bIsPut,
int iNoticePeriod,
boolean bFixToFloatOnExercise,
double dblFixToFloatExerciseDate,
java.lang.String strFloatIndex,
double dblFixToFloatSpread)
Create the discretized American EOS schedule from the array of dates and factors
|
boolean |
isFixToFloatOnExercise()
Return whether the component is fix to float on exercise
|
boolean |
isPut()
Whether the component is putable or callable
|
public static final int CALL_NOTICE_PERIOD_DEFAULT
public EmbeddedOptionSchedule(int[] aiDate,
double[] adblFactor,
boolean bIsPut,
int iNoticePeriod,
boolean bFixToFloatOnExercise,
double dblFixToFloatExerciseDate,
java.lang.String strFloatIndex,
double dblFixToFloatSpread)
throws java.lang.Exception
aiDate - Array of datesadblFactor - Matched Array of FactorsbIsPut - True (Put), False (Call)iNoticePeriod - Exercise Notice PeriodbFixToFloatOnExercise - True - component becomes a floater on calldblFixToFloatExerciseDate - Date at which the fix to float conversion happensstrFloatIndex - Floater Rate IndexdblFixToFloatSpread - Floater Spreadjava.lang.Exception - Thrown if inputs are invalidpublic EmbeddedOptionSchedule(EmbeddedOptionSchedule eosOther)
eosOther - The Other EOSpublic static final EmbeddedOptionSchedule CreateFromDateFactorSet(java.lang.String strDates, java.lang.String strFactors, int iNoticePeriod, boolean bIsPut, boolean bIsDiscrete, int iScheduleStart, boolean bFixToFloatOnExercise, double dblFixToFloatExerciseDate, java.lang.String strFloatIndex, double dblFixToFloatSpread)
strDates - String representing the date arraystrFactors - String representing the factor arrayiNoticePeriod - Exercise Notice PeriodbIsPut - True (Put), False (Call)bIsDiscrete - True (Discrete), False (Continuous)iScheduleStart - Schedule start DatebFixToFloatOnExercise - True - component becomes a floater on calldblFixToFloatExerciseDate - Date at which the fix to float conversion happensstrFloatIndex - Floater Rate IndexdblFixToFloatSpread - Floater Spreadpublic static final EmbeddedOptionSchedule FromAmerican(int iValDate, int[] aiDate, double[] adblFactor, boolean bIsPut, int iNoticePeriod, boolean bFixToFloatOnExercise, double dblFixToFloatExerciseDate, java.lang.String strFloatIndex, double dblFixToFloatSpread)
iValDate - Valuation Date - date to which the component is assumed to not have been exercisedaiDate - Array of datesadblFactor - Matched Array of FactorsbIsPut - True (Put), False (Call)iNoticePeriod - Exercise Notice PeriodbFixToFloatOnExercise - True - component becomes a floater on calldblFixToFloatExerciseDate - Date at which the fix to float conversion happensstrFloatIndex - Floater Rate IndexdblFixToFloatSpread - Floater Spreadpublic boolean isPut()
public int[] dates()
public double[] factors()
public double factor(int iIndex)
iIndex - Factor indexpublic int exerciseNoticePeriod()
public boolean isFixToFloatOnExercise()