/* adds individual node parameter to list of Manipulating Paramaters. HJR, pulled out of getSystemParameter*/ private void setSystemParametersNode( List<String> sParams, int timestepIdx, int nodeIdx, double value, ManipulatingParameterName manipParam, String dfltValProp) { String nodeParam = new String(); nodeParam = manipParam.name().toUpperCase() + "="; /* node parameters can't have negative value. if they have negative value, it means that data is not assigned yet. */ if (value < 0) { // sParams.append(Double.valueOf(propertiesConfig.getProperty(dfltValProp))); } else { nodeParam += roundToThreeDigits(value); } sParams.add(nodeParam); }
/* adds individual link parameter to list of ManipulatingParameters. HJR, pulled out of getSystemParameter. */ private void setSystemParametersLink( List<String> sParams, int timestepIdx, int predIdx, int preyIdx, ParamValue pvalue, ManipulatingParameterName manipParam, String dfltValProp, int preyCnt) { String linkParam = new String(); linkParam = "[" + preyIdx + "],"; linkParam += manipParam.name().toUpperCase() + "="; /* node parameters can't have negative value. if they have negative value, it means that data is not assigned yet. */ if (pvalue != null) { linkParam += pvalue.getParamValue(); } else { linkParam += Double.valueOf(propertiesConfig.getProperty(dfltValProp)); } sParams.add(linkParam); }