Package org.drip.historical.sensitivity
Class TenorDurationNodeMetrics
java.lang.Object
org.drip.historical.sensitivity.TenorDurationNodeMetrics
public class TenorDurationNodeMetrics
extends java.lang.Object
TenorDurationNodeMetrics holds the KRD Duration Nodes and associated Metrics.
- Module = Computational Core Module
- Library = Computation Support
- Project = Historical State Processing Utilities
- Package = Product Horizon Change Tenor Sensitivity
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description TenorDurationNodeMetrics(JulianDate dtSnap)TenorDurationNodeMetrics Constructor -
Method Summary
Modifier and Type Method Description booleanaddKRDNode(java.lang.String strKRDNode, double dblKRDValue)Insert a KRD Nodejava.lang.Stringc1(java.lang.String strKey)Retrieve the Custom C^1 Entry corresponding to the Specified KeyJulianDatedate(java.lang.String strKey)Retrieve the Custom Date Entry corresponding to the Specified KeyJulianDatedateSnap()Retrieve the KRD Date SnapCaseInsensitiveTreeMap<java.lang.Double>krdMap()Retrieve the KRD Mapdoubler1(java.lang.String strKey)Retrieve the Custom R^1 Entry corresponding to the Specified KeybooleansetC1(java.lang.String strKey, java.lang.String strC1)Set the Custom C^1 Entry corresponding to the Specified KeybooleansetDate(java.lang.String strKey, JulianDate dtCustom)Set the Custom Date Entry corresponding to the Specified KeybooleansetR1(java.lang.String strKey, double dblR1)Set the Custom R^1 Entry corresponding to the Specified KeyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TenorDurationNodeMetrics
TenorDurationNodeMetrics Constructor- Parameters:
dtSnap- The Date Snap- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
-
Method Details
-
dateSnap
Retrieve the KRD Date Snap- Returns:
- The KRD Date Snap
-
addKRDNode
public boolean addKRDNode(java.lang.String strKRDNode, double dblKRDValue)Insert a KRD Node- Parameters:
strKRDNode- KRD Node KeydblKRDValue- KRD Node Value- Returns:
- TRUE - The KRD Entry successfully inserted
-
krdMap
Retrieve the KRD Map- Returns:
- The KRD Map
-
setDate
Set the Custom Date Entry corresponding to the Specified Key- Parameters:
strKey- The KeydtCustom- The Custom Date Entry- Returns:
- TRUE - Custom Date successfully set
-
date
Retrieve the Custom Date Entry corresponding to the Specified Key- Parameters:
strKey- The Key- Returns:
- The Custom Date Entry
-
setC1
public boolean setC1(java.lang.String strKey, java.lang.String strC1)Set the Custom C^1 Entry corresponding to the Specified Key- Parameters:
strKey- The KeystrC1- The Custom C^1 Entry- Returns:
- TRUE - Custom C^1 Entry successfully set
-
c1
public java.lang.String c1(java.lang.String strKey)Retrieve the Custom C^1 Entry corresponding to the Specified Key- Parameters:
strKey- The Key- Returns:
- The Custom C^1 Entry
-
setR1
public boolean setR1(java.lang.String strKey, double dblR1)Set the Custom R^1 Entry corresponding to the Specified Key- Parameters:
strKey- The KeydblR1- The Custom R^1 Entry- Returns:
- TRUE - Custom Number successfully set
-
r1
public double r1(java.lang.String strKey) throws java.lang.ExceptionRetrieve the Custom R^1 Entry corresponding to the Specified Key- Parameters:
strKey- The Key- Returns:
- The Custom R^1 Entry
- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-