Package com.opengamma.engine.marketdata.manipulator

Examples of com.opengamma.engine.marketdata.manipulator.MarketDataSelector


   * @param defaults The default options whose values are used if there are values missing in the base options, can be null
   * @return A set of merged options, not null
   */
  protected ViewCycleExecutionOptions merge(ViewCycleExecutionOptions base, ViewCycleExecutionOptions defaults) {
    List<MarketDataSpecification> marketDataSpecifications = base.getMarketDataSpecifications();
    MarketDataSelector marketDataSelector = base.getMarketDataSelector();
    Map<DistinctMarketDataSelector, FunctionParameters> functionParameters = base.getFunctionParameters();
    Instant valuationTime = base.getValuationTime();
    if (defaults != null) {
      if (marketDataSpecifications.isEmpty()) {
        marketDataSpecifications = defaults.getMarketDataSpecifications();
View Full Code Here


   * @return a market data manipulator combined those found in the execution context and the view defintion
   */
  private MarketDataSelectionGraphManipulator createMarketDataManipulator(ViewCycleExecutionOptions executionOptions,
      Map<String, Map<DistinctMarketDataSelector, FunctionParameters>> specificSelectors) {

    MarketDataSelector executionOptionsMarketDataSelector = executionOptions != null ?
        executionOptions.getMarketDataSelector() :
        NoOpMarketDataSelector.getInstance();

    return new MarketDataSelectionGraphManipulator(executionOptionsMarketDataSelector, specificSelectors);
  }
View Full Code Here

  @Test
  public void roundTrip() {
    Simulation simulation = new Simulation("test simulation");
    simulation.scenario("scenario1").curve().named("foo").apply().parallelShift(0.1);
    simulation.scenario("scenario2").curve().named("bar").apply().parallelShift(0.1);
    MarketDataSelector selector = CompositeMarketDataSelector.of(simulation.allSelectors());
    ViewCycleExecutionOptions options = ViewCycleExecutionOptions.builder().setMarketDataSelector(selector).create();
    List<ViewCycleExecutionOptions> optionsList = simulation.cycleExecutionOptions(options, simulation.allSelectors());
    ArbitraryViewCycleExecutionSequence sequence = new ArbitraryViewCycleExecutionSequence(optionsList);
    FudgeSerializer serializer = new FudgeSerializer(OpenGammaFudgeContext.getInstance());
    ArbitraryViewCycleExecutionSequenceFudgeBuilder fudgeBuilder = new ArbitraryViewCycleExecutionSequenceFudgeBuilder();
View Full Code Here

TOP

Related Classes of com.opengamma.engine.marketdata.manipulator.MarketDataSelector

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.