EOSBondPeriods.java

  1. package org.drip.sample.cashflow;

  2. import org.drip.analytics.cashflow.CompositePeriod;
  3. import org.drip.analytics.date.*;
  4. import org.drip.analytics.output.ConvexityAdjustment;
  5. import org.drip.numerical.common.FormatUtil;
  6. import org.drip.param.creator.MarketParamsBuilder;
  7. import org.drip.param.market.CurveSurfaceQuoteContainer;
  8. import org.drip.param.valuation.*;
  9. import org.drip.product.creator.BondBuilder;
  10. import org.drip.product.credit.BondComponent;
  11. import org.drip.product.params.EmbeddedOptionSchedule;
  12. import org.drip.service.env.EnvManager;
  13. import org.drip.service.template.LatentMarketStateBuilder;
  14. import org.drip.state.creator.ScenarioCreditCurveBuilder;
  15. import org.drip.state.credit.CreditCurve;
  16. import org.drip.state.discount.MergedDiscountForwardCurve;
  17. import org.drip.state.govvie.GovvieCurve;

  18. /*
  19.  * -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  20.  */

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

  92. /**
  93.  * <i>EOSBondPeriods</i> demonstrates the Cash Flow Period Details for a Bond with Embedded Options.
  94.  *  
  95.  * <br><br>
  96.  *  <ul>
  97.  *      <li><b>Module </b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/ProductCore.md">Product Core Module</a></li>
  98.  *      <li><b>Library</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/FixedIncomeAnalyticsLibrary.md">Fixed Income Analytics</a></li>
  99.  *      <li><b>Project</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/sample/README.md">DROP API Construction and Usage</a></li>
  100.  *      <li><b>Package</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/sample/cashflow/README.md">Fixed Income Product Cash Flow Display</a></li>
  101.  *  </ul>
  102.  * <br><br>
  103.  *
  104.  * @author Lakshmi Krishnamurthy
  105.  */

  106. public class EOSBondPeriods {

  107.     private static final MergedDiscountForwardCurve FundingCurve (
  108.         final JulianDate dtSpot,
  109.         final String strCurrency,
  110.         final double dblBump)
  111.         throws Exception
  112.     {
  113.         String[] astrDepositMaturityTenor = new String[] {
  114.             "2D"
  115.         };

  116.         double[] adblDepositQuote = new double[] {
  117.             0.0111956 + dblBump // 2D
  118.         };

  119.         double[] adblFuturesQuote = new double[] {
  120.             0.011375 + dblBump, // 98.8625
  121.             0.013350 + dblBump, // 98.6650
  122.             0.014800 + dblBump, // 98.5200
  123.             0.016450 + dblBump, // 98.3550
  124.             0.017850 + dblBump, // 98.2150
  125.             0.019300 + dblBump  // 98.0700
  126.         };

  127.         String[] astrFixFloatMaturityTenor = new String[] {
  128.             "02Y",
  129.             "03Y",
  130.             "04Y",
  131.             "05Y",
  132.             "06Y",
  133.             "07Y",
  134.             "08Y",
  135.             "09Y",
  136.             "10Y",
  137.             "11Y",
  138.             "12Y",
  139.             "15Y",
  140.             "20Y",
  141.             "25Y",
  142.             "30Y",
  143.             "40Y",
  144.             "50Y"
  145.         };

  146.         double[] adblFixFloatQuote = new double[] {
  147.             0.017029 + dblBump, //  2Y
  148.             0.019354 + dblBump, //  3Y
  149.             0.021044 + dblBump, //  4Y
  150.             0.022291 + dblBump, //  5Y
  151.             0.023240 + dblBump, //  6Y
  152.             0.024025 + dblBump, //  7Y
  153.             0.024683 + dblBump, //  8Y
  154.             0.025243 + dblBump, //  9Y
  155.             0.025720 + dblBump, // 10Y
  156.             0.026130 + dblBump, // 11Y
  157.             0.026495 + dblBump, // 12Y
  158.             0.027230 + dblBump, // 15Y
  159.             0.027855 + dblBump, // 20Y
  160.             0.028025 + dblBump, // 25Y
  161.             0.028028 + dblBump, // 30Y
  162.             0.027902 + dblBump, // 40Y
  163.             0.027655 + dblBump  // 50Y
  164.         };

  165.         return LatentMarketStateBuilder.SmoothFundingCurve (
  166.             dtSpot,
  167.             strCurrency,
  168.             astrDepositMaturityTenor,
  169.             adblDepositQuote,
  170.             "ForwardRate",
  171.             adblFuturesQuote,
  172.             "ForwardRate",
  173.             astrFixFloatMaturityTenor,
  174.             adblFixFloatQuote,
  175.             "SwapRate"
  176.         );
  177.     }

  178.     private static final GovvieCurve GovvieCurve (
  179.         final JulianDate dtSpot,
  180.         final String strCode,
  181.         final double[] adblCoupon,
  182.         final double[] adblYield)
  183.         throws Exception
  184.     {
  185.         JulianDate[] adtEffective = new JulianDate[] {
  186.             dtSpot,
  187.             dtSpot,
  188.             dtSpot,
  189.             dtSpot,
  190.             dtSpot,
  191.             dtSpot,
  192.             dtSpot,
  193.             dtSpot
  194.         };

  195.         JulianDate[] adtMaturity = new JulianDate[] {
  196.             dtSpot.addTenor ("1Y"),
  197.             dtSpot.addTenor ("2Y"),
  198.             dtSpot.addTenor ("3Y"),
  199.             dtSpot.addTenor ("5Y"),
  200.             dtSpot.addTenor ("7Y"),
  201.             dtSpot.addTenor ("10Y"),
  202.             dtSpot.addTenor ("20Y"),
  203.             dtSpot.addTenor ("30Y")
  204.         };

  205.         return LatentMarketStateBuilder.GovvieCurve (
  206.             strCode,
  207.             dtSpot,
  208.             adtEffective,
  209.             adtMaturity,
  210.             adblCoupon,
  211.             adblYield,
  212.             "Yield",
  213.             LatentMarketStateBuilder.SHAPE_PRESERVING
  214.         );
  215.     }

  216.     public static final void main (
  217.         final String[] astrArgs)
  218.         throws Exception
  219.     {
  220.         EnvManager.InitEnv ("");

  221.         JulianDate dtSpot = DateUtil.CreateFromYMD (
  222.             2017,
  223.             DateUtil.MARCH,
  224.             10
  225.         );

  226.         String strCurrency = "USD";
  227.         String strTreasuryCode = "UST";

  228.         double[] adblTreasuryCoupon = new double[] {
  229.             0.0100,
  230.             0.0100,
  231.             0.0125,
  232.             0.0150,
  233.             0.0200,
  234.             0.0225,
  235.             0.0250,
  236.             0.0300
  237.         };

  238.         double[] adblTreasuryYield = new double[] {
  239.             0.0083, //  1Y
  240.             0.0122, //  2Y
  241.             0.0149, //  3Y
  242.             0.0193, //  5Y
  243.             0.0227, //  7Y
  244.             0.0248, // 10Y
  245.             0.0280, // 20Y
  246.             0.0308  // 30Y
  247.         };

  248.         JulianDate dtEffective = DateUtil.CreateFromYMD (2015, 11, 30);
  249.         JulianDate dtMaturity  = DateUtil.CreateFromYMD (2025,  5, 15);
  250.         double dblCoupon = 0.06375;
  251.         int iFreq = 2;
  252.         double dblCleanPrice = 1.0687500;
  253.         String strCUSIP = "90932QAA4";
  254.         String strDayCount = "30/360";
  255.         String strCreditCurve = "CC";
  256.         int[] aiExerciseDate = new int[] {
  257.             DateUtil.CreateFromYMD (2020,  5, 15).julian(),
  258.             DateUtil.CreateFromYMD (2021,  5, 15).julian(),
  259.             DateUtil.CreateFromYMD (2022,  5, 15).julian(),
  260.             DateUtil.CreateFromYMD (2023,  5, 15).julian(),
  261.         };
  262.         double[] adblExercisePrice = new double[] {
  263.             1.03188,
  264.             1.02125,
  265.             1.01063,
  266.             1.00000,
  267.         };

  268.         BondComponent bond = BondBuilder.CreateSimpleFixed (
  269.             strCUSIP,
  270.             strCurrency,
  271.             strCreditCurve,
  272.             dblCoupon,
  273.             iFreq,
  274.             strDayCount,
  275.             dtEffective,
  276.             dtMaturity,
  277.             null,
  278.             null
  279.         );

  280.         EmbeddedOptionSchedule eos = new EmbeddedOptionSchedule (
  281.             aiExerciseDate,
  282.             adblExercisePrice,
  283.             false,
  284.             30,
  285.             false,
  286.             Double.NaN,
  287.             "",
  288.             Double.NaN
  289.         );

  290.         bond.setEmbeddedCallSchedule (eos);

  291.         MergedDiscountForwardCurve mdfc = FundingCurve (
  292.             dtSpot,
  293.             strCurrency,
  294.             0.
  295.         );

  296.         CreditCurve cc = ScenarioCreditCurveBuilder.FlatHazard (
  297.             dtSpot.julian(),
  298.             strCreditCurve,
  299.             "USD",
  300.             0.01,
  301.             0.4
  302.         );

  303.         CurveSurfaceQuoteContainer csqc = MarketParamsBuilder.Create (
  304.             mdfc,
  305.             GovvieCurve (
  306.                 dtSpot,
  307.                 strTreasuryCode,
  308.                 adblTreasuryCoupon,
  309.                 adblTreasuryYield
  310.             ),
  311.             cc,
  312.             null,
  313.             null,
  314.             null,
  315.             null
  316.         );

  317.         ValuationParams valParams = ValuationParams.Spot (dtSpot.julian());

  318.         WorkoutInfo wi = bond.exerciseYieldFromPrice (
  319.             valParams,
  320.             csqc,
  321.             null,
  322.             dblCleanPrice
  323.         );

  324.         System.out.println();

  325.         System.out.println ("\t||-------------------------------------------------------------------------------------------------------------------||");

  326.         System.out.println ("\t||                                      BOND CASH FLOW PERIOD DATES AND FACTORS                                      ||");

  327.         System.out.println ("\t||-------------------------------------------------------------------------------------------------------------------||");

  328.         System.out.println ("\t||   L -> R:                                                                                                         ||");

  329.         System.out.println ("\t||           - Period Start Date                                                                                     ||");

  330.         System.out.println ("\t||           - Period End Date                                                                                       ||");

  331.         System.out.println ("\t||           - Period Pay Date                                                                                       ||");

  332.         System.out.println ("\t||           - Period FX Fixing Date                                                                                 ||");

  333.         System.out.println ("\t||           - Period Is FX MTM?                                                                                     ||");

  334.         System.out.println ("\t||           - Period Tenor                                                                                          ||");

  335.         System.out.println ("\t||           - Period Coupon Frequency                                                                               ||");

  336.         System.out.println ("\t||           - Period Pay Currency                                                                                   ||");

  337.         System.out.println ("\t||           - Period Coupon Currency                                                                                ||");

  338.         System.out.println ("\t||           - Period Basis                                                                                          ||");

  339.         System.out.println ("\t||           - Period Base Notional                                                                                  ||");

  340.         System.out.println ("\t||           - Period Notional                                                                                       ||");

  341.         System.out.println ("\t||           - Period Coupon Factor                                                                                  ||");

  342.         System.out.println ("\t||-------------------------------------------------------------------------------------------------------------------||");

  343.         boolean bTerminateCashFlow = false;

  344.         for (CompositePeriod p : bond.couponPeriods()) {
  345.             if (bTerminateCashFlow) break;

  346.             int iEndDate = p.endDate();

  347.             if (iEndDate >= wi.date()) {
  348.                 iEndDate = wi.date();

  349.                 bTerminateCashFlow = true;
  350.             }

  351.             System.out.println ("\t|| " +
  352.                 DateUtil.YYYYMMDD (p.startDate()) + " => " +
  353.                 DateUtil.YYYYMMDD (iEndDate) + " | " +
  354.                 DateUtil.YYYYMMDD (p.payDate()) + " | " +
  355.                 DateUtil.YYYYMMDD (p.fxFixingDate()) + " | " +
  356.                 p.isFXMTM() + " | " +
  357.                 p.tenor() + " | " +
  358.                 p.freq() + " | " +
  359.                 p.payCurrency() + " | " +
  360.                 p.couponCurrency() + " | " +
  361.                 FormatUtil.FormatDouble (p.basis(), 1, 0, 10000.) + " | " +
  362.                 FormatUtil.FormatDouble (p.baseNotional(), 1, 4, 1.) + " | " +
  363.                 FormatUtil.FormatDouble (bond.notional (iEndDate), 1, 4, 1.) + " | " +
  364.                 FormatUtil.FormatDouble (p.couponFactor (iEndDate), 1, 4, 1.) + " ||"
  365.             );
  366.         }

  367.         System.out.println ("\t||-------------------------------------------------------------------------------------------------------------------||");

  368.         System.out.println();

  369.         double dblPreviousPeriodNotional = bond.notional (dtEffective.julian());

  370.         System.out.println ("\t||-------------------------------------------------------------------------------------------------------||");

  371.         System.out.println ("\t||                                    PERIOD LABELS AND CURVE FACTORS                                    ||");

  372.         System.out.println ("\t||-------------------------------------------------------------------------------------------------------||");

  373.         System.out.println ("\t||   L -> R:                                                                                             ||");

  374.         System.out.println ("\t||           - Period Start Date                                                                         ||");

  375.         System.out.println ("\t||           - Period End Date                                                                           ||");

  376.         System.out.println ("\t||           - Period Credit Label                                                                       ||");

  377.         System.out.println ("\t||           - Period Funding Label                                                                      ||");

  378.         System.out.println ("\t||           - Period Coupon Rate (%)                                                                    ||");

  379.         System.out.println ("\t||           - Period Coupon Year Fraction                                                               ||");

  380.         System.out.println ("\t||           - Period Coupon Amount                                                                      ||");

  381.         System.out.println ("\t||           - Period Principal Amount                                                                   ||");

  382.         System.out.println ("\t||           - Period Discount Factor                                                                    ||");

  383.         System.out.println ("\t||           - Period Survival Probability                                                               ||");

  384.         System.out.println ("\t||           - Period Recovery                                                                           ||");

  385.         System.out.println ("\t||-------------------------------------------------------------------------------------------------------||");

  386.         bTerminateCashFlow = false;

  387.         for (CompositePeriod p : bond.couponPeriods()) {
  388.             if (bTerminateCashFlow) break;

  389.             int iEndDate = p.endDate();

  390.             if (iEndDate >= wi.date()) {
  391.                 iEndDate = wi.date();

  392.                 bTerminateCashFlow = true;
  393.             }

  394.             int iPayDate = p.payDate();

  395.             int iStartDate = p.startDate();

  396.             double dblCouponRate = bond.couponMetrics (
  397.                 iPayDate,
  398.                 valParams,
  399.                 csqc
  400.             ).rate();

  401.             double dblCouponDCF = p.couponDCF();

  402.             double dblCurrentPeriodNotional = bond.notional (iEndDate);

  403.             System.out.println ("\t|| " +
  404.                 DateUtil.YYYYMMDD (iStartDate) + " => " +
  405.                 DateUtil.YYYYMMDD (iEndDate) + " | " +
  406.                 p.creditLabel().fullyQualifiedName() + " | " +
  407.                 p.fundingLabel().fullyQualifiedName() + " | " +
  408.                 FormatUtil.FormatDouble (dblCouponRate, 1, 2, 100.) + "% | " +
  409.                 FormatUtil.FormatDouble (dblCouponDCF, 1, 4, 1.) + " | " +
  410.                 FormatUtil.FormatDouble (dblCouponRate * dblCouponDCF * dblCurrentPeriodNotional * p.couponFactor (iEndDate), 1, 4, 1.) + " | " +
  411.                 FormatUtil.FormatDouble (dblPreviousPeriodNotional - dblCurrentPeriodNotional, 1, 4, 1.) + " | " +
  412.                 FormatUtil.FormatDouble (p.df (csqc), 1, 4, 1.) + " | " +
  413.                 FormatUtil.FormatDouble (p.survival (csqc), 1, 4, 1.) + " | " +
  414.                 FormatUtil.FormatDouble (p.recovery (csqc), 2, 0, 100.) + "% ||"
  415.             );

  416.             dblPreviousPeriodNotional = dblCurrentPeriodNotional;
  417.         }

  418.         System.out.println ("\t|| " +
  419.             DateUtil.YYYYMMDD (dtEffective.julian()) + " => " +
  420.             DateUtil.YYYYMMDD (wi.date()) + " | " +
  421.             bond.creditLabel().fullyQualifiedName() + " | " +
  422.             bond.fundingLabel().fullyQualifiedName() + " | " +
  423.             FormatUtil.FormatDouble (0., 1, 2, 100.) + "% | " +
  424.             FormatUtil.FormatDouble (0., 1, 4, 1.) + " | " +
  425.             FormatUtil.FormatDouble (0., 1, 4, 1.) + " | " +
  426.             FormatUtil.FormatDouble (bond.notional (dtMaturity.julian()) * wi.factor(), 1, 4, 1.) + " | " +
  427.             FormatUtil.FormatDouble (mdfc.df (dtMaturity), 1, 4, 1.) + " | " +
  428.             FormatUtil.FormatDouble (cc.survival (dtMaturity), 1, 4, 1.) + " | " +
  429.             FormatUtil.FormatDouble (cc.recovery (dtMaturity), 2, 0, 100.) + "% ||"
  430.         );

  431.         System.out.println ("\t||-------------------------------------------------------------------------------------------------------||");

  432.         System.out.println();

  433.         System.out.println();

  434.         System.out.println ("\t||--------------------------------------------------------------------------------------------------------------------||");

  435.         System.out.println ("\t||                                       CASH FLOW PERIODS CONVEXITY CORRECTION                                       ||");

  436.         System.out.println ("\t||--------------------------------------------------------------------------------------------------------------------||");

  437.         System.out.println ("\t||    L -> R:                                                                                                         ||");

  438.         System.out.println ("\t||            - Collateral Credit Adjustment                                                                          ||");

  439.         System.out.println ("\t||            - Collateral Forward Adjustment                                                                         ||");

  440.         System.out.println ("\t||            - Collateral Funding Adjustment                                                                         ||");

  441.         System.out.println ("\t||            - Collateral FX Adjustment                                                                              ||");

  442.         System.out.println ("\t||            - Credit Forward Adjustment                                                                             ||");

  443.         System.out.println ("\t||            - Credit Funding Adjustment                                                                             ||");

  444.         System.out.println ("\t||            - Credit FX Adjustment                                                                                  ||");

  445.         System.out.println ("\t||            - Forward Funding Adjustment                                                                            ||");

  446.         System.out.println ("\t||            - Forward FX Adjustment                                                                                 ||");

  447.         System.out.println ("\t||            - Funding FX Adjustment                                                                                 ||");

  448.         System.out.println ("\t||--------------------------------------------------------------------------------------------------------------------||");

  449.         for (CompositePeriod p : bond.couponPeriods()) {
  450.             ConvexityAdjustment ca = p.terminalConvexityAdjustment (
  451.                 dtSpot.julian(),
  452.                 csqc
  453.             );

  454.             System.out.println ("\t|| " +
  455.                 DateUtil.YYYYMMDD (p.startDate()) + " => " +
  456.                 DateUtil.YYYYMMDD (p.endDate()) + " | " +
  457.                 FormatUtil.FormatDouble (ca.collateralCredit(), 1, 3, 1.) + " | " +
  458.                 FormatUtil.FormatDouble (ca.collateralForward(), 1, 3, 1.) + " | " +
  459.                 FormatUtil.FormatDouble (ca.collateralFunding(), 1, 3, 1.) + " | " +
  460.                 FormatUtil.FormatDouble (ca.collateralFX(), 1, 3, 1.) + " | " +
  461.                 FormatUtil.FormatDouble (ca.creditForward(), 1, 3, 1.) + " | " +
  462.                 FormatUtil.FormatDouble (ca.creditFunding(), 1, 3, 1.) + " | " +
  463.                 FormatUtil.FormatDouble (ca.creditFX(), 1, 3, 1.) + " | " +
  464.                 FormatUtil.FormatDouble (ca.forwardFunding(), 1, 3, 1.) + " | " +
  465.                 FormatUtil.FormatDouble (ca.forwardFX(), 1, 3, 1.) + " | " +
  466.                 FormatUtil.FormatDouble (ca.fundingFX(), 1, 3, 1.) + " ||"
  467.             );
  468.         }

  469.         System.out.println ("\t||--------------------------------------------------------------------------------------------------------------------||");

  470.         System.out.println();

  471.         EnvManager.TerminateEnv();
  472.     }
  473. }