1 package compbio.cassandra;
4 import java.util.ArrayList;
5 import java.util.Collections;
7 public class DataBase {
9 private int total; // total jobs
10 private int totalOK; // total jobs with execution status OK
11 private int totalStopped; // total jobs with execution status STOPPED
12 private int totalError; // total jobs with execution status Jpred ERROR
13 private int totalTimeOut; // total jobs with execution status TIMEOUT
14 private int totalJobs;
15 private int totalId; // total jobs for current protein sequence
17 private String prot; // protein sequence
19 private List<String> subProt; // protein sequence divided by several parts for highlighting the particular part
20 private List<Integer> timeRez;
21 private List<Integer> timeTotalExec;
22 private StructureJobLog logInfo;
27 public DataBase(String dat, int total) {
32 public void setDate(String dat) {
36 public String getDate() {
40 public void setTotal(int tot) {
44 public int getTotal() {
48 public void setTotalOK(int tot) {
52 public int getTotalOK() {
56 public void setTotalStopped(int tot) {
57 this.totalStopped = tot;
60 public int getTotalStopped() {
64 public void setTotalError(int tot) {
65 this.totalError = tot;
68 public int getTotalError() {
72 public void setTotalTimeOut(int tot) {
73 this.totalTimeOut = tot;
76 public int getTotalTimeOut() {
80 public void setTotalJobs(int totalJobs) {
81 this.totalJobs = totalJobs;
84 public int getTotalJobs() {
88 public void setTotalId(int totId) {
92 public int getTotalId() {
96 public void setProt(String prot) {
100 public String getProt() {
104 public void setJpred(String jpred) {
108 public String getJpred() {
112 public void setId(String id) {
116 public String getId() {
120 public void setSubProt(List<String> subProt) {
121 this.subProt = subProt;
124 public List<String> getSubProt() {
128 public void setTimeRez(List<Integer> timeRez) {
129 this.timeRez = timeRez;
132 public List<Integer> getTimeRez() {
136 public void setTimeTotalExec(List<Integer> timeTotalExec) {
137 this.timeTotalExec = timeTotalExec;
140 public List<Integer> getTimeTotalExec() {
141 return timeTotalExec;
144 public void setLogInfo(StructureJobLog logInfo){
145 this.logInfo = logInfo;
148 public StructureJobLog getLogInfo() {