1 package compbio.cassandra;
4 import java.util.ArrayList;
5 import java.util.Collections;
7 public class DataBase {
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
18 private String prot; // protein sequence
20 private List<Integer> timeRez;
21 private List<Integer> timeTotalExec;
22 private JobBean logInfo;
23 private ProteinBean predictions;
28 public DataBase(String dat, int total) {
33 public void setDate(String dat) {
37 public String getDate() {
43 public void setTotal(int tot) {
47 public int getTotal() {
51 public void setTotalOK(int tot) {
55 public int getTotalOK() {
59 public void setTotalStopped(int tot) {
60 this.totalStopped = tot;
63 public int getTotalStopped() {
67 public void setTotalError(int tot) {
68 this.totalError = tot;
71 public int getTotalError() {
75 public void setTotalTimeOut(int tot) {
76 this.totalTimeOut = tot;
79 public int getTotalTimeOut() {
83 public void setTotalJobs(int totalJobs) {
84 this.totalJobs = totalJobs;
87 public int getTotalJobs() {
91 public void setTotalId(int totId) {
95 public int getTotalId() {
99 public void setProt(String prot) {
103 public String getProt() {
107 public void setJpred(String jpred) {
111 public String getJpred() {
115 public void setId(String id) {
119 public String getId() {
123 public void setIp(String ip) {
127 public String getIp() {
131 public void setTimeRez(List<Integer> timeRez) {
132 this.timeRez = timeRez;
135 public List<Integer> getTimeRez() {
139 public void setTimeTotalExec(List<Integer> timeTotalExec) {
140 this.timeTotalExec = timeTotalExec;
143 public List<Integer> getTimeTotalExec() {
144 return timeTotalExec;
147 public void setLogInfo(JobBean logInfo){
148 this.logInfo = logInfo;
151 public JobBean getLogInfo() {
155 public void setPredictions(ProteinBean predictions){
156 this.predictions = predictions;
159 public ProteinBean getPredictions() {