Examples of DoubleData


Examples of net.sourceforge.processdash.data.DoubleData

        if (parameters.containsKey(SAVE) && Settings.isReadWrite()) {
            try {
                save(getParameter(NAME), getParameter(UNITS),
                    getParameter(CONTENTS));
                getDataRepository().putValue(CHANGE_DATA_NAME,
                    new DoubleData(uniqueNumber));
            } catch (ParseException e) {
                writeHeader();
                redrawForm(e);
                return;
            }
View Full Code Here

Examples of net.sourceforge.processdash.data.DoubleData

  }


  public void setString(String s) throws MalformedValueException {
    try {
      value = new DoubleData(FormatUtil.parseNumber(s), true);
    } catch (Exception e) {
      throw new MalformedValueException();
    }
  }
View Full Code Here

Examples of net.sourceforge.processdash.data.DoubleData

    protected static SimpleData asSimpleData(Object o) {
        if (o == null) return null;
        if (o instanceof SimpleData) return (SimpleData) o;
        if (o instanceof String) return StringData.create((String) o);
        if (o instanceof Number)
            return new DoubleData(((Number) o).doubleValue());
        return null;
    }
View Full Code Here

Examples of net.sourceforge.processdash.data.DoubleData

        } else if (p > 0 && p < 1) {
            planLevelOfEffort = p;
            // save this level of effort to the data repository
            data.userPutValue
                (DataRepository.createDataName(fullName, getLevelOfEffortDataname()),
                 new DoubleData(planLevelOfEffort, true));
        }
    }
View Full Code Here

Examples of net.sourceforge.processdash.data.DoubleData

        if (newTaskListName != null && newValue != defaultValue) {
            String newDataName = dataNamePrefix + newTaskListName;
            if (newDataName.equals(oldDataName)) oldDataName = null;
            if (newValue != savedValue || oldDataName != null) {
                SimpleData d = new DoubleData(newValue, false);
                String dataName =
                    DataRepository.createDataName(fullName, newDataName);
                data.putValue(dataName, d);
            }
        }
View Full Code Here

Examples of net.sourceforge.processdash.data.DoubleData

                this.planTime = topDownPlanTime = bottomUpPlanTime = planTime;
                planTimeNull = planTimeUndefined = false;
                // save those minutes to the data repository
                data.userPutValue(DataRepository.createDataName
                                  (fullName, PLAN_TIME_DATA_NAME),
                                  new DoubleData(planTime, true));
                userSetLevelOfEffort(null);
            } else {
                this.planTime = topDownPlanTime = bottomUpPlanTime;
                data.userPutValue(DataRepository.createDataName
                                  (fullName, PLAN_TIME_DATA_NAME),
View Full Code Here

Examples of net.sourceforge.processdash.data.DoubleData

        if (alias != null && alias != NO_ALIAS_YET && sVal != null)
            return new DescribedValue(sVal, context.resolveName(alias));
        else if (result == 0)
            return ImmutableDoubleData.READ_ONLY_ZERO;
        else
            return new DoubleData(result);
    }
View Full Code Here

Examples of net.sourceforge.processdash.data.DoubleData

                    val = 1.0;
                else if (reverse)
                    val = 2.0 / (1.0 + (val / targetVal));
                else
                    val = val / targetVal;
                data.setData(1, n, new DoubleData(val));
            }
        }
    }
View Full Code Here

Examples of net.sourceforge.processdash.data.DoubleData

            SimpleData result = (SimpleData) NUMBER_MAP.get(value);
            if (result == null) {
                try {
                    Number d = NUMBER_FORMAT.parse(value);
                    if (d != null)
                        result = new DoubleData(d.doubleValue(), false);
                } catch (ParseException e) {
                    throw new MalformedValueException();
                }
            }
            return result;
View Full Code Here

Examples of net.sourceforge.processdash.data.DoubleData

    protected double getValueAt(DataContext data, PropertyKey node) {
        String fullDataName = getDataName(node);
        SimpleData sd = data.getSimpleValue(fullDataName);
        if (sd instanceof DoubleData) {
            DoubleData dd = (DoubleData) sd;
            return dd.getDouble();
        }
        return 0;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.