Examples of spotIndexValue()


Examples of com.opengamma.analytics.financial.equity.option.EquityIndexOptionBlackMethod.spotIndexValue()

      final Set<ValueRequirement> desiredValues, final ComputationTargetSpecification targetSpec, final ValueProperties resultProperties) {
    final ValueSpecification resultSpec = new ValueSpecification(getValueRequirementNames()[0], targetSpec, resultProperties);
    //FIXME use the type system
    if (derivative instanceof EquityIndexOption) {
      final EquityIndexOptionBlackMethod model = EquityIndexOptionBlackMethod.getInstance();
      return Collections.singleton(new ComputedValue(resultSpec, model.spotIndexValue(market)));
    }
    final EquityOptionBlackMethod model = EquityOptionBlackMethod.getInstance();
    return Collections.singleton(new ComputedValue(resultSpec, model.spotIndexValue(market)));
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.equity.option.EquityIndexOptionBlackMethod.spotIndexValue()

    if (derivative instanceof EquityIndexOption) {
      final EquityIndexOptionBlackMethod model = EquityIndexOptionBlackMethod.getInstance();
      return Collections.singleton(new ComputedValue(resultSpec, model.spotIndexValue(market)));
    }
    final EquityOptionBlackMethod model = EquityOptionBlackMethod.getInstance();
    return Collections.singleton(new ComputedValue(resultSpec, model.spotIndexValue(market)));
  }

  @Override
  protected String getCalculationMethod() {
    return CalculationPropertyNamesAndValues.BLACK_METHOD;
View Full Code Here

Examples of com.opengamma.analytics.financial.equity.option.EquityIndexOptionBlackMethod.spotIndexValue()

  @Override
  protected Set<ComputedValue> computeValues(final Set<EquityIndexOption> vanillaOptions, final StaticReplicationDataBundle market, final FunctionInputs inputs,
      final Set<ValueRequirement> desiredValues, final ComputationTargetSpecification targetSpec, final ValueProperties resultProperties) {
    final ValueSpecification resultSpec = new ValueSpecification(getValueRequirementNames()[0], targetSpec, resultProperties);
    final EquityIndexOptionBlackMethod model = EquityIndexOptionBlackMethod.getInstance();
    return Collections.singleton(new ComputedValue(resultSpec, model.spotIndexValue(market)));
  }

  //TODO this function return values unnecessary properties - the surface name, currency, interpolator and calculation method, which are used
  // to construct the market data bundle.
View Full Code Here

Examples of com.opengamma.analytics.financial.equity.option.EquityOptionBlackMethod.spotIndexValue()

    if (derivative instanceof EquityIndexOption) {
      final EquityIndexOptionBlackMethod model = EquityIndexOptionBlackMethod.getInstance();
      return Collections.singleton(new ComputedValue(resultSpec, model.spotIndexValue(market)));
    }
    final EquityOptionBlackMethod model = EquityOptionBlackMethod.getInstance();
    return Collections.singleton(new ComputedValue(resultSpec, model.spotIndexValue(market)));
  }

  @Override
  protected String getCalculationMethod() {
    return CalculationPropertyNamesAndValues.BLACK_METHOD;
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.