Some progress toward implementing store(Analysis).
[cfb.git] / prod / net / jaekl / cfb / analyze / Analysis.java
index e2f090f32b0245c701532c27606d2c7b01c0d979..f61d44dbabf4db52d869a7d81b47ded8b69a802d 100644 (file)
@@ -19,15 +19,20 @@ import org.xml.sax.helpers.XMLReaderFactory;
 public class Analysis {
        BugCollection m_bugCollection;
        String m_buildNumber;
-       Date m_date;    // Date/time when analysis was started
+       Date m_start;   // Date/time when analysis was started
+       Date m_end;
        
        public Analysis(String buildNumber) {
                m_bugCollection = null;
                m_buildNumber = buildNumber;
-               m_date = new Date();
+               m_start = new Date();
+               m_end = null;
        }
        
        public BugCollection getBugCollection() { return m_bugCollection; }
+       public String getBuildNumber() { return m_buildNumber; }
+       public Date getStart() { return m_start; }
+       public Date getEnd() { return m_end; }
        
        public void parse(InputSource xml) throws FileNotFoundException, IOException, SAXException 
        {
@@ -41,6 +46,12 @@ public class Analysis {
            reader.parse(xml);
        }
        
+       // Set the end time (when FindBugs was done analyzing)
+       public void setEnd(Date date) 
+       {
+               m_end = date;
+       }
+       
        public void dump(PrintWriter pw)
        {
                if (null != m_bugCollection) {