calcConfig.addSpecificRequirements(riskFactors.getPositionRiskFactors(portfolio));
}
@Override
protected void addValueRequirements(final FunctionCompilationContext context, final Position position, final ViewCalculationConfiguration calcConfig) {
final RiskFactorsGatherer riskFactors = OpenGammaCompilationContext.getRiskFactorsGatherer(context);
calcConfig.addSpecificRequirements(riskFactors.getPositionRiskFactors(position));
}