Examples of DataRepository


Examples of pspdash.data.DataRepository

    }
    protected void handleRegistration() throws IOException {
        log.entering("HandleForm", "handleRegistration");
        log.finer("query=" + env.get("QUERY_STRING"));

        DataRepository data = getDataRepository();
        String prefix = getDataPrefix();
        boolean unlocked = getUnlocked();
        if (!requiredTagOK(data, prefix)) {
            data = null;
            prefix = "No such project OR project/process mismatch";
View Full Code Here

Examples of pspdash.data.DataRepository

        property_directory = prop_file.getParent() + Settings.sep;
        FileBackupManager.maybeRun
            (property_directory, FileBackupManager.STARTUP);

        // create the data repository.
        data = new DataRepository();
        data.setRealizationPolicy(Settings.getVal("autoRealization"));
        if ("true".equalsIgnoreCase(Settings.getVal("dataFreezing.disabled")))
            data.disableFreezing();
        templates = TemplateLoader.loadTemplates(data);
        aum = new AutoUpdateManager(TemplateLoader.getPackages());
View Full Code Here

Examples of pspdash.data.DataRepository

    protected void maybeSavePosted(String what, String where, double mult,
                                   String lpiName, String upiName) {
        String method = getParameter(what);
        if (method == null) return;

        DataRepository data = getDataRepository();
        String prefix = getPrefix();
        String base = data.createDataName(prefix, where);
        String qual = what + method;
        String dataName;
        SimpleData e, r, lpi, upi;

        // Save the chosen method
        data.putValue(base+"/Probe Method", StringData.create(method));
        // Save the value
        e = getNum(qual, Method.FLD_ESTIMATE, mult);
        if (e == N_A) {
            parameters.put
                (NEXT_PAGE, "size".equals(what) ? SIZE_PAGE : TIME_PAGE);
            return;
        }
        data.putValue(base, e);
        // Save beta0 and beta1
        data.putValue(base+"/Beta0", getNum(qual, Method.FLD_BETA0, mult));
        data.putValue(base+"/Beta1", getNum(qual, Method.FLD_BETA1, mult));
        // Save the range
        data.putValue(base+"/Range", r = getNum(qual, Method.FLD_RANGE, mult));
        // Save the interval percent
        data.putValue(base+"/Interval Percent",
                      getNum(qual, Method.FLD_PERCENT, 1));
        // Save the correlation
        data.putValue(base+"/R Squared",
                      getNum(qual, Method.FLD_CORRELATION, 1));

        if (r instanceof DoubleData) {
            double est   = ((DoubleData) e).getDouble();
            double range = ((DoubleData) r).getDouble();
            upi = new DoubleData(est + range);
            lpi = new DoubleData(Math.max(0, est - range));
        } else
            upi = lpi = N_A;
        data.putValue(prefix+"/"+lpiName, lpi);
        data.putValue(prefix+"/"+upiName, upi);
    }
View Full Code Here

Examples of pspdash.data.DataRepository

    private static final String ESTM_OBJ_LOC = "Estimated Object LOC";
    private static final String ESTM_NC_LOC  = "Estimated New & Changed LOC";
    private static final String ESTM_TIME    = "Estimated Time";

    protected SimpleData getValue(String dataname) {
        DataRepository data = getDataRepository();
        String prefix = getPrefix();
        String dataName = data.createDataName(prefix, dataname);
        return data.getSimpleValue(dataName);
    }
View Full Code Here

Examples of pspdash.data.DataRepository

        return timeMethods;
    }

    protected boolean showOnlyTimeD() {
        DataRepository data = getDataRepository();
        String prefix = getPrefix();
        String name = data.createDataName(prefix, "PROBE_NO_TIME");
        return (data.getSimpleValue(name) != null);
    }
View Full Code Here

Examples of pspdash.data.DataRepository

        String name = data.createDataName(prefix, "PROBE_NO_TIME");
        return (data.getSimpleValue(name) != null);
    }

    protected String getSelectedMethod(String what) {
        DataRepository data = getDataRepository();
        String prefix = getPrefix();
        String name = data.createDataName(prefix, what);
        name = data.createDataName(name, "Probe Method");
        SimpleData d = data.getSimpleValue(name);
        if (d instanceof StringData) {
            String result = d.format();
            if (result.endsWith("  ")) return null;
            return result.trim();
        } else
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.