Package com.opengamma.core.marketdatasnapshot

Examples of com.opengamma.core.marketdatasnapshot.YieldCurveKey


  @Override
  public StructureIdentifier<YieldCurveKey> getStructuredIdentifier(ValueSpecification spec) {
    Currency currency = Currency.of(spec.getTargetSpecification().getUniqueId().getValue());
    String curve = getSingleProperty(spec, ValuePropertyNames.CURVE);
    return StructureIdentifier.of(new YieldCurveKey(currency, curve));
  }
View Full Code Here


    // Selector is the underlying, not composite
    assertEquals(result.containsKey(yieldCurveSelector), true);
  }

  private DistinctMarketDataSelector createYieldCurveSelector(Currency currency, String curveType) {
    return YieldCurveSelector.of(new YieldCurveKey(currency, curveType));
  }
View Full Code Here

  @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

  @Test
  public void structureType() {
    PointSelector selector = builder().getSelector(); // will match any ExternalId
    assertNotNull(selector.findMatchingSelector(_structureId, "default", _noOpResolver));
    StructureIdentifier<YieldCurveKey> structureId = StructureIdentifier.of(new YieldCurveKey(Currency.GBP, "a curve"));
    assertNull(selector.findMatchingSelector(structureId, "default", _noOpResolver));
  }
View Full Code Here

TOP

Related Classes of com.opengamma.core.marketdatasnapshot.YieldCurveKey

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.