Examples of TimeLog


Examples of net.sourceforge.processdash.log.time.TimeLog

        schedule.setLevelOfEffort(levelOfEffort);
        schedule.cleanUp();
        schedule.recalcCumPlanTimes();

        // find time logged to tasks before the start of the schedule.
        TimeLog log = timeLog;
        try {
            if (rezeroAtStartDate)
                saveActualPreTime(log);
        } catch (IOException ioe) {
            ioe.printStackTrace();
View Full Code Here

Examples of net.sourceforge.processdash.log.time.TimeLog

        else
            writeHtml(timeLogEntries);
    }

    private List getTimeLogEntries() throws IOException {
        TimeLog tl;
        String type = getParameter("type");
        if ("rollup".equals(type))
            tl = new RolledUpTimeLog.FromResultSet(getDashboardContext(),
                    getPrefix(), parameters);
        else
            tl = getDashboardContext().getTimeLog();
        List l = Collections.list(tl.filter(getPrefix(), null, null));
        Collections.sort(l);
        return l;
    }
View Full Code Here

Examples of net.sourceforge.processdash.log.time.TimeLog

            DashController.showTimeLogEditor(getPrefix());
        DashController.printNullDocument(out);
    }

    private void showRollupTimeLog() {
        TimeLog tl = new RolledUpTimeLog.FromResultSet(getDashboardContext(),
                getPrefix(), parameters);
        TimeLogEditor e = new TimeLogEditor(tl, getAugmentedHierarchy(), null,
                null);
       
        if (parameters.containsKey(
View Full Code Here

Examples of net.sourceforge.processdash.log.time.TimeLog

            }

            ctx.getData().dumpRepository(out, filter,
                    DataRepository.DUMP_STYLE_TEXT);

            TimeLog tl = ctx.getTimeLog();
            Iterator keys = tl.filter(null, null, null);
            while (keys.hasNext()) {
                TimeLogEntry tle = (TimeLogEntry) keys.next();
                if (Filter.matchesFilter(filter, tle.getPath()))
                    out.println(toAbbrevString(tle));
            }
View Full Code Here

Examples of net.sourceforge.processdash.log.time.TimeLog

    }


    private List getTimeLogEntries() {
        String path = getPrefix();
        TimeLog tl = getDashboardContext().getTimeLog();
        List result;
        try {
            result = Collections.list(tl.filter(path, null, null));
            Collections.sort(result);
        } catch (IOException e) {
            e.printStackTrace();
            result = Collections.EMPTY_LIST;
        }
View Full Code Here

Examples of pspdash.TimeLog

        header = StringUtils.findAndReplace(header, "%for owner%", owner);
        header = StringUtils.findAndReplace(header, "%for path%", title);
        header = StringUtils.findAndReplace(header, "%css%", cssLinkHTML());
        out.print(header);

        TimeLog tl = new TimeLog();
        tl.readDefault();

        PSPProperties props = getPSPProperties();
        Enumeration rows = tl.filter(props.findExistingKey(path), null, null);
        TimeLogEntry tle;
        String entryPath, phase;
        int slashPos;
        while (rows.hasMoreElements()) {
            tle = (TimeLogEntry) rows.nextElement();
View Full Code Here

Examples of pspdash.TimeLog

        //PSPProperties props = getPSPProperties();
        //PropertyKey key = props.findExistingKey(path);
        System.out.println("getting time log");

        // Get a copy of the time log.
        TimeLog tl = new TimeLog();
        tl.readDefault();

        System.out.println("scanning for depth");
        // first, scan the time log to see how deep a hierarchy we need.
        Enumeration rows = tl.filter(PropertyKey.ROOT, null, null);
        TimeLogEntry tle;
        String entryPath;
        int depth = 1, currDepth, i;
        while (rows.hasMoreElements()) {
            tle = (TimeLogEntry) rows.nextElement();
            entryPath = tle.getPath();
            System.out.println(entryPath);
            currDepth = countSlashes(entryPath);
            if (currDepth > depth) depth = currDepth;
        }
        System.out.println("depth is " + depth);

        out.print(HEADER_START);
        for (i=0;   i++ < depth;  )
            out.print(HEADER_MIDA + i + HEADER_MIDB);
        out.print(HEADER_END);

        System.out.println("scanning to print");

        // Now scan the time log and print out each row.
        rows = tl.filter(PropertyKey.ROOT, null, null);
        StringTokenizer tok;
        while (rows.hasMoreElements()) {
            tle = (TimeLogEntry) rows.nextElement();

            out.println("<TR>");
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.