@Override public final Map<String, String> getParams() { Map<String, String> params = super.getParams(); return params; }
@Override public final String toString() { StringBuilder str = new StringBuilder(); for ( Entry<String, String> entry : this.getParams().entrySet() ) { str.append('['); str.append(entry.getKey()); str.append('='); str.append(entry.getValue()); str.append(']'); } return "[name=" + this.getName() + "]" + "[nOfParams=" + this.getParams().size() + "]" + str.toString(); }
@Override public final Map<String, String> getParams() { final Map<String, String> map = super.getParams(); for (String f : setters.keySet()) { addParameterToMap( map , f ); } return map; }
@Override public final Map<String, String> getParams() { Map<String, String> map = super.getParams(); map.put( NETWORK_MODES, CollectionUtils.arrayToString(this.networkModes.toArray(new String[this.networkModes.size()]))); // map.put( BEELINE_DISTANCE_FACTOR, Double.toString(this.getBeelineDistanceFactor()) ); // for ( ModeRoutingParams param : this.getModeRoutingParams().values() ) { // if ( !param.getBeelineDistanceFactor().equals( this.beelineDistanceFactor ) ) { // log.error( "beeline distance factor varies by mode; this cannot be accessed by getParams()" ) ; // } // } // map.put( BEELINE_DISTANCE_FACTOR, Double.toString( this.beelineDistanceFactor ) ) ; // // if we uncomment the above, then this is also written into config v2 fmt, which we don't want. kai, feb'15 return map; }
for (Map.Entry<String, String> e : m.getParams().entrySet()) { specializedConfigModule.addParam(e.getKey(), e.getValue());
@Override void writeModule(final ConfigGroup module, final BufferedWriter out) throws UncheckedIOException { Map<String, String> params = module.getParams(); Map<String, String> comments = module.getComments();
@Override public final Map<String, String> getParams() { Map<String, String> params = super.getParams(); params.put(REGRESSION_INERTIA, Double.toString(getRegressionInertia())); params.put(MIN_FLOW_STDDEV, Double.toString(getMinFlowStddev_vehPerHour())); params.put(FREEZE_ITERATION, Integer.toString(getFreezeIteration())); params.put(PREPARATORY_ITERATIONS, Integer.toString(getPreparatoryIterations())); params.put(VARIANCE_SCALE, Double.toString(getVarianceScale())); params.put(USE_BRUTE_FORCE, Boolean.toString(useBruteForce())); params.put(WRITE_ANALYSIS_FILE, Boolean.toString(isWriteAnalysisFile())); params.put(START_TIME, Integer.toString(getStartTime())); params.put(END_TIME, Integer.toString(getEndTime())); params.put(CALIBRATED_ITEMS, CollectionUtils.setToString(this.calibratedItems)); params.put(TIME_BIN_SIZE, Integer.toString(getTimeBinSize())) ; return params; }
if ( verbosity== Verbosity.minimal ) { if ( comparisonModule!=null ) { String defaultValue = comparisonModule.getParams().get( entry.getKey() ) ;
final ConfigGroup module, final ConfigGroup comparisonModule ) { Map<String, String> params = module.getParams(); Map<String, String> comments = module.getComments();