org.jquantlib.instruments
Class DiscretizedDiscountBond
- java.lang.Object
-
- org.jquantlib.instruments.DiscretizedAsset
-
- org.jquantlib.instruments.DiscretizedDiscountBond
-
public class DiscretizedDiscountBond extends DiscretizedAsset
Useful discretized discount bond asset
-
-
Constructor Summary
Constructors Constructor and Description DiscretizedDiscountBond()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidinitialize(Lattice lt, double t)java.util.List<java.lang.Double>mandatoryTimes()This method returns the times at which the numerical method should stop while rolling back the asset.voidpartialRollback(double to)voidpostAdjustValues()This method will be invoked after rollback and after any other asset had their chance to look at the values.voidpreAdjustValues()This method will be invoked after rollback and before any other asset (i.e., an option on this one) has any chance to look at the values.doublepresentValue()voidreset(int size)This method should initialize the asset values to an Array of the given size and with values depending on the particular asset.voidrollback(double to)-
Methods inherited from class org.jquantlib.instruments.DiscretizedAsset
adjustValues, method, setTime, setValues, time, values
-
-
-
-
Method Detail
-
initialize
public void initialize(Lattice lt, double t)
- Overrides:
initializein classDiscretizedAsset
-
mandatoryTimes
public java.util.List<java.lang.Double> mandatoryTimes()
Description copied from class:DiscretizedAssetThis method returns the times at which the numerical method should stop while rolling back the asset. Typical examples include payment times, exercise times and such.- Specified by:
mandatoryTimesin classDiscretizedAsset
-
partialRollback
public void partialRollback(double to)
- Overrides:
partialRollbackin classDiscretizedAsset
-
postAdjustValues
public void postAdjustValues()
Description copied from class:DiscretizedAssetThis method will be invoked after rollback and after any other asset had their chance to look at the values. For instance, payments happening at the present time (and therefore not included in an option to be exercised at this time) will be added here.This method is not virtual; derived classes must override the protected postAdjustValuesImpl() method instead.
- Overrides:
postAdjustValuesin classDiscretizedAsset
-
preAdjustValues
public void preAdjustValues()
Description copied from class:DiscretizedAssetThis method will be invoked after rollback and before any other asset (i.e., an option on this one) has any chance to look at the values. For instance, payments happening at times already spanned by the rollback will be added here.This method is not virtual; derived classes must override the protected preAdjustValuesImpl() method instead.
- Overrides:
preAdjustValuesin classDiscretizedAsset
-
presentValue
public double presentValue()
- Overrides:
presentValuein classDiscretizedAsset
-
reset
public void reset(int size)
Description copied from class:DiscretizedAssetThis method should initialize the asset values to an Array of the given size and with values depending on the particular asset.- Specified by:
resetin classDiscretizedAsset
-
rollback
public void rollback(double to)
- Overrides:
rollbackin classDiscretizedAsset
-
-
DataMelt 3.0 © DataMelt by jWork.ORG