Package com.opengamma.financial.generator

Examples of com.opengamma.financial.generator.TreePortfolioNodeGenerator


    final CMSSwapSecurityGenerator cmsSwap = new CMSSwapSecurityGenerator(TRADE_DATE, TENORS);
    final CMSCapFloorSpreadSecurityGenerator cmsSpreads = new CMSCapFloorSpreadSecurityGenerator(TRADE_DATE, PAY_TENORS, RECEIVE_TENORS, TENORS, STRIKES);
    configure(capFloors);
    configure(cmsSwap);
    configure(cmsSpreads);
    final TreePortfolioNodeGenerator rootNode = new TreePortfolioNodeGenerator(new StaticNameGenerator("Mixed CM Portfolio"));
    rootNode.addChildNode(capFloors);
    rootNode.addChildNode(cmsSwap);
    rootNode.addChildNode(cmsSpreads);
    return rootNode;
  }
View Full Code Here


  @Override
  public PortfolioNodeGenerator createPortfolioNodeGenerator(final int portfolioSize) {
    final SecurityGenerator<ManageableSecurity> securities = new GovernmentBondSecurityGenerator<>(BONDS, AMOUNTS, "US Treasuries");
    configure(securities);
    final TreePortfolioNodeGenerator rootNode = new TreePortfolioNodeGenerator(new StaticNameGenerator("Government Bonds"));
    rootNode.addChildNode((PortfolioNodeGenerator) securities);
    return rootNode;
  }
View Full Code Here

    final MySecurityGenerator<ManageableSecurity> fourthGenerator = getVanillaSwapSecurityGenerator();
    configure(firstGenerator);
    configure(secondGenerator);
    configure(thirdGenerator);
    configure(fourthGenerator);
    final TreePortfolioNodeGenerator rootNode = new TreePortfolioNodeGenerator(new StaticNameGenerator("EUR Fixed Income Portfolio"));
    rootNode.addChildNode(firstGenerator);
    rootNode.addChildNode(secondGenerator);
    rootNode.addChildNode(thirdGenerator);
    rootNode.addChildNode(fourthGenerator);
    return rootNode;
  }
View Full Code Here

  @Override
  public PortfolioNodeGenerator createPortfolioNodeGenerator(final int size) {
    final FutureSecurityGenerator<ManageableSecurity> generator = getIRFutureSecurityGenerator();
    configure(generator);
    final TreePortfolioNodeGenerator rootNode = new TreePortfolioNodeGenerator(new StaticNameGenerator("ER Future Portfolio"));
    rootNode.addChildNode(generator);
    return rootNode;
  }
View Full Code Here

    final MySecurityGenerator<ManageableSecurity> fourthGenerator = getSwaptionParityGenerator(securityMaster);
    configure(firstGenerator);
    configure(secondGenerator);
    configure(thirdGenerator);
    configure(fourthGenerator);
    final TreePortfolioNodeGenerator rootNode = new TreePortfolioNodeGenerator(new StaticNameGenerator("Swap / Swaption Portfolio"));
    rootNode.addChildNode(firstGenerator);
    rootNode.addChildNode(secondGenerator);
    rootNode.addChildNode(thirdGenerator);
    rootNode.addChildNode(fourthGenerator);
    return rootNode;
  }
View Full Code Here

TOP

Related Classes of com.opengamma.financial.generator.TreePortfolioNodeGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.