Examples of MasterSecuritySource


Examples of com.opengamma.master.security.impl.MasterSecuritySource

    _portfolioMaster = portfolioMaster;
    _positionMaster = positionMaster;
    _securityMaster = securityMaster;

    _securitySource = new MasterSecuritySource(_securityMaster);

    // unique ID and external ID bundle are ignored when comparing securities
    Comparator<Object> alwaysEqualComparator = new Comparator<Object>() {
      @Override
      public int compare(Object notUsed1, Object notUsed2) {
View Full Code Here

Examples of com.opengamma.master.security.impl.MasterSecuritySource

    ArgumentChecker.notNull(securityMaster, "securityMaster");
    _securityMaster = securityMaster;
    _portfolioMaster = portfolioMaster;
    _versionCorrection = versionCorrection;
    _positionMaster = positionMaster;
    _securitySource = new MasterSecuritySource(securityMaster);
  }
View Full Code Here

Examples of com.opengamma.master.security.impl.MasterSecuritySource

    _securityMaster = new InMemorySecurityMaster();
    _organizationMaster = new InMemoryOrganizationMaster();

    _aggregator = new ObligorMarkitSectorAggregationFunction(
        new MasterSecuritySource(_securityMaster), new MasterOrganizationSource(_organizationMaster));
  }
View Full Code Here

Examples of com.opengamma.master.security.impl.MasterSecuritySource

  private AggregationFunction<String> _aggregator;

  @BeforeMethod
  public void setup() {
    _securityMaster = new InMemorySecurityMaster();
    _aggregator = new CdsSeniorityAggregationFunction(new MasterSecuritySource(_securityMaster));
  }
View Full Code Here

Examples of com.opengamma.master.security.impl.MasterSecuritySource

  private AggregationFunction<String> _aggregator;

  @BeforeMethod
  public void setup() {
    _securityMaster = new InMemorySecurityMaster();
    _aggregator = new CdsRedCodeAggregationFunction(new MasterSecuritySource(_securityMaster));
  }
View Full Code Here

Examples of com.opengamma.master.security.impl.MasterSecuritySource

                                     Set<MetaBean> metaBeans,
                                     StringConvert stringConvert) {
    super(positionMaster, portfolioMaster, securityMaster, metaBeans, stringConvert);
    ArgumentChecker.notNull(portfolioMaster, "portfolioMaster");
    _portfolioMaster = portfolioMaster;
    _securitySource = new MasterSecuritySource(getSecurityMaster());
  }
View Full Code Here

Examples of com.opengamma.master.security.impl.MasterSecuritySource

        new DefaultComputationTargetResolver(context.getSecuritySource()).atVersionCorrection(VersionCorrection.LATEST));
    OpenGammaExecutionContext.setHolidaySource(context, getHolidaySource());
    OpenGammaExecutionContext.setRegionSource(context, getRegionSource());
    OpenGammaExecutionContext.setConventionBundleSource(context, getConventionBundleSource());
    OpenGammaExecutionContext.setConventionSource(context, getConventionSource());
    OpenGammaExecutionContext.setSecuritySource(context, new MasterSecuritySource(getSecurityMaster()));
    OpenGammaExecutionContext.setHistoricalTimeSeriesSource(context, getHistoricalSource());
    OpenGammaExecutionContext.setConfigSource(context, getConfigSource());
    OpenGammaExecutionContext.setOrganizationSource(context, getOrganizationSource());
    return context;
  }
View Full Code Here

Examples of com.opengamma.master.security.impl.MasterSecuritySource

    OpenGammaCompilationContext.setHolidaySource(context, getHolidaySource());
    OpenGammaCompilationContext.setRegionSource(context, getRegionSource());
    OpenGammaCompilationContext.setOrganizationSource(context, getOrganizationSource());
    OpenGammaCompilationContext.setConventionBundleSource(context, getConventionBundleSource());
    OpenGammaCompilationContext.setConventionSource(context, getConventionSource());
    OpenGammaCompilationContext.setSecuritySource(context, new MasterSecuritySource(getSecurityMaster()));
    OpenGammaCompilationContext.setHistoricalTimeSeriesResolver(context, new DefaultHistoricalTimeSeriesResolver(new DefaultHistoricalTimeSeriesSelector(getConfigSource()),
        getHistoricalTimeSeriesMaster()));
    final DefaultComputationTargetResolver targetResolver = new DefaultComputationTargetResolver(context.getSecuritySource());
    targetResolver.addResolver(CurrencyPairs.TYPE, new CurrencyPairsResolver(new ConfigDBCurrencyPairsSource(getConfigSource())));
    targetResolver.addResolver(CurrencyMatrixResolver.TYPE, new CurrencyMatrixResolver(new ConfigDBCurrencyMatrixSource(getConfigSource())));
View Full Code Here

Examples of com.opengamma.master.security.impl.MasterSecuritySource

   *
   * @param repo  the component repository, only used to register secondary items like lifecycle, not null
   * @return the security source, not null
   */
  protected SecuritySource createSecuritySource(ComponentRepository repo) {
    return new MasterSecuritySource(getSecurityMaster());
  }
View Full Code Here

Examples of com.opengamma.master.security.impl.MasterSecuritySource

   
    PortfolioCopier portfolioCopier = new SimplePortfolioCopier();

    PositionMaster positionMaster = new InMemoryPositionMaster();
    SecurityMaster securityMaster = new InMemorySecurityMaster();
    SecuritySource securitySource = new MasterSecuritySource(securityMaster);
   
    // Set up mock portfolio master
    PortfolioMaster portfolioMaster = mock(PortfolioMaster.class);
    PortfolioSearchRequest portSearchRequest = new PortfolioSearchRequest();
    portSearchRequest.setName(PORTFOLIO_NAME);
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.