Package com.opengamma.engine.function.config

Examples of com.opengamma.engine.function.config.StaticFunctionConfiguration$Meta


public class FunctionConfigurationDefinitionBuilderTest extends AbstractFudgeBuilderTestCase {
   
  @Test
  public void functionConfigurationDefinition() {
    List<String> otherConfigs = ImmutableList.of("CF1", "CF2", "CF3");
    List<StaticFunctionConfiguration> staticFunctions = ImmutableList.of(new StaticFunctionConfiguration("SF1"),
        new StaticFunctionConfiguration("SF2"));
    List<ParameterizedFunctionConfiguration> parameterizedFunctions = ImmutableList.of(
        new ParameterizedFunctionConfiguration("PF1", ImmutableList.of("P11", "P12")),
        new ParameterizedFunctionConfiguration("PF2", ImmutableList.of("P21", "P22")));
    assertEncodeDecodeCycle(FunctionConfigurationDefinition.class, new FunctionConfigurationDefinition("FUNC_TEST", otherConfigs, staticFunctions, parameterizedFunctions));
  }
View Full Code Here


    return new TutorialFunctions().getObjectCreating();
  }

  @Override
  protected void addAllConfigurations(final List<FunctionConfiguration> functions) {
    functions.add(new StaticFunctionConfiguration(TutorialValueFunction.class.getName()));
  }
View Full Code Here

    }
   
    if (message.hasField(STATIC_FUNCTION_FIELD)) {
      List<FudgeField> allStaticFunctions = message.getAllByName(STATIC_FUNCTION_FIELD);
      for (FudgeField fudgeField : allStaticFunctions) {
        staticFunctions.add(new StaticFunctionConfiguration((String) fudgeField.getValue()));
      }
    }
   
    if (message.hasField(PARAMETERIZED_FUNCTION_FIELD)) {
      List<FudgeField> allConfigs = message.getAllByName(PARAMETERIZED_FUNCTION_FIELD);
View Full Code Here

TOP

Related Classes of com.opengamma.engine.function.config.StaticFunctionConfiguration$Meta

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.