Package org.drip.param.definition
Class ScenarioMarketParams
java.lang.Object
org.drip.param.definition.ScenarioMarketParams
- Direct Known Subclasses:
CurveSurfaceScenarioContainer
public abstract class ScenarioMarketParams
extends java.lang.Object
ScenarioMarketParams is the place holder for the comprehensive suite of the market set of curves
for the given date. It exports the following functionality:
- Add/remove/retrieve scenario discount curve
- Add/remove/retrieve scenario forward curve
- Add/remove/retrieve scenario zero curve
- Add/remove/retrieve scenario credit curve
- Add/remove/retrieve scenario recovery curve
- Add/remove/retrieve scenario FXForward curve
- Add/remove/retrieve scenario FXBasis curve
- Add/remove/retrieve scenario fixings
- Add/remove/retrieve Treasury/component quotes
- Retrieve scenario Market Parameters
- Retrieve map of flat rates/credit/recovery Market Parameters
- Retrieve double map of tenor rates/credit/recovery Market Parameters
- Retrieve rates/credit scenario generator
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Product Cash Flow, Valuation, Market, Pricing, and Quoting Parameters
- Package = Latent State Quantification Metrics Tweak
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description ScenarioMarketParams()
-
Method Summary
Modifier and Type Method Description abstract boolean
addComponentQuote(java.lang.String strComponentID, ProductQuote cqComponent)
Add the component quoteabstract boolean
addComponentQuote(CaseInsensitiveTreeMap<ProductQuote> mapComponentQuote)
Add the full map of component quotesabstract boolean
addFixing(JulianDate dtFix, LatentStateLabel lsl, double dblFixing)
Add the fixing for the given Latent State Label and the given dateabstract boolean
addScenarioCreditCurve(java.lang.String strName, CreditCurveScenarioContainer scc)
Add the named scenario CCabstract boolean
addScenarioDiscountCurve(java.lang.String strName, DiscountCurveScenarioContainer dcsc)
Add the named scenario DCabstract boolean
addScenarioMarketParams(java.lang.String strScenarioName, CurveSurfaceQuoteContainer csqs)
Add the named scenario Market Parametersabstract boolean
addTSYQuote(java.lang.String strBenchmark, ProductQuote pqTSY)
Add the named Treasury Quoteabstract ProductQuote
componentQuote(java.lang.String strComponentID)
Retrieve the quote for the given componentabstract CaseInsensitiveTreeMap<ProductQuote>
componentQuotes()
Retrieve the full map of component quotesabstract CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>
creditFlatBump(BasketProduct bp, boolean bBump)
Get the Map of credit Flat Bumped Curves for the given Basket Productabstract CaseInsensitiveTreeMap<CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>>
creditTenorBump(BasketProduct bp, boolean bBump)
Get the double map of credit Tenor bumped curves for each credit curve for the given Basket Productabstract CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>
creditTenorMarketParams(Component comp, boolean bBumpUp)
Get the map of tenor credit bumped Market Parameters corresponding to the componentabstract LatentStateFixingsContainer
fixings()
Retrieve the Latent State Fixings Containerabstract CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>
fundingFlatBump(BasketProduct bp, boolean bBump)
Get the Map of Funding Parallel Bumped Curves for the given Basket Productabstract CaseInsensitiveTreeMap<CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>>
fundingTenorBump(BasketProduct bp, boolean bBump)
Get the Double Map of Funding Tenor Bumped Curves for each Funding Curve for the given Basket Productabstract CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>
fundingTenorMarketParams(Component comp, boolean bBumpUp)
Get the Map of Funding Tenor Bumped Market Parameters corresponding to the Componentabstract CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>
recoveryFlatBump(BasketProduct bp, boolean bBump)
Get the map of Recovery Flat Bumped Curves for the given Basket Productabstract boolean
removeComponentQuote(java.lang.String strComponentID)
Remove the component quoteabstract boolean
removeFixing(JulianDate dtFix, LatentStateLabel lsl)
Remove the fixing corresponding to the given date and the Latent State Labelabstract boolean
removeScenarioCreditCurve(java.lang.String strName)
Removes the named scenario CCabstract boolean
removeScenarioDiscountCurve(java.lang.String strName)
Remove the named scenario DCabstract boolean
removeTSYQuote(java.lang.String strBenchmark)
Remove the named Treasury Quoteabstract CaseInsensitiveTreeMap<CreditCurveScenarioContainer>
scenarioCreditCurveMap()
Retrieve the Map of ScenarioCreditCurve Instancesabstract CaseInsensitiveTreeMap<DiscountCurveScenarioContainer>
scenarioDiscountCurveMap()
Retrieve the Map of DiscountCurveScenarioContainer Instancesabstract CurveSurfaceQuoteContainer
scenarioMarketParams(java.lang.String strScenarioName)
Retrieve the Named Scenario Market Parametersabstract CurveSurfaceQuoteContainer
scenarioMarketParams(BasketProduct bp, java.lang.String strScenario)
Get the Market Parameters for the given basket product and the scenarioabstract CurveSurfaceQuoteContainer
scenarioMarketParams(Component comp, java.lang.String strScenario)
Get the Market Parameters corresponding to the component and the scenarioabstract boolean
setTSYQuotes(CaseInsensitiveTreeMap<ProductQuote> mapCQTSY)
Set the full set of named Treasury Quote Mapabstract ProductQuote
tsyQuote(java.lang.String strBenchmark)
Get the named Treasury Quote Map corresponding to the desired benchmarkabstract CaseInsensitiveTreeMap<ProductQuote>
tsyQuotes()
Get the full set of named Treasury Quote MapMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ScenarioMarketParams
public ScenarioMarketParams()
-
-
Method Details
-
addScenarioDiscountCurve
public abstract boolean addScenarioDiscountCurve(java.lang.String strName, DiscountCurveScenarioContainer dcsc)Add the named scenario DC- Parameters:
strName
- Namedcsc
- Corresponding DiscountCurveScenarioContainer instance- Returns:
- Added successfully (true)
-
removeScenarioDiscountCurve
public abstract boolean removeScenarioDiscountCurve(java.lang.String strName)Remove the named scenario DC- Parameters:
strName
- Name- Returns:
- Removed successfully (true)
-
addScenarioCreditCurve
public abstract boolean addScenarioCreditCurve(java.lang.String strName, CreditCurveScenarioContainer scc)Add the named scenario CC- Parameters:
strName
- Namescc
- ScenarioCreditCurve Instance- Returns:
- Added successfully (true)
-
removeScenarioCreditCurve
public abstract boolean removeScenarioCreditCurve(java.lang.String strName)Removes the named scenario CC- Parameters:
strName
- Name- Returns:
- Removed successfully (true)
-
addTSYQuote
Add the named Treasury Quote- Parameters:
strBenchmark
- NamepqTSY
- Treasury Quote- Returns:
- Added successfully (true)
-
removeTSYQuote
public abstract boolean removeTSYQuote(java.lang.String strBenchmark)Remove the named Treasury Quote- Parameters:
strBenchmark
- Name- Returns:
- Removed successfully (true)
-
setTSYQuotes
Set the full set of named Treasury Quote Map- Parameters:
mapCQTSY
- Named Treasury Quote Map- Returns:
- Set successfully (true)
-
tsyQuote
Get the named Treasury Quote Map corresponding to the desired benchmark- Parameters:
strBenchmark
- The treasury benchmark- Returns:
- Treasury Quote
-
tsyQuotes
Get the full set of named Treasury Quote Map- Returns:
- Named Treasury Quote Map
-
addFixing
Add the fixing for the given Latent State Label and the given date- Parameters:
dtFix
- The fixing datelsl
- The Latent State LabeldblFixing
- The fixing- Returns:
- Added successfully (true)
-
removeFixing
Remove the fixing corresponding to the given date and the Latent State Label- Parameters:
dtFix
- Fixing datelsl
- The Latent State label- Returns:
- Successfully removed (true)
-
fixings
Retrieve the Latent State Fixings Container- Returns:
- The Latent State Fixings Container
-
addComponentQuote
public abstract boolean addComponentQuote(java.lang.String strComponentID, ProductQuote cqComponent)Add the component quote- Parameters:
strComponentID
- Component IDcqComponent
- Component Quote- Returns:
- Added successfully (true)
-
removeComponentQuote
public abstract boolean removeComponentQuote(java.lang.String strComponentID)Remove the component quote- Parameters:
strComponentID
- Component ID- Returns:
- Removed successfully (true)
-
addComponentQuote
Add the full map of component quotes- Parameters:
mapComponentQuote
- Map of Component Quotes- Returns:
- Added successfully (true)
-
componentQuote
Retrieve the quote for the given component- Parameters:
strComponentID
- Component ID- Returns:
- ComponentQuote
-
componentQuotes
Retrieve the full map of component quotes- Returns:
- The Map of Component Quotes
-
addScenarioMarketParams
public abstract boolean addScenarioMarketParams(java.lang.String strScenarioName, CurveSurfaceQuoteContainer csqs)Add the named scenario Market Parameters- Parameters:
strScenarioName
- Scenario Namecsqs
- Market Parameters- Returns:
- True - Added successfully
-
scenarioMarketParams
Retrieve the Named Scenario Market Parameters- Parameters:
strScenarioName
- Scenario Name- Returns:
- Named Market Parameters
-
scenarioMarketParams
public abstract CurveSurfaceQuoteContainer scenarioMarketParams(Component comp, java.lang.String strScenario)Get the Market Parameters corresponding to the component and the scenario- Parameters:
comp
- ComponentstrScenario
- Scenario- Returns:
- The Market Parameters
-
fundingTenorMarketParams
public abstract CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer> fundingTenorMarketParams(Component comp, boolean bBumpUp)Get the Map of Funding Tenor Bumped Market Parameters corresponding to the Component- Parameters:
comp
- ComponentbBumpUp
- TRUE - Bump Up- Returns:
- Map of the Funding Tenor Bumped Market Parameters
-
creditTenorMarketParams
public abstract CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer> creditTenorMarketParams(Component comp, boolean bBumpUp)Get the map of tenor credit bumped Market Parameters corresponding to the component- Parameters:
comp
- ComponentbBumpUp
- Bump up (True)- Returns:
- Map of the tenor credit bumped Market Parameters
-
scenarioMarketParams
public abstract CurveSurfaceQuoteContainer scenarioMarketParams(BasketProduct bp, java.lang.String strScenario)Get the Market Parameters for the given basket product and the scenario- Parameters:
bp
- BasketProductstrScenario
- Named Scenario- Returns:
- Market Parameters Instance
-
fundingFlatBump
public abstract CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer> fundingFlatBump(BasketProduct bp, boolean bBump)Get the Map of Funding Parallel Bumped Curves for the given Basket Product- Parameters:
bp
- BasketProductbBump
- True (Bump Up), False (Bump Down)- Returns:
- Map of the Funding Parallel Bumped curves
-
creditFlatBump
public abstract CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer> creditFlatBump(BasketProduct bp, boolean bBump)Get the Map of credit Flat Bumped Curves for the given Basket Product- Parameters:
bp
- BasketProductbBump
- True (Bump Up), False (Bump Down)- Returns:
- Map of the Credit Flat Bumped Curves
-
recoveryFlatBump
public abstract CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer> recoveryFlatBump(BasketProduct bp, boolean bBump)Get the map of Recovery Flat Bumped Curves for the given Basket Product- Parameters:
bp
- BasketProductbBump
- True (Bump Up), False (Bump Down)- Returns:
- Map of the Recovery Flat Bumped Curves
-
fundingTenorBump
public abstract CaseInsensitiveTreeMap<CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>> fundingTenorBump(BasketProduct bp, boolean bBump)Get the Double Map of Funding Tenor Bumped Curves for each Funding Curve for the given Basket Product- Parameters:
bp
- BasketProductbBump
- True (Bump Up), False (Bump Down)- Returns:
- Double Map of the Funding Tenor Bumped Market Parameters
-
creditTenorBump
public abstract CaseInsensitiveTreeMap<CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>> creditTenorBump(BasketProduct bp, boolean bBump)Get the double map of credit Tenor bumped curves for each credit curve for the given Basket Product- Parameters:
bp
- BasketProductbBump
- True (Bump Up), False (Bump Down)- Returns:
- Double Map of the credit Tenor bumped Market Parameters
-
scenarioDiscountCurveMap
Retrieve the Map of DiscountCurveScenarioContainer Instances- Returns:
- Map of DiscountCurveScenarioContainer Instances
-
scenarioCreditCurveMap
Retrieve the Map of ScenarioCreditCurve Instances- Returns:
- Map of ScenarioCreditCurve Instances
-