Examples of Portfolio


Examples of com.opengamma.core.position.Portfolio

   * that only a small sample of each unique asset class is considered - this is to save time when there are many portfolios to consider.
   *
   * @param portfolio a portfolio containing a sample of asset class instances
   */
  public void processAvailablePortfolioOutputs(final Portfolio portfolio) {
    final Portfolio filtered;
    synchronized (_securityTypePortfolioFilter) {
      filtered = new PortfolioFilter(_securityTypePortfolioFilter).filter(portfolio);
    }
    if (filtered.getRootNode().getChildNodes().isEmpty() && filtered.getRootNode().getPositions().isEmpty()) {
      s_logger.debug("Ignoring {} ({})", portfolio.getName(), portfolio.getUniqueId());
    } else {
      s_logger.info("Calculating available outputs from {} ({})", portfolio.getName(), portfolio.getUniqueId());
      final AvailableOutputs outputs = new AvailablePortfolioOutputs(filtered, getFunctionRepository(), getFunctionExclusionGroups(), getMarketDataAvailability(), null);
      synchronized (_availableOutputsBySecurityType) {
View Full Code Here

Examples of com.opengamma.integration.tool.portfolio.xml.v1_0.jaxb.Portfolio

   * @param portfolioDocument the portfolio document to create a dummy portfolio for
   * @return the dummy portfolio
   */
  private Portfolio createDummyPortfolio(PortfolioDocumentV1_0 portfolioDocument) {

    Portfolio pf = new Portfolio();

    // We leave the portfolio unnamed so a name can be provided from the command line

    // If we have trades with no positions, just add them to the dummy portfolio. If we have positions, just use them
    Set<Position> positions = portfolioDocument.getPositions();

    if (positions == null || positions.isEmpty()) {
      pf.setTrades(portfolioDocument.getTrades());
    } else {
      pf.setPositions(positions);
    }
    return pf;
  }
View Full Code Here

Examples of com.projity.pm.task.Portfolio

      List<Integer> colWidth=null;
//      if (sp!=null){
//        fieldArray=(SpreadSheetFieldArray)sp.getFieldArray();
//        colWidth=getColWidth(sp, fieldArray);
//      }
      Portfolio portfolio = frame.getGraphicManager().getProjectFactory().getPortfolio();
      cache=NodeModelCacheFactory.getInstance().createDefaultCache(portfolio.getNodeModel(), portfolio,NodeModelCache.PROJECT_TYPE,"OfflineProjects",null);
      ((GanttSVGRenderer)renderer).init(frame.getProject(),cache,fieldArray,colWidth,frame.getScale(),false);
    }else if (view instanceof PertView){
      renderer=new NetworkSVGRenderer();
      cache=NodeModelCacheFactory.getInstance().createFilteredCache((ReferenceNodeModelCache)frame.getReferenceCache(true),"Network",null);
      ((NetworkSVGRenderer)renderer).init(frame.getProject(),cache,NetworkSVGRenderer.PERT,frame.getScale());
View Full Code Here

Examples of com.projity.pm.task.Portfolio

    return resourceView;
  }

  public ProjectView getProjectView() {
    if (projectView == null) {
      Portfolio portfolio = getGraphicManager().getProjectFactory().getPortfolio();
      projectView = new ProjectView(portfolio.getNodeModel(), portfolio);
      restoreWorkspaceFor(projectView);
    }
    return projectView;
  }
View Full Code Here

Examples of com.sandrini.sandelivery.model.Portfolio

  public List<Portfolio> getAllPortfolio() {
    return getSession().createQuery("from Portfolio order by title").list();
  }

  public void deletePortfolio(Long serviceId) {
    Portfolio service = getPortfolio(serviceId);
    if (service != null) {
      getSession().delete(service);
    }
  }
View Full Code Here

Examples of com.sandrini.sandelivery.model.Portfolio

      return null;
    }
  }

  public void createPortfolio(String title, String description, String image) {
    Portfolio portfolio = new Portfolio();
    portfolio.setTitle(title);
    portfolio.setDescription(description);
    portfolio.setImage(image);
    portfolioDao.createPortfolio(portfolio);
  }
View Full Code Here

Examples of name.abuchen.portfolio.model.Portfolio

        Security d = new SecurityBuilder() //
                        .addPrice("2010-01-01", 1200) //
                        .assign(taxonomy, "equity") //
                        .addTo(client);

        Portfolio portfolio = new PortfolioBuilder() //
                        .inbound_delivery(a, "2010-01-01", 1000000, 10000) //
                        .inbound_delivery(c, "2010-01-01", 1000000, 12000) //
                        .inbound_delivery(d, "2010-01-01", 1000000, 12000) //
                        .addTo(client);
View Full Code Here

Examples of name.abuchen.portfolio.model.Portfolio

                        .addPrice("2010-01-01", 1000) //
                        .assign(taxonomy, "debt", Classification.ONE_HUNDRED_PERCENT / 2) //
                        .assign(taxonomy, "equity", Classification.ONE_HUNDRED_PERCENT / 2) //
                        .addTo(client);

        Portfolio portfolio = new PortfolioBuilder() //
                        .inbound_delivery(a, "2010-01-01", 1000000, 10000) //
                        .addTo(client);

        PortfolioSnapshot snapshot = PortfolioSnapshot.create(portfolio, new DateTime("2010-01-01").toDate());
        assertNotNull(snapshot);
View Full Code Here

Examples of name.abuchen.portfolio.model.Portfolio

                        .addPrice("2010-01-01", 1000) //
                        .assign(taxonomy, "cat1", Classification.ONE_HUNDRED_PERCENT / 2) //
                        .assign(taxonomy, "cat2", Classification.ONE_HUNDRED_PERCENT / 2) //
                        .addTo(client);

        Portfolio portfolio = new PortfolioBuilder() //
                        .inbound_delivery(a, "2010-01-01", 1000000, 10000) //
                        .addTo(client);

        PortfolioSnapshot snapshot = PortfolioSnapshot.create(portfolio, new DateTime("2010-01-01").toDate());
        assertNotNull(snapshot);
View Full Code Here

Examples of name.abuchen.portfolio.model.Portfolio

        Security a = new SecurityBuilder() //
                        .addPrice("2010-01-01", 1000) //
                        .addTo(client);

        Portfolio portfolio = new PortfolioBuilder() //
                        .inbound_delivery(a, "2010-01-01", 1000000, 10000) //
                        .addTo(client);

        PortfolioSnapshot snapshot = PortfolioSnapshot.create(portfolio, new DateTime("2010-01-01").toDate());
        assertNotNull(snapshot);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.