1 package compbio.cassandra;
4 import java.util.ArrayList;
5 import java.util.Collections;
7 import compbio.beans.JobBean;
8 import compbio.beans.ProteinBean;
10 public class DataBase {
12 private int total; // total number of jobs
13 private int totalOK; // number of jobs with execution status OK
14 private int totalStopped; // number of jobs with execution status STOPPED
15 private int totalError; // number of jobs with execution status Jpred ERROR
16 private int totalTimeOut; // number of jobs with execution status TIMEOUT
17 private int totalJobs;
18 private int totalId; // total jobs for current protein sequence
21 private String prot; // protein sequence
23 private List<Integer> timeRez;
24 private List<Integer> timeTotalExec;
25 private JobBean logInfo;
26 private ProteinBean predictions;
31 public DataBase(String dat, int total) {
36 public void setDate(String dat) {
40 public String getDate() {
46 public void setTotal(int tot) {
50 public int getTotal() {
54 public void setTotalOK(int tot) {
58 public int getTotalOK() {
62 public void setTotalStopped(int tot) {
63 this.totalStopped = tot;
66 public int getTotalStopped() {
70 public void setTotalError(int tot) {
71 this.totalError = tot;
74 public int getTotalError() {
78 public void setTotalTimeOut(int tot) {
79 this.totalTimeOut = tot;
82 public int getTotalTimeOut() {
86 public void setTotalJobs(int totalJobs) {
87 this.totalJobs = totalJobs;
90 public int getTotalJobs() {
94 public void setTotalId(int totId) {
98 public int getTotalId() {
102 public void setProt(String prot) {
106 public String getProt() {
110 public void setJpred(String jpred) {
114 public String getJpred() {
118 public void setId(String id) {
122 public String getId() {
126 public void setIp(String ip) {
130 public String getIp() {
134 public void setTimeRez(List<Integer> timeRez) {
135 this.timeRez = timeRez;
138 public List<Integer> getTimeRez() {
142 public void setTimeTotalExec(List<Integer> timeTotalExec) {
143 this.timeTotalExec = timeTotalExec;
146 public List<Integer> getTimeTotalExec() {
147 return timeTotalExec;
150 public void setLogInfo(JobBean logInfo){
151 this.logInfo = logInfo;
154 public JobBean getLogInfo() {
158 public void setPredictions(ProteinBean predictions){
159 this.predictions = predictions;
162 public ProteinBean getPredictions() {