2f10eef65e02b245c670982441a2bb332d8ef7ea
[proteocache.git] / datadb / compbio / cassandra / DataBase.java
1 package compbio.cassandra;
2
3 import java.util.List;
4 import java.util.ArrayList;
5 import java.util.Collections;
6
7 public class DataBase {
8         private String date;
9         private int total;                                      // total number of jobs
10         private int totalOK;                            // number of jobs with execution status OK
11         private int totalStopped;                        // number of jobs with execution status STOPPED
12         private int totalError;                         // number of jobs with execution status Jpred ERROR
13         private int totalTimeOut;                       // number of jobs with execution status TIMEOUT
14         private int totalJobs;
15         private int totalId;                            // total jobs for current protein sequence
16         private String id;
17         private String ip;
18         private String prot;                            // protein sequence
19         private String jpred;
20         private List<String> subProt;           // protein sequence divided by several parts for highlighting the particular part
21         private List<Integer> timeRez;
22         private List<Integer> timeTotalExec;
23         private StructureJobLog logInfo;
24         private AnnotatedProteinSequenceBean predictions;
25
26         public DataBase() {
27         }
28
29         public DataBase(String dat, int total) {
30                 this.date = dat;
31                 this.total = total;
32         }
33
34         public void setDate(String dat) {
35                 this.date = dat;
36         }
37
38         public String getDate() {
39                 if (null == date)
40                         return "1/1/1970";
41                 return date;
42         }
43
44         public void setTotal(int tot) {
45                 this.total = tot;
46         }
47
48         public int getTotal() {
49                 return total;
50         }
51
52         public void setTotalOK(int tot) {
53                 this.totalOK = tot;
54         }
55
56         public int getTotalOK() {
57                 return totalOK;
58         }
59
60         public void setTotalStopped(int tot) {
61                 this.totalStopped = tot;
62         }
63
64         public int getTotalStopped() {
65                 return totalStopped;
66         }
67
68         public void setTotalError(int tot) {
69                 this.totalError = tot;
70         }
71
72         public int getTotalError() {
73                 return totalError;
74         }
75
76         public void setTotalTimeOut(int tot) {
77                 this.totalTimeOut = tot;
78         }
79
80         public int getTotalTimeOut() {
81                 return totalTimeOut;
82         }
83         
84         public void setTotalJobs(int totalJobs) {
85                 this.totalJobs = totalJobs;
86         }
87
88         public int getTotalJobs() {
89                 return totalJobs;
90         }
91
92         public void setTotalId(int totId) {
93                 this.totalId = totId;
94         }
95
96         public int getTotalId() {
97                 return totalId;
98         }
99
100         public void setProt(String prot) {
101                 this.prot = prot;
102         }
103
104         public String getProt() {
105                 return prot;
106         }
107
108         public void setJpred(String jpred) {
109                 this.jpred = jpred;
110         }
111
112         public String getJpred() {
113                 return jpred;
114         }
115
116         public void setId(String id) {
117                 this.id = id;
118         }
119
120         public String getId() {
121                 return id;
122         }
123         
124         public void setIp(String ip) {
125                 this.ip = ip;
126         }
127
128         public String getIp() {
129                 return ip;
130         }
131
132         public void setSubProt(List<String> subProt) {
133                 this.subProt = subProt;
134         }
135
136         public List<String> getSubProt() {
137                 return subProt;
138         }
139
140         public void setTimeRez(List<Integer> timeRez) {
141                 this.timeRez = timeRez;
142         }
143
144         public List<Integer> getTimeRez() {
145                 return timeRez;
146         }
147         
148         public void setTimeTotalExec(List<Integer> timeTotalExec) {
149                 this.timeTotalExec = timeTotalExec;
150         }
151
152         public List<Integer> getTimeTotalExec() {
153                 return timeTotalExec;
154         }
155         
156         public void setLogInfo(StructureJobLog logInfo){
157                 this.logInfo = logInfo;
158         }
159         
160         public StructureJobLog getLogInfo() {
161                 return logInfo;
162         }
163         
164         public void setPredictions(AnnotatedProteinSequenceBean predictions){
165                 this.predictions = predictions;
166         }
167         
168         public AnnotatedProteinSequenceBean getPredictions() {
169                 return predictions;
170         }
171
172 }