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<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;
29 public DataBase(String dat, int total) {
34 public void setDate(String dat) {
38 public String getDate() {
44 public void setTotal(int tot) {
48 public int getTotal() {
52 public void setTotalOK(int tot) {
56 public int getTotalOK() {
60 public void setTotalStopped(int tot) {
61 this.totalStopped = tot;
64 public int getTotalStopped() {
68 public void setTotalError(int tot) {
69 this.totalError = tot;
72 public int getTotalError() {
76 public void setTotalTimeOut(int tot) {
77 this.totalTimeOut = tot;
80 public int getTotalTimeOut() {
84 public void setTotalJobs(int totalJobs) {
85 this.totalJobs = totalJobs;
88 public int getTotalJobs() {
92 public void setTotalId(int totId) {
96 public int getTotalId() {
100 public void setProt(String prot) {
104 public String getProt() {
108 public void setJpred(String jpred) {
112 public String getJpred() {
116 public void setId(String id) {
120 public String getId() {
124 public void setIp(String ip) {
128 public String getIp() {
132 public void setSubProt(List<String> subProt) {
133 this.subProt = subProt;
136 public List<String> getSubProt() {
140 public void setTimeRez(List<Integer> timeRez) {
141 this.timeRez = timeRez;
144 public List<Integer> getTimeRez() {
148 public void setTimeTotalExec(List<Integer> timeTotalExec) {
149 this.timeTotalExec = timeTotalExec;
152 public List<Integer> getTimeTotalExec() {
153 return timeTotalExec;
156 public void setLogInfo(StructureJobLog logInfo){
157 this.logInfo = logInfo;
160 public StructureJobLog getLogInfo() {
164 public void setPredictions(AnnotatedProteinSequenceBean predictions){
165 this.predictions = predictions;
168 public AnnotatedProteinSequenceBean getPredictions() {