Examples of canApplyTo()


Examples of com.opengamma.engine.function.CompiledFunctionDefinition.canApplyTo()

            if (!functionDef.getTargetType().isCompatible(target.getType())) {
              s_logger.debug("Function {} type is not compatible with {}", functionDef, target);
              continue;
            }
            final ComputationTarget adjustedTarget = ResolutionRule.adjustTarget(functionDef.getTargetType(), target);
            if (!functionDef.canApplyTo(context.getCompilationContext(), adjustedTarget)) {
              s_logger.debug("Function {} cannot be applied to {}", functionDef, target);
              continue;
            }
            Collection<ValueSpecification> results = functionDef.getResults(context.getCompilationContext(), adjustedTarget);
            if ((results == null) || results.isEmpty()) {
View Full Code Here

Examples of com.opengamma.engine.function.CompiledFunctionDefinition.canApplyTo()

   */
  public Set<ValueSpecification> getResults(final ComputationTarget target, final FunctionCompilationContext context) {
    final CompiledFunctionDefinition function = _parameterizedFunction.getFunction();
    // check the function can apply to the target
    //DebugUtils.canApplyTo_enter();
    if (!function.canApplyTo(context, target)) {
      //DebugUtils.canApplyTo_leave();
      return null;
    }
    //DebugUtils.canApplyTo_leave();
    // return the maximal set of results the function can produce for the target
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.