aggregators.put(a.getName(), a.getAggregator());
aggregators.put(a.getName(), a.getAggregator());
if (agg.getName().equals(WorksetEmptyConvergenceCriterion.AGGREGATOR_NAME)) { throw new CompilerException("User defined aggregator used the same name as built-in workset " + "termination check aggregator: " + WorksetEmptyConvergenceCriterion.AGGREGATOR_NAME);
assertEquals(aggregatorName, iteration.getAggregators().getAllRegisteredAggregators().iterator().next().getName());
public RuntimeAggregatorRegistry(Collection<AggregatorWithName<?>> aggs) { this.aggregators = new HashMap<String, Aggregator<?>>(); this.previousGlobalAggregate = new HashMap<String, Value>(); for (AggregatorWithName<?> agg : aggs) { this.aggregators.put(agg.getName(), agg.getAggregator()); } }
public RuntimeAggregatorRegistry(Collection<AggregatorWithName<?>> aggs) { this.aggregators = new HashMap<String, Aggregator<?>>(); this.previousGlobalAggregate = new HashMap<String, Value>(); for (AggregatorWithName<?> agg : aggs) { this.aggregators.put(agg.getName(), agg.getAggregator()); } }
public RuntimeAggregatorRegistry(Collection<AggregatorWithName<?>> aggs) { this.aggregators = new HashMap<String, Aggregator<?>>(); this.previousGlobalAggregate = new HashMap<String, Value>(); for (AggregatorWithName<?> agg : aggs) { this.aggregators.put(agg.getName(), agg.getAggregator()); } }
public RuntimeAggregatorRegistry(Collection<AggregatorWithName<?>> aggs) { this.aggregators = new HashMap<String, Aggregator<?>>(); this.previousGlobalAggregate = new HashMap<String, Value>(); for (AggregatorWithName<?> agg : aggs) { this.aggregators.put(agg.getName(), agg.getAggregator()); } }
public void addIterationAggregators(Collection<AggregatorWithName<?>> aggregators) { int num = this.config.getInteger(ITERATION_NUM_AGGREGATORS, 0); for (AggregatorWithName<?> awn : aggregators) { this.config.setString(ITERATION_AGGREGATOR_NAME_PREFIX + num, awn.getName()); try { InstantiationUtil.writeObjectToConfig(awn.getAggregator(), this.config, ITERATION_AGGREGATOR_PREFIX + num); } catch (IOException e) { throw new RuntimeException("Error while writing the aggregator object to the task configuration."); } num++; } this.config.setInteger(ITERATION_NUM_AGGREGATORS, num); }
public void addIterationAggregators(Collection<AggregatorWithName<?>> aggregators) { int num = this.config.getInteger(ITERATION_NUM_AGGREGATORS, 0); for (AggregatorWithName<?> awn : aggregators) { this.config.setString(ITERATION_AGGREGATOR_NAME_PREFIX + num, awn.getName()); try { InstantiationUtil.writeObjectToConfig(awn.getAggregator(), this.config, ITERATION_AGGREGATOR_PREFIX + num); } catch (IOException e) { throw new RuntimeException("Error while writing the aggregator object to the task configuration."); } num++; } this.config.setInteger(ITERATION_NUM_AGGREGATORS, num); }
public void addIterationAggregators(Collection<AggregatorWithName<?>> aggregators) { int num = this.config.getInteger(ITERATION_NUM_AGGREGATORS, 0); for (AggregatorWithName<?> awn : aggregators) { this.config.setString(ITERATION_AGGREGATOR_NAME_PREFIX + num, awn.getName()); try { InstantiationUtil.writeObjectToConfig(awn.getAggregator(), this.config, ITERATION_AGGREGATOR_PREFIX + num); } catch (IOException e) { throw new RuntimeException("Error while writing the aggregator object to the task configuration."); } num++; } this.config.setInteger(ITERATION_NUM_AGGREGATORS, num); }
public void addIterationAggregators(Collection<AggregatorWithName<?>> aggregators) { int num = this.config.getInteger(ITERATION_NUM_AGGREGATORS, 0); for (AggregatorWithName<?> awn : aggregators) { this.config.setString(ITERATION_AGGREGATOR_NAME_PREFIX + num, awn.getName()); try { InstantiationUtil.writeObjectToConfig(awn.getAggregator(), this.config, ITERATION_AGGREGATOR_PREFIX + num); } catch (IOException e) { throw new RuntimeException("Error while writing the aggregator object to the task configuration."); } num++; } this.config.setInteger(ITERATION_NUM_AGGREGATORS, num); }
aggregators.put(a.getName(), a.getAggregator());
aggregators.put(a.getName(), a.getAggregator());
aggregators.put(a.getName(), a.getAggregator());
aggregators.put(a.getName(), a.getAggregator());
aggregators.put(aggWithName.getName(), aggWithName.getAggregator());
aggregators.put(aggWithName.getName(), aggWithName.getAggregator());
aggregators.put(aggWithName.getName(), aggWithName.getAggregator());
aggregators.put(aggWithName.getName(), aggWithName.getAggregator());