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 booleanaddComponentQuote(java.lang.String strComponentID, ProductQuote cqComponent)Add the component quotebooleanaddComponentQuote(CaseInsensitiveTreeMap<ProductQuote> mapComponentQuote)Add the full map of component quotesbooleanaddFixing(JulianDate dtFix, LatentStateLabel lsl, double dblFixing)Add the fixing for the given Latent State Label and the given datebooleanaddScenarioCreditCurve(java.lang.String strName, CreditCurveScenarioContainer scc)Add the named scenario CCbooleanaddScenarioDiscountCurve(java.lang.String strName, DiscountCurveScenarioContainer sdc)Add the named scenario DCbooleanaddScenarioMarketParams(java.lang.String strScenarioName, CurveSurfaceQuoteContainer csqs)Add the named scenario Market ParametersbooleanaddTSYQuote(java.lang.String strBenchmark, ProductQuote pqTSY)Add the named Treasury QuoteProductQuotecomponentQuote(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 componentLatentStateFixingsContainerfixings()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 ProductbooleanremoveComponentQuote(java.lang.String strComponentID)Remove the component quotebooleanremoveFixing(JulianDate dtFix, LatentStateLabel lsl)Remove the fixing corresponding to the given date and the Latent State LabelbooleanremoveScenarioCreditCurve(java.lang.String strName)Removes the named scenario CCbooleanremoveScenarioDiscountCurve(java.lang.String strName)Remove the named scenario DCbooleanremoveTSYQuote(java.lang.String strBenchmark)Remove the named Treasury QuoteCaseInsensitiveTreeMap<CreditCurveScenarioContainer>scenarioCreditCurveMap()Retrieve the Map of ScenarioCreditCurve InstancesCaseInsensitiveTreeMap<DiscountCurveScenarioContainer>scenarioDiscountCurveMap()Retrieve the Map of DiscountCurveScenarioContainer InstancesCurveSurfaceQuoteContainerscenarioMarketParams(java.lang.String strScenarioName)Retrieve the Named Scenario Market ParametersCurveSurfaceQuoteContainerscenarioMarketParams(BasketProduct bp, java.lang.String strScenario)Get the Market Parameters for the given basket product and the scenarioCurveSurfaceQuoteContainerscenarioMarketParams(Component comp, java.lang.String strScenario)Get the Market Parameters corresponding to the component and the scenariobooleansetTSYQuotes(CaseInsensitiveTreeMap<ProductQuote> mapCQTSY)Set the full set of named Treasury Quote MapProductQuotetsyQuote(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:ScenarioMarketParamsAdd the named scenario DC- Specified by:
addScenarioDiscountCurvein classScenarioMarketParams- Parameters:
strName- Namesdc- Corresponding DiscountCurveScenarioContainer instance- Returns:
- Added successfully (true)
-
removeScenarioDiscountCurve
public boolean removeScenarioDiscountCurve(java.lang.String strName)Description copied from class:ScenarioMarketParamsRemove the named scenario DC- Specified by:
removeScenarioDiscountCurvein classScenarioMarketParams- Parameters:
strName- Name- Returns:
- Removed successfully (true)
-
addScenarioCreditCurve
Description copied from class:ScenarioMarketParamsAdd the named scenario CC- Specified by:
addScenarioCreditCurvein classScenarioMarketParams- Parameters:
strName- Namescc- ScenarioCreditCurve Instance- Returns:
- Added successfully (true)
-
removeScenarioCreditCurve
public boolean removeScenarioCreditCurve(java.lang.String strName)Description copied from class:ScenarioMarketParamsRemoves the named scenario CC- Specified by:
removeScenarioCreditCurvein classScenarioMarketParams- Parameters:
strName- Name- Returns:
- Removed successfully (true)
-
addTSYQuote
Description copied from class:ScenarioMarketParamsAdd the named Treasury Quote- Specified by:
addTSYQuotein classScenarioMarketParams- Parameters:
strBenchmark- NamepqTSY- Treasury Quote- Returns:
- Added successfully (true)
-
removeTSYQuote
public boolean removeTSYQuote(java.lang.String strBenchmark)Description copied from class:ScenarioMarketParamsRemove the named Treasury Quote- Specified by:
removeTSYQuotein classScenarioMarketParams- Parameters:
strBenchmark- Name- Returns:
- Removed successfully (true)
-
setTSYQuotes
Description copied from class:ScenarioMarketParamsSet the full set of named Treasury Quote Map- Specified by:
setTSYQuotesin classScenarioMarketParams- Parameters:
mapCQTSY- Named Treasury Quote Map- Returns:
- Set successfully (true)
-
tsyQuote
Description copied from class:ScenarioMarketParamsGet the named Treasury Quote Map corresponding to the desired benchmark- Specified by:
tsyQuotein classScenarioMarketParams- Parameters:
strBenchmark- The treasury benchmark- Returns:
- Treasury Quote
-
tsyQuotes
Description copied from class:ScenarioMarketParamsGet the full set of named Treasury Quote Map- Specified by:
tsyQuotesin classScenarioMarketParams- Returns:
- Named Treasury Quote Map
-
addFixing
Description copied from class:ScenarioMarketParamsAdd the fixing for the given Latent State Label and the given date- Specified by:
addFixingin classScenarioMarketParams- Parameters:
dtFix- The fixing datelsl- The Latent State LabeldblFixing- The fixing- Returns:
- Added successfully (true)
-
removeFixing
Description copied from class:ScenarioMarketParamsRemove the fixing corresponding to the given date and the Latent State Label- Specified by:
removeFixingin classScenarioMarketParams- Parameters:
dtFix- Fixing datelsl- The Latent State label- Returns:
- Successfully removed (true)
-
fixings
Description copied from class:ScenarioMarketParamsRetrieve the Latent State Fixings Container- Specified by:
fixingsin classScenarioMarketParams- Returns:
- The Latent State Fixings Container
-
addComponentQuote
Description copied from class:ScenarioMarketParamsAdd the component quote- Specified by:
addComponentQuotein classScenarioMarketParams- Parameters:
strComponentID- Component IDcqComponent- Component Quote- Returns:
- Added successfully (true)
-
removeComponentQuote
public boolean removeComponentQuote(java.lang.String strComponentID)Description copied from class:ScenarioMarketParamsRemove the component quote- Specified by:
removeComponentQuotein classScenarioMarketParams- Parameters:
strComponentID- Component ID- Returns:
- Removed successfully (true)
-
addComponentQuote
Description copied from class:ScenarioMarketParamsAdd the full map of component quotes- Specified by:
addComponentQuotein classScenarioMarketParams- Parameters:
mapComponentQuote- Map of Component Quotes- Returns:
- Added successfully (true)
-
componentQuote
Description copied from class:ScenarioMarketParamsRetrieve the quote for the given component- Specified by:
componentQuotein classScenarioMarketParams- Parameters:
strComponentID- Component ID- Returns:
- ComponentQuote
-
componentQuotes
Description copied from class:ScenarioMarketParamsRetrieve the full map of component quotes- Specified by:
componentQuotesin classScenarioMarketParams- Returns:
- The Map of Component Quotes
-
addScenarioMarketParams
public boolean addScenarioMarketParams(java.lang.String strScenarioName, CurveSurfaceQuoteContainer csqs)Description copied from class:ScenarioMarketParamsAdd the named scenario Market Parameters- Specified by:
addScenarioMarketParamsin classScenarioMarketParams- Parameters:
strScenarioName- Scenario Namecsqs- Market Parameters- Returns:
- True - Added successfully
-
scenarioMarketParams
Description copied from class:ScenarioMarketParamsRetrieve the Named Scenario Market Parameters- Specified by:
scenarioMarketParamsin classScenarioMarketParams- Parameters:
strScenarioName- Scenario Name- Returns:
- Named Market Parameters
-
scenarioMarketParams
public CurveSurfaceQuoteContainer scenarioMarketParams(Component comp, java.lang.String strScenario)Description copied from class:ScenarioMarketParamsGet the Market Parameters corresponding to the component and the scenario- Specified by:
scenarioMarketParamsin classScenarioMarketParams- Parameters:
comp- ComponentstrScenario- Scenario- Returns:
- The Market Parameters
-
fundingTenorMarketParams
public CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer> fundingTenorMarketParams(Component comp, boolean bBumpUp)Description copied from class:ScenarioMarketParamsGet the Map of Funding Tenor Bumped Market Parameters corresponding to the Component- Specified by:
fundingTenorMarketParamsin 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:ScenarioMarketParamsGet the map of tenor credit bumped Market Parameters corresponding to the component- Specified by:
creditTenorMarketParamsin 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:ScenarioMarketParamsGet the Market Parameters for the given basket product and the scenario- Specified by:
scenarioMarketParamsin classScenarioMarketParams- Parameters:
bp- BasketProductstrScenario- Named Scenario- Returns:
- Market Parameters Instance
-
fundingFlatBump
public CaseInsensitiveTreeMap<CurveSurfaceQuoteContainer> fundingFlatBump(BasketProduct bp, boolean bBump)Description copied from class:ScenarioMarketParamsGet the Map of Funding Parallel Bumped Curves for the given Basket Product- Specified by:
fundingFlatBumpin 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:ScenarioMarketParamsGet the Map of credit Flat Bumped Curves for the given Basket Product- Specified by:
creditFlatBumpin 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:ScenarioMarketParamsGet the map of Recovery Flat Bumped Curves for the given Basket Product- Specified by:
recoveryFlatBumpin 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:ScenarioMarketParamsGet the Double Map of Funding Tenor Bumped Curves for each Funding Curve for the given Basket Product- Specified by:
fundingTenorBumpin 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:ScenarioMarketParamsGet the double map of credit Tenor bumped curves for each credit curve for the given Basket Product- Specified by:
creditTenorBumpin 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:ScenarioMarketParamsRetrieve the Map of DiscountCurveScenarioContainer Instances- Specified by:
scenarioDiscountCurveMapin classScenarioMarketParams- Returns:
- Map of DiscountCurveScenarioContainer Instances
-
scenarioCreditCurveMap
Description copied from class:ScenarioMarketParamsRetrieve the Map of ScenarioCreditCurve Instances- Specified by:
scenarioCreditCurveMapin classScenarioMarketParams- Returns:
- Map of ScenarioCreditCurve Instances
-