Package com.opengamma.financial.property

Examples of com.opengamma.financial.property.DefaultPropertyFunction


      public int getPriority(final CompiledFunctionDefinition function) {
        if (function instanceof CurrencyConversionFunction || function instanceof CurrencySeriesConversionFunction) {
          return Integer.MIN_VALUE;
        }
        if (function instanceof DefaultPropertyFunction) {
          final DefaultPropertyFunction defaultPropertyFunction = (DefaultPropertyFunction) function;
          if (defaultPropertyFunction.isPermitWithout()) {
            // Place below the filtering summing function priority, or the filter may never be applied.
            return -2 + defaultPropertyFunction.getPriority().getPriorityAdjust() - DefaultPropertyFunction.PriorityClass.MAX_ADJUST;
          } else {
            // All other currency injections are important; e.g. the currency constraint can't be omitted for some functions
            return Integer.MAX_VALUE + defaultPropertyFunction.getPriority().getPriorityAdjust() - DefaultPropertyFunction.PriorityClass.MAX_ADJUST;
          }
        }
        if (function instanceof BondPV01CountryCurveFunction) {
          return 6;
        }
View Full Code Here

TOP

Related Classes of com.opengamma.financial.property.DefaultPropertyFunction

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.