Package org.drip.param.market
Class CurveSurfaceScenarioContainer
java.lang.Object
org.drip.param.definition.ScenarioMarketParams
org.drip.param.market.CurveSurfaceScenarioContainer
public class CurveSurfaceScenarioContainer extends ScenarioMarketParams
CurveSurfaceScenarioContainer extends MarketParams abstract class, and 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 = Curves Surfaces Quotes Fixings Container
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description CurveSurfaceScenarioContainer()
Construct an empty MarketParamsContainer instance -
Method Summary
Modifier and Type Method Description boolean
addComponentQuote(java.lang.String strComponentID, ProductQuote cqComponent)
Add the component quoteboolean
addComponentQuote(CaseInsensitiveTreeMap<ProductQuote> mapComponentQuote)
Add the full map of component quotesboolean
addFixing(JulianDate dtFix, LatentStateLabel lsl, double dblFixing)
Add the fixing for the given Latent State Label and the given dateboolean
addScenarioCreditCurve(java.lang.String strName, CreditCurveScenarioContainer scc)
Add the named scenario CCboolean
addScenarioDiscountCurve(java.lang.String strName, DiscountCurveScenarioContainer sdc)
Add the named scenario DCboolean
addScenarioMarketParams(java.lang.String strScenarioName, CurveSurfaceQuoteContainer csqs)
Add the named scenario Market Parametersboolean
addTSYQuote(java.lang.String strBenchmark, ProductQuote pqTSY)
Add the named Treasury QuoteProductQuote
componentQuote(java.lang.String strComponentID)
Retrieve the quote for the given componentCaseInsensitiveTreeMap<ProductQuote>
componentQuotes()
Retrieve the full map of component quotesCaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>
creditFlatBump(BasketProduct bp, boolean bBump)
Get the Map of credit Flat Bumped Curves for the given Basket ProductCaseInsensitiveTreeMap<CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>>
creditTenorBump(BasketProduct bp, boolean bBump)
Get the double map of credit Tenor bumped curves for each credit curve for the given Basket ProductCaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>
creditTenorMarketParams(Component comp, boolean bBumpUp)
Get the map of tenor credit bumped Market Parameters corresponding to the componentLatentStateFixingsContainer
fixings()
Retrieve the Latent State Fixings ContainerCaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>
fundingFlatBump(BasketProduct bp, boolean bBump)
Get the Map of Funding Parallel Bumped Curves for the given Basket ProductCaseInsensitiveTreeMap<CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>>
fundingTenorBump(BasketProduct bp, boolean bBump)
Get the Double Map of Funding Tenor Bumped Curves for each Funding Curve for the given Basket ProductCaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>
fundingTenorMarketParams(Component comp, boolean bBumpUp)
Get the Map of Funding Tenor Bumped Market Parameters corresponding to the ComponentCaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>
recoveryFlatBump(BasketProduct bp, boolean bBump)
Get the map of Recovery Flat Bumped Curves for the given Basket Productboolean
removeComponentQuote(java.lang.String strComponentID)
Remove the component quoteboolean
removeFixing(JulianDate dtFix, LatentStateLabel lsl)
Remove the fixing corresponding to the given date and the Latent State Labelboolean
removeScenarioCreditCurve(java.lang.String strName)
Removes the named scenario CCboolean
removeScenarioDiscountCurve(java.lang.String strName)
Remove the named scenario DCboolean
removeTSYQuote(java.lang.String strBenchmark)
Remove the named Treasury QuoteCaseInsensitiveTreeMap<CreditCurveScenarioContainer>
scenarioCreditCurveMap()
Retrieve the Map of ScenarioCreditCurve InstancesCaseInsensitiveTreeMap<DiscountCurveScenarioContainer>
scenarioDiscountCurveMap()
Retrieve the Map of DiscountCurveScenarioContainer InstancesCurveSurfaceQuoteContainer
scenarioMarketParams(java.lang.String strScenarioName)
Retrieve the Named Scenario Market ParametersCurveSurfaceQuoteContainer
scenarioMarketParams(BasketProduct bp, java.lang.String strScenario)
Get the Market Parameters for the given basket product and the scenarioCurveSurfaceQuoteContainer
scenarioMarketParams(Component comp, java.lang.String strScenario)
Get the Market Parameters corresponding to the component and the scenarioboolean
setTSYQuotes(CaseInsensitiveTreeMap<ProductQuote> mapCQTSY)
Set the full set of named Treasury Quote MapProductQuote
tsyQuote(java.lang.String strBenchmark)
Get the named Treasury Quote Map corresponding to the desired benchmarkCaseInsensitiveTreeMap<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
-
CurveSurfaceScenarioContainer
public CurveSurfaceScenarioContainer()Construct an empty MarketParamsContainer instance
-
-
Method Details
-
addScenarioDiscountCurve
public boolean addScenarioDiscountCurve(java.lang.String strName, DiscountCurveScenarioContainer sdc)Description copied from class:ScenarioMarketParams
Add the named scenario DC- Specified by:
addScenarioDiscountCurve
in classScenarioMarketParams
- Parameters:
strName
- Namesdc
- Corresponding DiscountCurveScenarioContainer instance- Returns:
- Added successfully (true)
-
removeScenarioDiscountCurve
public boolean removeScenarioDiscountCurve(java.lang.String strName)Description copied from class:ScenarioMarketParams
Remove the named scenario DC- Specified by:
removeScenarioDiscountCurve
in classScenarioMarketParams
- Parameters:
strName
- Name- Returns:
- Removed successfully (true)
-
addScenarioCreditCurve
Description copied from class:ScenarioMarketParams
Add the named scenario CC- Specified by:
addScenarioCreditCurve
in classScenarioMarketParams
- Parameters:
strName
- Namescc
- ScenarioCreditCurve Instance- Returns:
- Added successfully (true)
-
removeScenarioCreditCurve
public boolean removeScenarioCreditCurve(java.lang.String strName)Description copied from class:ScenarioMarketParams
Removes the named scenario CC- Specified by:
removeScenarioCreditCurve
in classScenarioMarketParams
- Parameters:
strName
- Name- Returns:
- Removed successfully (true)
-
addTSYQuote
Description copied from class:ScenarioMarketParams
Add the named Treasury Quote- Specified by:
addTSYQuote
in classScenarioMarketParams
- Parameters:
strBenchmark
- NamepqTSY
- Treasury Quote- Returns:
- Added successfully (true)
-
removeTSYQuote
public boolean removeTSYQuote(java.lang.String strBenchmark)Description copied from class:ScenarioMarketParams
Remove the named Treasury Quote- Specified by:
removeTSYQuote
in classScenarioMarketParams
- Parameters:
strBenchmark
- Name- Returns:
- Removed successfully (true)
-
setTSYQuotes
Description copied from class:ScenarioMarketParams
Set the full set of named Treasury Quote Map- Specified by:
setTSYQuotes
in classScenarioMarketParams
- Parameters:
mapCQTSY
- Named Treasury Quote Map- Returns:
- Set successfully (true)
-
tsyQuote
Description copied from class:ScenarioMarketParams
Get the named Treasury Quote Map corresponding to the desired benchmark- Specified by:
tsyQuote
in classScenarioMarketParams
- Parameters:
strBenchmark
- The treasury benchmark- Returns:
- Treasury Quote
-
tsyQuotes
Description copied from class:ScenarioMarketParams
Get the full set of named Treasury Quote Map- Specified by:
tsyQuotes
in classScenarioMarketParams
- Returns:
- Named Treasury Quote Map
-
addFixing
Description copied from class:ScenarioMarketParams
Add the fixing for the given Latent State Label and the given date- Specified by:
addFixing
in classScenarioMarketParams
- Parameters:
dtFix
- The fixing datelsl
- The Latent State LabeldblFixing
- The fixing- Returns:
- Added successfully (true)
-
removeFixing
Description copied from class:ScenarioMarketParams
Remove the fixing corresponding to the given date and the Latent State Label- Specified by:
removeFixing
in classScenarioMarketParams
- Parameters:
dtFix
- Fixing datelsl
- The Latent State label- Returns:
- Successfully removed (true)
-
fixings
Description copied from class:ScenarioMarketParams
Retrieve the Latent State Fixings Container- Specified by:
fixings
in classScenarioMarketParams
- Returns:
- The Latent State Fixings Container
-
addComponentQuote
Description copied from class:ScenarioMarketParams
Add the component quote- Specified by:
addComponentQuote
in classScenarioMarketParams
- Parameters:
strComponentID
- Component IDcqComponent
- Component Quote- Returns:
- Added successfully (true)
-
removeComponentQuote
public boolean removeComponentQuote(java.lang.String strComponentID)Description copied from class:ScenarioMarketParams
Remove the component quote- Specified by:
removeComponentQuote
in classScenarioMarketParams
- Parameters:
strComponentID
- Component ID- Returns:
- Removed successfully (true)
-
addComponentQuote
Description copied from class:ScenarioMarketParams
Add the full map of component quotes- Specified by:
addComponentQuote
in classScenarioMarketParams
- Parameters:
mapComponentQuote
- Map of Component Quotes- Returns:
- Added successfully (true)
-
componentQuote
Description copied from class:ScenarioMarketParams
Retrieve the quote for the given component- Specified by:
componentQuote
in classScenarioMarketParams
- Parameters:
strComponentID
- Component ID- Returns:
- ComponentQuote
-
componentQuotes
Description copied from class:ScenarioMarketParams
Retrieve the full map of component quotes- Specified by:
componentQuotes
in classScenarioMarketParams
- Returns:
- The Map of Component Quotes
-
addScenarioMarketParams
public boolean addScenarioMarketParams(java.lang.String strScenarioName, CurveSurfaceQuoteContainer csqs)Description copied from class:ScenarioMarketParams
Add the named scenario Market Parameters- Specified by:
addScenarioMarketParams
in classScenarioMarketParams
- Parameters:
strScenarioName
- Scenario Namecsqs
- Market Parameters- Returns:
- True - Added successfully
-
scenarioMarketParams
Description copied from class:ScenarioMarketParams
Retrieve the Named Scenario Market Parameters- Specified by:
scenarioMarketParams
in classScenarioMarketParams
- Parameters:
strScenarioName
- Scenario Name- Returns:
- Named Market Parameters
-
scenarioMarketParams
public CurveSurfaceQuoteContainer scenarioMarketParams(Component comp, java.lang.String strScenario)Description copied from class:ScenarioMarketParams
Get the Market Parameters corresponding to the component and the scenario- Specified by:
scenarioMarketParams
in classScenarioMarketParams
- Parameters:
comp
- ComponentstrScenario
- Scenario- Returns:
- The Market Parameters
-
fundingTenorMarketParams
public CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer> fundingTenorMarketParams(Component comp, boolean bBumpUp)Description copied from class:ScenarioMarketParams
Get the Map of Funding Tenor Bumped Market Parameters corresponding to the Component- Specified by:
fundingTenorMarketParams
in classScenarioMarketParams
- Parameters:
comp
- ComponentbBumpUp
- TRUE - Bump Up- Returns:
- Map of the Funding Tenor Bumped Market Parameters
-
creditTenorMarketParams
public CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer> creditTenorMarketParams(Component comp, boolean bBumpUp)Description copied from class:ScenarioMarketParams
Get the map of tenor credit bumped Market Parameters corresponding to the component- Specified by:
creditTenorMarketParams
in classScenarioMarketParams
- Parameters:
comp
- ComponentbBumpUp
- Bump up (True)- Returns:
- Map of the tenor credit bumped Market Parameters
-
scenarioMarketParams
public CurveSurfaceQuoteContainer scenarioMarketParams(BasketProduct bp, java.lang.String strScenario)Description copied from class:ScenarioMarketParams
Get the Market Parameters for the given basket product and the scenario- Specified by:
scenarioMarketParams
in classScenarioMarketParams
- Parameters:
bp
- BasketProductstrScenario
- Named Scenario- Returns:
- Market Parameters Instance
-
fundingFlatBump
public CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer> fundingFlatBump(BasketProduct bp, boolean bBump)Description copied from class:ScenarioMarketParams
Get the Map of Funding Parallel Bumped Curves for the given Basket Product- Specified by:
fundingFlatBump
in classScenarioMarketParams
- Parameters:
bp
- BasketProductbBump
- True (Bump Up), False (Bump Down)- Returns:
- Map of the Funding Parallel Bumped curves
-
creditFlatBump
public CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer> creditFlatBump(BasketProduct bp, boolean bBump)Description copied from class:ScenarioMarketParams
Get the Map of credit Flat Bumped Curves for the given Basket Product- Specified by:
creditFlatBump
in classScenarioMarketParams
- Parameters:
bp
- BasketProductbBump
- True (Bump Up), False (Bump Down)- Returns:
- Map of the Credit Flat Bumped Curves
-
recoveryFlatBump
public CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer> recoveryFlatBump(BasketProduct bp, boolean bBump)Description copied from class:ScenarioMarketParams
Get the map of Recovery Flat Bumped Curves for the given Basket Product- Specified by:
recoveryFlatBump
in classScenarioMarketParams
- Parameters:
bp
- BasketProductbBump
- True (Bump Up), False (Bump Down)- Returns:
- Map of the Recovery Flat Bumped Curves
-
fundingTenorBump
public CaseInsensitiveTreeMap<CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>> fundingTenorBump(BasketProduct bp, boolean bBump)Description copied from class:ScenarioMarketParams
Get the Double Map of Funding Tenor Bumped Curves for each Funding Curve for the given Basket Product- Specified by:
fundingTenorBump
in classScenarioMarketParams
- Parameters:
bp
- BasketProductbBump
- True (Bump Up), False (Bump Down)- Returns:
- Double Map of the Funding Tenor Bumped Market Parameters
-
creditTenorBump
public CaseInsensitiveTreeMap<CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer>> creditTenorBump(BasketProduct bp, boolean bBump)Description copied from class:ScenarioMarketParams
Get the double map of credit Tenor bumped curves for each credit curve for the given Basket Product- Specified by:
creditTenorBump
in classScenarioMarketParams
- Parameters:
bp
- BasketProductbBump
- True (Bump Up), False (Bump Down)- Returns:
- Double Map of the credit Tenor bumped Market Parameters
-
scenarioDiscountCurveMap
Description copied from class:ScenarioMarketParams
Retrieve the Map of DiscountCurveScenarioContainer Instances- Specified by:
scenarioDiscountCurveMap
in classScenarioMarketParams
- Returns:
- Map of DiscountCurveScenarioContainer Instances
-
scenarioCreditCurveMap
Description copied from class:ScenarioMarketParams
Retrieve the Map of ScenarioCreditCurve Instances- Specified by:
scenarioCreditCurveMap
in classScenarioMarketParams
- Returns:
- Map of ScenarioCreditCurve Instances
-