fixed Execution time report
[proteocache.git] / datadb / compbio / beans / ExecutionTimeBean.java
1 package compbio.beans;
2
3 import java.util.LinkedHashMap;
4 import java.util.Map;
5
6         /**
7          * bean for a report of execution time statistics.
8          * 
9          * @param dateTotal
10          *            Map<String, TotalExecutionTime> where String - a date, Total - total info for
11          *            jobs with period of execution time
12          * @param wholeTotal
13          *            total sum for each parameter from dateTotal
14          */
15         public class ExecutionTimeBean {
16                 private Map<String, TotalExecutionTime> dateTotal;
17                 private TotalExecutionTime wholeTotal;
18
19                 public ExecutionTimeBean() {
20                         this.dateTotal = new LinkedHashMap<String, TotalExecutionTime>();
21                 }
22
23                 public void setDateTotal(String dat, TotalExecutionTime tot) {
24                         if (this.dateTotal == null)
25                                 dateTotal = new LinkedHashMap<String, TotalExecutionTime>();
26                         dateTotal.put(dat, tot);
27                 }
28
29                 public Map<String, TotalExecutionTime> getDateTotal() {
30                         return dateTotal;
31                 }
32
33                 public void setWholeTotal(TotalExecutionTime tot) {
34                         this.wholeTotal = tot;
35                 }
36
37                 public TotalExecutionTime getWholeTotal() {
38                         return wholeTotal;
39                 }
40 }