IBORIndexContainer.java

  1. package org.drip.market.definition;

  2. /*
  3.  * -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  4.  */

  5. /*!
  6.  * Copyright (C) 2020 Lakshmi Krishnamurthy
  7.  * Copyright (C) 2019 Lakshmi Krishnamurthy
  8.  * Copyright (C) 2018 Lakshmi Krishnamurthy
  9.  * Copyright (C) 2017 Lakshmi Krishnamurthy
  10.  * Copyright (C) 2016 Lakshmi Krishnamurthy
  11.  * Copyright (C) 2015 Lakshmi Krishnamurthy
  12.  * Copyright (C) 2014 Lakshmi Krishnamurthy
  13.  *
  14.  *  This file is part of DROP, an open-source library targeting analytics/risk, transaction cost analytics,
  15.  *      asset liability management analytics, capital, exposure, and margin analytics, valuation adjustment
  16.  *      analytics, and portfolio construction analytics within and across fixed income, credit, commodity,
  17.  *      equity, FX, and structured products. It also includes auxiliary libraries for algorithm support,
  18.  *      numerical analysis, numerical optimization, spline builder, model validation, statistical learning,
  19.  *      and computational support.
  20.  *  
  21.  *      https://lakshmidrip.github.io/DROP/
  22.  *  
  23.  *  DROP is composed of three modules:
  24.  *  
  25.  *  - DROP Product Core - https://lakshmidrip.github.io/DROP-Product-Core/
  26.  *  - DROP Portfolio Core - https://lakshmidrip.github.io/DROP-Portfolio-Core/
  27.  *  - DROP Computational Core - https://lakshmidrip.github.io/DROP-Computational-Core/
  28.  *
  29.  *  DROP Product Core implements libraries for the following:
  30.  *  - Fixed Income Analytics
  31.  *  - Loan Analytics
  32.  *  - Transaction Cost Analytics
  33.  *
  34.  *  DROP Portfolio Core implements libraries for the following:
  35.  *  - Asset Allocation Analytics
  36.  *  - Asset Liability Management Analytics
  37.  *  - Capital Estimation Analytics
  38.  *  - Exposure Analytics
  39.  *  - Margin Analytics
  40.  *  - XVA Analytics
  41.  *
  42.  *  DROP Computational Core implements libraries for the following:
  43.  *  - Algorithm Support
  44.  *  - Computation Support
  45.  *  - Function Analysis
  46.  *  - Model Validation
  47.  *  - Numerical Analysis
  48.  *  - Numerical Optimizer
  49.  *  - Spline Builder
  50.  *  - Statistical Learning
  51.  *
  52.  *  Documentation for DROP is Spread Over:
  53.  *
  54.  *  - Main                     => https://lakshmidrip.github.io/DROP/
  55.  *  - Wiki                     => https://github.com/lakshmiDRIP/DROP/wiki
  56.  *  - GitHub                   => https://github.com/lakshmiDRIP/DROP
  57.  *  - Repo Layout Taxonomy     => https://github.com/lakshmiDRIP/DROP/blob/master/Taxonomy.md
  58.  *  - Javadoc                  => https://lakshmidrip.github.io/DROP/Javadoc/index.html
  59.  *  - Technical Specifications => https://github.com/lakshmiDRIP/DROP/tree/master/Docs/Internal
  60.  *  - Release Versions         => https://lakshmidrip.github.io/DROP/version.html
  61.  *  - Community Credits        => https://lakshmidrip.github.io/DROP/credits.html
  62.  *  - Issues Catalog           => https://github.com/lakshmiDRIP/DROP/issues
  63.  *  - JUnit                    => https://lakshmidrip.github.io/DROP/junit/index.html
  64.  *  - Jacoco                   => https://lakshmidrip.github.io/DROP/jacoco/index.html
  65.  *
  66.  *  Licensed under the Apache License, Version 2.0 (the "License");
  67.  *      you may not use this file except in compliance with the License.
  68.  *  
  69.  *  You may obtain a copy of the License at
  70.  *      http://www.apache.org/licenses/LICENSE-2.0
  71.  *  
  72.  *  Unless required by applicable law or agreed to in writing, software
  73.  *      distributed under the License is distributed on an "AS IS" BASIS,
  74.  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  75.  *  
  76.  *  See the License for the specific language governing permissions and
  77.  *      limitations under the License.
  78.  */

  79. /**
  80.  * <i>IBORIndexContainer</i> holds the definitions of the IBOR index definitions corresponding to the
  81.  * different jurisdictions.
  82.  *
  83.  *  <br><br>
  84.  *  <ul>
  85.  *      <li><b>Module </b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/ProductCore.md">Product Core Module</a></li>
  86.  *      <li><b>Library</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/FixedIncomeAnalyticsLibrary.md">Fixed Income Analytics Library</a></li>
  87.  *      <li><b>Project</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/market">Static Market Fields - the Definitions, the OTC/Exchange Traded Products, and Treasury Settings</a></li>
  88.  *      <li><b>Package</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/market/definition">IBOR, FX, Overnight Index Container</a></li>
  89.  *  </ul>
  90.  *
  91.  * @author Lakshmi Krishnamurthy
  92.  */

  93. public class IBORIndexContainer {
  94.     private static
  95.         org.drip.analytics.support.CaseInsensitiveTreeMap<org.drip.market.definition.IBORIndex>
  96.             _mapNamedIBORIndex = null;
  97.     private static
  98.         org.drip.analytics.support.CaseInsensitiveTreeMap<org.drip.market.definition.IBORIndex>
  99.             _mapJurisdictionIBORIndex = null;

  100.     /**
  101.      * Initialize the IBOR Index Container with the Overnight Indexes
  102.      *
  103.      * @return TRUE - The IBOR Index Container successfully initialized with the indexes
  104.      */

  105.     public static final boolean Init()
  106.     {
  107.         if (null != _mapNamedIBORIndex) return true;

  108.         _mapNamedIBORIndex = new
  109.             org.drip.analytics.support.CaseInsensitiveTreeMap<org.drip.market.definition.IBORIndex>();

  110.         _mapJurisdictionIBORIndex = new
  111.             org.drip.analytics.support.CaseInsensitiveTreeMap<org.drip.market.definition.IBORIndex>();

  112.         try {
  113.             org.drip.market.definition.IBORIndex iborAUD = new org.drip.market.definition.IBORIndex
  114.                 ("AUD-BBSW", "BBSW", "AUD", "Act/365", "AUD", 0, "1M", "6M",
  115.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  116.             _mapJurisdictionIBORIndex.put ("AUD", iborAUD);

  117.             _mapNamedIBORIndex.put ("AUD-BBSW", iborAUD);

  118.             _mapNamedIBORIndex.put ("AUD-LIBOR", iborAUD);

  119.             org.drip.market.definition.IBORIndex iborBRL = new org.drip.market.definition.IBORIndex
  120.                 ("BRL-LIBOR", "LIBOR", "BRL", "Bus/252", "BRL", 0, "ON", "12M",
  121.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  122.             _mapJurisdictionIBORIndex.put ("BRL", iborBRL);

  123.             _mapNamedIBORIndex.put ("BRL-LIBOR", iborBRL);

  124.             org.drip.market.definition.IBORIndex iborCAD = new org.drip.market.definition.IBORIndex
  125.                 ("CAD-CDOR", "CDOR", "CAD", "Act/365", "CAD", 0, "1M", "12M",
  126.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  127.             _mapJurisdictionIBORIndex.put ("CAD", iborCAD);

  128.             _mapNamedIBORIndex.put ("CAD-CDOR", iborCAD);

  129.             _mapNamedIBORIndex.put ("CAD-LIBOR", iborCAD);

  130.             org.drip.market.definition.IBORIndex iborCHF = new org.drip.market.definition.IBORIndex
  131.                 ("CHF-LIBOR", "LIBOR", "CHF", "Act/360", "CHF", 2, "ON", "12M",
  132.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  133.             _mapJurisdictionIBORIndex.put ("CHF", iborCHF);

  134.             _mapNamedIBORIndex.put ("CHF-LIBOR", iborCHF);

  135.             org.drip.market.definition.IBORIndex iborCLP = new org.drip.market.definition.IBORIndex
  136.                 ("CLP-LIBOR", "LIBOR", "CLP", "Act/360", "CLP", 2, "ON", "12M",
  137.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  138.             _mapJurisdictionIBORIndex.put ("CLP", iborCLP);

  139.             _mapNamedIBORIndex.put ("CLP-LIBOR", iborCLP);

  140.             org.drip.market.definition.IBORIndex iborCNY = new org.drip.market.definition.IBORIndex
  141.                 ("CNY-Repo", "Repo", "CNY", "Act/365", "CNY", 0, "ON", "12M",
  142.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  143.             _mapJurisdictionIBORIndex.put ("CNY", iborCNY);

  144.             _mapNamedIBORIndex.put ("CNY-LIBOR", iborCNY);

  145.             _mapNamedIBORIndex.put ("CNY-Repo", iborCNY);

  146.             org.drip.market.definition.IBORIndex iborCZK = new org.drip.market.definition.IBORIndex
  147.                 ("CZK-PRIBOR", "PRIBOR", "CZK", "Act/360", "CZK", 2, "", "",
  148.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  149.             _mapJurisdictionIBORIndex.put ("CZK", iborCZK);

  150.             _mapNamedIBORIndex.put ("CZK-LIBOR", iborCZK);

  151.             _mapNamedIBORIndex.put ("CZK-PRIBOR", iborCZK);

  152.             org.drip.market.definition.IBORIndex iborDKK = new org.drip.market.definition.IBORIndex
  153.                 ("DKK-CIBOR", "CIBOR", "DKK", "Act/360", "DKK", 2, "1W", "12M",
  154.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  155.             _mapJurisdictionIBORIndex.put ("DKK", iborDKK);

  156.             _mapNamedIBORIndex.put ("DKK-CIBOR", iborDKK);

  157.             _mapNamedIBORIndex.put ("DKK-LIBOR", iborDKK);

  158.             org.drip.market.definition.IBORIndex iborEUR = new org.drip.market.definition.IBORIndex
  159.                 ("EUR-EURIBOR", "EURIBOR", "EUR", "Act/360", "EUR", 2, "1W", "12M",
  160.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  161.             _mapJurisdictionIBORIndex.put ("EUR", iborEUR);

  162.             _mapNamedIBORIndex.put ("EUR-EURIBOR", iborEUR);

  163.             org.drip.market.definition.IBORIndex iborEUR2 = new org.drip.market.definition.IBORIndex
  164.                 ("EUR-EURIBOR", "EURIBOR", "EUR", "Act/365", "EUR", 2, "1W", "12M",
  165.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  166.             _mapNamedIBORIndex.put ("EUR-EURIBOR2", iborEUR2);

  167.             org.drip.market.definition.IBORIndex iborEUR3 = new org.drip.market.definition.IBORIndex
  168.                 ("EUR-LIBOR", "LIBOR", "EUR", "Act/360", "EUR", 2, "ON", "12M",
  169.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  170.             _mapNamedIBORIndex.put ("EUR-LIBOR", iborEUR3);

  171.             org.drip.market.definition.IBORIndex iborEUR4 = new org.drip.market.definition.IBORIndex
  172.                 ("EUR-LIBOR", "LIBOR", "EUR", "Act/360", "EUR", 0, "ON", "12M",
  173.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  174.             _mapNamedIBORIndex.put ("EUR-LIBOR2", iborEUR4);

  175.             org.drip.market.definition.IBORIndex iborGBP = new org.drip.market.definition.IBORIndex
  176.                 ("GBP-LIBOR", "LIBOR", "GBP", "Act/365", "GBP", 0, "ON", "12M",
  177.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  178.             _mapJurisdictionIBORIndex.put ("GBP", iborGBP);

  179.             _mapNamedIBORIndex.put ("GBP-LIBOR", iborGBP);

  180.             org.drip.market.definition.IBORIndex iborHKD = new org.drip.market.definition.IBORIndex
  181.                 ("HKD-HIBOR", "HIBOR", "HKD", "Act/365", "HKD", 2, "1M", "12M",
  182.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  183.             _mapJurisdictionIBORIndex.put ("HKD", iborHKD);

  184.             _mapNamedIBORIndex.put ("HKD-HIBOR", iborHKD);

  185.             _mapNamedIBORIndex.put ("HKD-LIBOR", iborHKD);

  186.             org.drip.market.definition.IBORIndex iborHUF = new org.drip.market.definition.IBORIndex
  187.                 ("HUF-BUBOR", "BUBOR", "HUF", "Act/360", "HUF", 2, "", "",
  188.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  189.             _mapJurisdictionIBORIndex.put ("HUF", iborHUF);

  190.             _mapNamedIBORIndex.put ("HUF-BUBOR", iborHUF);

  191.             _mapNamedIBORIndex.put ("HUF-LIBOR", iborHUF);

  192.             org.drip.market.definition.IBORIndex iborILS = new org.drip.market.definition.IBORIndex
  193.                 ("ILS-LIBOR", "LIBOR", "ILS", "Act/360", "ILS", 2, "", "",
  194.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  195.             _mapJurisdictionIBORIndex.put ("ILS", iborILS);

  196.             _mapNamedIBORIndex.put ("ILS-LIBOR", iborILS);

  197.             org.drip.market.definition.IBORIndex iborIDR = new org.drip.market.definition.IBORIndex
  198.                 ("IDR-IDRFIX", "IDRFIX", "IDR", "Act/360", "IDR", 2, "", "",
  199.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  200.             _mapJurisdictionIBORIndex.put ("IDR", iborIDR);

  201.             _mapNamedIBORIndex.put ("IDR-IDRFIX", iborIDR);

  202.             _mapNamedIBORIndex.put ("IDR-LIBOR", iborIDR);

  203.             org.drip.market.definition.IBORIndex iborINR = new org.drip.market.definition.IBORIndex
  204.                 ("INR-MIFOR", "MIFOR", "INR", "Act/365", "INR", 2, "", "",
  205.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  206.             _mapJurisdictionIBORIndex.put ("INR", iborINR);

  207.             _mapNamedIBORIndex.put ("INR-LIBOR", iborINR);

  208.             _mapNamedIBORIndex.put ("INR-MIFOR", iborINR);

  209.             org.drip.market.definition.IBORIndex iborJPY = new org.drip.market.definition.IBORIndex
  210.                 ("JPY-LIBOR", "LIBOR", "JPY", "Act/360", "JPY", 2, "ON", "12M",
  211.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  212.             _mapJurisdictionIBORIndex.put ("JPY", iborJPY);

  213.             _mapNamedIBORIndex.put ("JPY-LIBOR", iborJPY);

  214.             org.drip.market.definition.IBORIndex iborJPYTIBOR = new org.drip.market.definition.IBORIndex
  215.                 ("JPY-Japan TIBOR", "TIBOR", "JPY", "Act/365", "JPY", 2, "1W", "12M",
  216.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  217.             _mapNamedIBORIndex.put ("JPY-TIBOR", iborJPYTIBOR);

  218.             _mapNamedIBORIndex.put ("JPY-TIBOR", iborJPYTIBOR);

  219.             org.drip.market.definition.IBORIndex iborJPYEuroyen = new org.drip.market.definition.IBORIndex
  220.                 ("JPY-Euroyen TIBOR", "TIBOR", "JPY", "Act/360", "JPY", 2, "1W", "12M",
  221.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  222.             _mapNamedIBORIndex.put ("JPY-EUROYEN", iborJPYEuroyen);

  223.             _mapNamedIBORIndex.put ("JPY-EURTIBOR", iborJPYEuroyen);

  224.             org.drip.market.definition.IBORIndex iborKRW = new org.drip.market.definition.IBORIndex
  225.                 ("KRW-LIBOR", "LIBOR", "KRW", "Act/365", "KRW", 1, "ON", "12M",
  226.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  227.             _mapJurisdictionIBORIndex.put ("KRW", iborKRW);

  228.             _mapNamedIBORIndex.put ("KRW-LIBOR", iborKRW);

  229.             org.drip.market.definition.IBORIndex iborMXN = new org.drip.market.definition.IBORIndex
  230.                 ("MXN-LIBOR", "LIBOR", "MXN", "Act/360", "MXN", 2, "ON", "12M",
  231.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  232.             _mapJurisdictionIBORIndex.put ("MXN", iborMXN);

  233.             _mapNamedIBORIndex.put ("MXN-LIBOR", iborMXN);

  234.             org.drip.market.definition.IBORIndex iborMYR = new org.drip.market.definition.IBORIndex
  235.                 ("MYR-LIBOR", "LIBOR", "MYR", "Act/365", "MYR", 0, "ON", "12M",
  236.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  237.             _mapJurisdictionIBORIndex.put ("MYR", iborMYR);

  238.             _mapNamedIBORIndex.put ("MYR-LIBOR", iborMYR);

  239.             org.drip.market.definition.IBORIndex iborNOK = new org.drip.market.definition.IBORIndex
  240.                 ("NOK-NIBOR", "NIBOR", "NOK", "Act/360", "NOK", 2, "", "",
  241.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  242.             _mapJurisdictionIBORIndex.put ("NOK", iborNOK);

  243.             _mapNamedIBORIndex.put ("NOK-LIBOR", iborNOK);

  244.             _mapNamedIBORIndex.put ("NOK-NIBOR", iborNOK);

  245.             org.drip.market.definition.IBORIndex iborNZD = new org.drip.market.definition.IBORIndex
  246.                 ("NZD-BBR", "BBR", "NZD", "Act/365", "NZD", 0, "", "",
  247.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  248.             _mapJurisdictionIBORIndex.put ("NZD", iborNZD);

  249.             _mapNamedIBORIndex.put ("NZD-BBR", iborNZD);

  250.             _mapNamedIBORIndex.put ("NZD-BKBM", iborNZD);

  251.             _mapNamedIBORIndex.put ("NZD-LIBOR", iborNZD);

  252.             org.drip.market.definition.IBORIndex iborPLN = new org.drip.market.definition.IBORIndex
  253.                 ("PLN-WIBOR", "WIBOR", "PLN", "Act/365", "PLN", 2, "", "",
  254.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  255.             _mapJurisdictionIBORIndex.put ("PLN", iborPLN);

  256.             _mapNamedIBORIndex.put ("PLN-LIBOR", iborPLN);

  257.             _mapNamedIBORIndex.put ("PLN-WIBOR", iborPLN);

  258.             org.drip.market.definition.IBORIndex iborRMB = new org.drip.market.definition.IBORIndex
  259.                 ("RMB-SHIBOR", "SHIBOR", "RMB", "Act/360", "RMB", 0, "ON", "12M",
  260.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  261.             _mapJurisdictionIBORIndex.put ("RMB", iborRMB);

  262.             _mapNamedIBORIndex.put ("RMB-LIBOR", iborRMB);

  263.             _mapNamedIBORIndex.put ("RMB-SHIBOR", iborRMB);

  264.             org.drip.market.definition.IBORIndex iborSEK = new org.drip.market.definition.IBORIndex
  265.                 ("SEK-STIBOR", "STIBOR", "SEK", "Act/360", "SEK", 2, "", "",
  266.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  267.             _mapJurisdictionIBORIndex.put ("SEK", iborSEK);

  268.             _mapNamedIBORIndex.put ("SEK-LIBOR", iborSEK);

  269.             _mapNamedIBORIndex.put ("SEK-STIBOR", iborSEK);

  270.             org.drip.market.definition.IBORIndex iborSGD = new org.drip.market.definition.IBORIndex
  271.                 ("SGD-SIBOR", "SIBOR", "SGD", "Act/365", "SGD", 2, "", "",
  272.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  273.             _mapJurisdictionIBORIndex.put ("SGD", iborSGD);

  274.             _mapNamedIBORIndex.put ("SGD-LIBOR", iborSGD);

  275.             _mapNamedIBORIndex.put ("SGD-SIBOR", iborSGD);

  276.             _mapNamedIBORIndex.put ("SGD-SOR", iborSGD);

  277.             org.drip.market.definition.IBORIndex iborSKK = new org.drip.market.definition.IBORIndex
  278.                 ("SKK-BRIBOR", "BRIBOR", "SKK", "Act/360", "SKK", 2, "", "",
  279.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  280.             _mapJurisdictionIBORIndex.put ("SKK", iborSKK);

  281.             _mapNamedIBORIndex.put ("SKK-BRIBOR", iborSKK);

  282.             _mapNamedIBORIndex.put ("SKK-LIBOR", iborSKK);

  283.             org.drip.market.definition.IBORIndex iborTHB = new org.drip.market.definition.IBORIndex
  284.                 ("THB-LIBOR", "LIBOR", "THB", "Act/365", "THB", 2, "ON", "12M",
  285.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  286.             _mapJurisdictionIBORIndex.put ("THB", iborTHB);

  287.             _mapNamedIBORIndex.put ("THB-LIBOR", iborTHB);

  288.             org.drip.market.definition.IBORIndex iborTRY = new org.drip.market.definition.IBORIndex
  289.                 ("TRY-LIBOR", "LIBOR", "TRY", "Act/360", "TRY", 2, "ON", "12M",
  290.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  291.             _mapJurisdictionIBORIndex.put ("TRY", iborTRY);

  292.             _mapNamedIBORIndex.put ("TRY-LIBOR", iborTRY);

  293.             org.drip.market.definition.IBORIndex iborTWD = new org.drip.market.definition.IBORIndex
  294.                 ("TWD-LIBOR", "LIBOR", "TWD", "Act/365", "TWD", 2, "ON", "12M",
  295.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  296.             _mapJurisdictionIBORIndex.put ("TWD", iborTWD);

  297.             _mapNamedIBORIndex.put ("TWD-LIBOR", iborTWD);

  298.             org.drip.market.definition.IBORIndex iborUSD = new org.drip.market.definition.IBORIndex
  299.                 ("USD-LIBOR", "LIBOR", "USD", "Act/360", "USD", 2, "ON", "12M",
  300.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  301.             _mapJurisdictionIBORIndex.put ("USD", iborUSD);

  302.             _mapNamedIBORIndex.put ("USD-LIBOR", iborUSD);

  303.             org.drip.market.definition.IBORIndex iborZAR = new org.drip.market.definition.IBORIndex
  304.                 ("ZAR-JIBAR", "JIBAR", "ZAR", "Act/365", "ZAR", 0, "1M", "12M",
  305.                     org.drip.analytics.support.CompositePeriodBuilder.ACCRUAL_COMPOUNDING_RULE_GEOMETRIC);

  306.             _mapJurisdictionIBORIndex.put ("ZAR", iborZAR);

  307.             _mapNamedIBORIndex.put ("ZAR-JIBAR", iborZAR);

  308.             _mapNamedIBORIndex.put ("ZAR-LIBOR", iborZAR);
  309.         } catch (java.lang.Exception e) {
  310.             e.printStackTrace();

  311.             return false;
  312.         }

  313.         return true;
  314.     }

  315.     /**
  316.      * Retrieve the IBOR Index from the Jurisdiction Name
  317.      *
  318.      * @param strName The IBOR Index Jurisdiction Name
  319.      *
  320.      * @return The IBOR Index
  321.      */

  322.     public static final org.drip.market.definition.IBORIndex IndexFromJurisdiction (
  323.         final java.lang.String strName)
  324.     {
  325.         return _mapJurisdictionIBORIndex.containsKey (strName) ? _mapJurisdictionIBORIndex.get (strName) :
  326.             null;
  327.     }

  328.     /**
  329.      * Retrieve the IBOR Index from the Index Name
  330.      *
  331.      * @param strName The IBOR Index Index Name
  332.      *
  333.      * @return The IBOR Index
  334.      */

  335.     public static final org.drip.market.definition.IBORIndex IndexFromName (
  336.         final java.lang.String strName)
  337.     {
  338.         return _mapNamedIBORIndex.containsKey (strName) ? _mapNamedIBORIndex.get (strName) : null;
  339.     }
  340. }