Package net.sourceforge.processdash.data

Examples of net.sourceforge.processdash.data.DoubleData


            globalPrefix = MAIN_DATA_PREFIX + newName;
            ordinalPrefix = TASK_ORDINAL_PREFIX + newName;
            for (int j = r.getNumChildren();  j-- > 0) {
                dataName = DataRepository.createDataName
                    (r.getChild(j).getFullName(), ordinalPrefix);
                data.putValue(dataName, new DoubleData(j, false));
                oldNames.remove(dataName);
            }
            // save the schedule
            dataName = DataRepository.createDataName
                (globalPrefix, EST_HOURS_DATA_NAME);
View Full Code Here


     * This method <b>must</b> be thread-safe.
     */
    public Object call(List arguments, ExpressionContext context)
    {
        double val = asDouble(getArgOrLocal(arguments, 0, context));
        return new DoubleData(Math.abs(val));
    }
View Full Code Here

        }

        // if the list of matching tasks is empty, don't bother creating a
        // study group.
        if (taskIds.isEmpty())
            return new DoubleData(-1, false);

        // retrieve the study group manager
        StudyGroupManager mgr = getDbObject(context, StudyGroupManager.class);
        if (mgr == null)
            return null;

        // create a study group for this list of items, and return its key
        try {
            int result = mgr.getPlanItemGroup(projectKeys, taskIds, true,
                listenerName);
            return new DoubleData(result, false);
        } catch (Exception e) {
            logger.log(Level.SEVERE, "Unexpected error while calculating", e);
            return null;
        }
    }
View Full Code Here

                }
            }
        }

        if (sum)
            return new DoubleData(sumResult, false);
        else
            return null;
    }
View Full Code Here

                key = (Integer) result.get(0);
            } else {
                // not found? Use an impossible WBS key to result in no matches
                key = -999;
            }
            return new DoubleData(key, false);
        } catch (Exception e) {
            logger.log(Level.SEVERE, "Unexpected error while calculating", e);
            return null;
        }
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.data.DoubleData

Copyright © 2018 www.massapicom. 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.