Package com.opengamma.master.portfolio.impl

Examples of com.opengamma.master.portfolio.impl.InMemoryPortfolioMaster


  @BeforeMethod
  public void setUp() throws Exception {
    _securityMaster = new InMemorySecurityMaster();
    _positionMaster = new InMemoryPositionMaster();
    _portfolioMaster = new InMemoryPortfolioMaster();
    _builder = new OtcTradeBuilder(_positionMaster,
                                   _portfolioMaster,
                                   _securityMaster,
                                   BlotterUtils.getMetaBeans(),
                                   BlotterUtils.getStringConvert());
View Full Code Here


  private ManageablePosition _savedPosition;
  private ManageablePortfolio _savedPortfolio;

  @BeforeMethod
  public void setUp() throws Exception {
    _portfolioMaster = new InMemoryPortfolioMaster();
    _positionMaster = new InMemoryPositionMaster();
    InMemorySecurityMaster securityMaster = new InMemorySecurityMaster();
    securityMaster.add(new SecurityDocument(APPLE_SECURITY));
    securityMaster.add(new SecurityDocument(INTEL_SECURITY));
    BigDecimal quantity = BigDecimal.valueOf(20);
View Full Code Here

  private boolean _publishRest = true;


  @Override
  public void init(final ComponentRepository repo, final LinkedHashMap<String, String> configuration) {
    final PortfolioMaster master = new InMemoryPortfolioMaster();
    final ComponentInfo info = new ComponentInfo(PortfolioMaster.class, getClassifier());
    info.addAttribute(ComponentInfoAttributes.LEVEL, 1);
    info.addAttribute(ComponentInfoAttributes.REMOTE_CLIENT_JAVA, RemotePortfolioMaster.class);
    info.addAttribute(ComponentInfoAttributes.UNIQUE_ID_SCHEME, InMemoryPortfolioMaster.DEFAULT_OID_SCHEME);
    repo.registerComponent(info, master);
View Full Code Here

    _pos4.getPosition().addTrade(JodaBeanUtils.clone(TRADE1));
    _pos4.getPosition().addTrade(JodaBeanUtils.clone(TRADE2));
    _pos4.getPosition().addTrade(JodaBeanUtils.clone(TRADE3));
    _pos4 = _positionMaster.add(_pos4);
   
    _portfolioMaster = new InMemoryPortfolioMaster();
   
    _portfolioMaster.add(new PortfolioDocument(new ManageablePortfolio("Port1", generatePortfolio())));
   
  }
View Full Code Here

  @BeforeMethod
  public void setUp() throws Exception {

    _toolContext = new ToolContext();
    _portfolioMaster = new InMemoryPortfolioMaster();
    _toolContext.setPortfolioMaster(_portfolioMaster);
    _positionMaster = new InMemoryPositionMaster();
    _toolContext.setPositionMaster(_positionMaster);
    _securityMaster = new InMemorySecurityMaster();
    _toolContext.setSecurityMaster(_securityMaster);
View Full Code Here

TOP

Related Classes of com.opengamma.master.portfolio.impl.InMemoryPortfolioMaster

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.