Examples of DistinctMarketDataSelector


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

   */
  @SuppressWarnings("unchecked")
  public ScenarioDefinition createDefinition() {
    Map<DistinctMarketDataSelector, FunctionParameters> params = Maps.newHashMapWithExpectedSize(_manipulations.size());
    for (Map.Entry<DistinctMarketDataSelector, Collection<StructureManipulator<?>>> entry : _manipulations.asMap().entrySet()) {
      DistinctMarketDataSelector selector = entry.getKey();
      // ListMultimap always has Lists as entries even if the signature doesn't say so
      List<StructureManipulator<?>> manipulators = (List<StructureManipulator<?>>) entry.getValue();
      CompositeStructureManipulator compositeManipulator = new CompositeStructureManipulator(manipulators);
      SimpleFunctionParameters functionParameters = new SimpleFunctionParameters();
      functionParameters.setValue(StructureManipulationFunction.EXPECTED_PARAMETER_NAME, compositeManipulator);
View Full Code Here

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

    if (field != null) {
      Map<DistinctMarketDataSelector, FunctionParameters> paramMap = Maps.newHashMap();
      FudgeMsg paramsMsg = (FudgeMsg) field.getValue();
      for (FudgeField paramsField : paramsMsg) {
        FudgeMsg paramMsg = (FudgeMsg) paramsField.getValue();
        DistinctMarketDataSelector selector = deserializer.fieldValueToObject(DistinctMarketDataSelector.class,
                                                                              paramMsg.getByName(SELECTOR));
        FunctionParameters params = deserializer.fieldValueToObject(FunctionParameters.class,
                                                                    paramMsg.getByName(FUNCTION_PARAMETERS));
        paramMap.put(selector, params);
      }
View Full Code Here

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

      int nodeCount = 0;

      for (Map.Entry<DistinctMarketDataSelector, Set<ValueSpecification>> entry : marketDataSelections.entrySet()) {

        DistinctMarketDataSelector selector = entry.getKey();
        Set<ValueSpecification> matchingSpecifications = entry.getValue();

        for (ValueSpecification valueSpecification : matchingSpecifications) {
          FunctionParameters parameters;
          if (functionParameters.containsKey(selector)) {
View Full Code Here

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

  @Test
  public void rountTrip() {
    Map<DistinctMarketDataSelector, FunctionParameters> selectors2params = Maps.newHashMap();
    Map<String, String> params = ImmutableMap.of("foo", "bar");
    DistinctMarketDataSelector selector = YieldCurveSelector.of(new YieldCurveKey(Currency.AUD, "curveKey"));
    selectors2params.put(selector, new SimpleFunctionParameters(params));
    ViewCycleExecutionOptions options =
        ViewCycleExecutionOptions
            .builder()
            .setValuationTime(Instant.now())
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.