/** * Builds a parameter. * * @param type the type of the parameter. * @param factor the factor of the parameter. * @param base the base of the parameter. * @param exponent the exponent of the parameter. * @param unit the unit of the parameter. */ public ParameterImpl(String type, double factor, int base, int exponent, double uncertainty, String unit) { this.type = type; this.factor = factor; this.base = base; this.exponent = exponent; this.unit = unit; this.uncertainty = uncertainty; this.value = getValue(); }
/** * Builds a parameter. * * @param type the type of the parameter. * @param value double value. */ public ParameterImpl(String type, String value) { this.type = type; setValue(value); // // value using scientific notation // try { // this.factor = Double.parseDouble(value); // } catch (NumberFormatException e) { // this.factor = Double.NaN; // } }
object = new ParameterImpl(result[0], result[1]); } else if (length == 3) { object = new ParameterImpl(result[0], result[1], result[2]);
psidev.psi.mi.tab.model.Parameter mitabParameter = new ParameterImpl(db, value.toString());
iParameters.add(new ParameterImpl(parameter.getTerm(), parameter.getFactor(), parameter.getBase(),
/** * Builds a parameter. * * @param type the type of the parameter. * @param value string representation of the parameter value. The syntax is: * factor x base ^ exponent. * @param unit the unit of the parameter. */ public ParameterImpl(String type, String value, String unit) { this.type = type; this.unit = unit; setValue(value); // value using scientific notation // try { // this.factor = Double.parseDouble(value); // } catch (NumberFormatException e) { // this.factor = Double.NaN; // } }