Changeset 46


Ignore:
Timestamp:
05/14/08 18:06:40 (16 years ago)
Author:
ra33
Message:

Refactored to centralise code for messages and stats displayed for the running of agents.

Location:
trunk/src/org/expeditee/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/io/DefaultTreeWriter.java

    r4 r46  
    1515        // the list of frames currently being processed
    1616        private Stack<FrameCounter> _frames = new Stack<FrameCounter>();
    17 
    1817        private int _frameCount = 0;
     18       
     19        public int getFrameCount() {
     20                return _frameCount;
     21        }
    1922
    2023        public String writeTree(Frame toWrite) throws IOException {
     
    8487                                FrameGraphics.OverwriteMessage("Writing: "
    8588                                                + next.getFrameName());
    86                                 _frameCount++;
     89                                _frameCount ++;
    8790                                writeStartFrame(next);
    8891                        }
     
    107110                                                this.writeStartLink(item);
    108111
    109                                                 Frame linked = FrameIO.LoadFrame(item.getLink());
     112                                                Frame linked = FrameIO.LoadFrame(item.getAbsoluteLink());
    110113
    111114                                                // if the linked frame was found, then display it next
     
    135138
    136139        protected String finaliseTree() throws IOException {
    137                 return "Tree of " + _frameCount + " frames" + finalise();
     140                return "Tree" + finalise();
    138141        }
    139142
  • trunk/src/org/expeditee/io/TreeWriter.java

    r4 r46  
    88
    99        public String writeTree(Frame toWrite) throws IOException;
     10       
     11        public int getFrameCount();
    1012}
Note: See TracChangeset for help on using the changeset viewer.