Package org.jamesii.core.experiments.execonfig

Examples of org.jamesii.core.experiments.execonfig.SingularParamBlockUpdate


   */
  public static Set<IParamBlockUpdate> generateUpdates(
      ParameterBlock parameterBlock) {
    Set<IParamBlockUpdate> resultSet = new HashSet<>();
    if (parameterBlock.hasSubBlock(ProcessorFactory.class.getName())) {
      resultSet.add(new SingularParamBlockUpdate(new String[] {},
          ProcessorFactory.class.getName(), parameterBlock
              .getSubBlock(ProcessorFactory.class.getName())));
    }
    return resultSet;
  }
View Full Code Here


   * @return the set of parameter block updates
   */
  public static Set<IParamBlockUpdate> generateUpdates(Double simEndTime,
      ParameterBlock parameterBlock) {
    Set<IParamBlockUpdate> result = generateUpdates(parameterBlock);
    result.add(new SingularParamBlockUpdate(new String[] {},
        ParameterUtils.SIM_STOP_TIME, new ParameterBlock(simEndTime)));
    return result;
  }
View Full Code Here

  @Override
  public ExecutionConfigurationVariable<SingularParamBlockUpdate> getTestObject()
      throws Exception {
    List<SingularParamBlockUpdate> rules = new ArrayList<>();
    rules.add(new SingularParamBlockUpdate(new String[] { "a", "b" }, "c",
        new ParameterBlock("d")));
    return new ExecutionConfigurationVariable<>("var",
        new ParamBlockUpdateModifier<>(rules));
  }
View Full Code Here

  public void testSingularParamBlockUpdate() {

    ParameterBlock paramBlock = new ParameterBlock(PATH_CONCRETE_FACTORY);
    paramBlock.addSubBlock("facParam", 23);

    SingularParamBlockUpdate update =
        new SingularParamBlockUpdate(new String[] { "just", "a", "test" },
            PATH_ABSTRACT_FACTORY, paramBlock);

    ParameterBlock testBlock = new ParameterBlock();

    update.update(testBlock);

    assertTrue(testBlock.hasSubBlock("just"));
    ParameterBlock justBlock = testBlock.getSubBlock("just");
    assertTrue(justBlock.hasSubBlock("a"));
    ParameterBlock aBlock = justBlock.getSubBlock("a");
View Full Code Here

TOP

Related Classes of org.jamesii.core.experiments.execonfig.SingularParamBlockUpdate

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.