Package com.opengamma.financial.analytics.ircurve.strips

Examples of com.opengamma.financial.analytics.ircurve.strips.DataFieldType


  @Override
  public CurveNodeWithIdentifier visitFRANode(final FRANode node) {
    final Tenor tenor = node.getFixingEnd();
    final ExternalId identifier = _nodeIdMapper.getFRANodeId(_curveDate, tenor);
    final String dataField = _nodeIdMapper.getFRANodeDataField(tenor);
    final DataFieldType fieldType = _nodeIdMapper.getFRANodeDataFieldType(tenor);
    return new CurveNodeWithIdentifier(node, identifier, dataField, fieldType);
  }
View Full Code Here


    final Tenor tenor = node.getMaturityTenor();
    if (ids.get(tenor) instanceof StaticCurvePointsInstrumentProvider) {
      final StaticCurvePointsInstrumentProvider provider = (StaticCurvePointsInstrumentProvider) ids.get(tenor);
      final ExternalId identifier = provider.getInstrument(_curveDate, tenor);
      final String dataField = provider.getMarketDataField();
      final DataFieldType fieldType = provider.getDataFieldType();
      final ExternalId underlyingId = provider.getUnderlyingInstrument();
      final String underlyingField = provider.getUnderlyingMarketDataField();
      return new PointsCurveNodeWithIdentifier(node, identifier, dataField, fieldType, underlyingId, underlyingField);
    }
    final ExternalId identifier = _nodeIdMapper.getFXForwardNodeId(_curveDate, tenor);
    final String dataField = _nodeIdMapper.getFXForwardNodeDataField(tenor);
    final DataFieldType fieldType = _nodeIdMapper.getFXForwardNodeDataFieldType(tenor);
    return new CurveNodeWithIdentifier(node, identifier, dataField, fieldType);
  }
View Full Code Here

  @Override
  public CurveNodeWithIdentifier visitRateFutureNode(final RateFutureNode node) {
    final Tenor startTenor = node.getStartTenor();
    final ExternalId identifier = _nodeIdMapper.getRateFutureNodeId(_curveDate, startTenor, node.getFutureTenor(), node.getFutureNumber());
    final String dataField = _nodeIdMapper.getRateFutureNodeDataField(startTenor);
    final DataFieldType fieldType = _nodeIdMapper.getRateFutureNodeDataFieldType(startTenor);
    return new CurveNodeWithIdentifier(node, identifier, dataField, fieldType);
  }
View Full Code Here

  @Override
  public CurveNodeWithIdentifier visitSwapNode(final SwapNode node) {
    final Tenor tenor = node.getMaturityTenor();
    final ExternalId identifier = _nodeIdMapper.getSwapNodeId(_curveDate, tenor);
    final String dataField = _nodeIdMapper.getSwapNodeDataField(tenor);
    final DataFieldType fieldType = _nodeIdMapper.getSwapNodeDataFieldType(tenor);
    return new CurveNodeWithIdentifier(node, identifier, dataField, fieldType);
  }
View Full Code Here

  @Override
  public CurveNodeWithIdentifier visitZeroCouponInflationNode(final ZeroCouponInflationNode node) {
    final Tenor tenor = node.getTenor();
    final ExternalId identifier = _nodeIdMapper.getZeroCouponInflationNodeId(_curveDate, tenor);
    final String dataField = _nodeIdMapper.getZeroCouponInflationNodeDataField(tenor);
    final DataFieldType fieldType = _nodeIdMapper.getZeroCouponInflationNodeDataFieldType(tenor);
    return new CurveNodeWithIdentifier(node, identifier, dataField, fieldType);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.financial.analytics.ircurve.strips.DataFieldType

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.