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;
28 public DataBase(String dat, int total) {
33 public void setDate(String dat) {
37 public String getDate() {
41 public void setTotal(int tot) {
45 public int getTotal() {
49 public void setTotalOK(int tot) {
53 public int getTotalOK() {
57 public void setTotalStopped(int tot) {
58 this.totalStopped = tot;
61 public int getTotalStopped() {
65 public void setTotalError(int tot) {
66 this.totalError = tot;
69 public int getTotalError() {
73 public void setTotalTimeOut(int tot) {
74 this.totalTimeOut = tot;
77 public int getTotalTimeOut() {
81 public void setTotalJobs(int totalJobs) {
82 this.totalJobs = totalJobs;
85 public int getTotalJobs() {
89 public void setTotalId(int totId) {
93 public int getTotalId() {
97 public void setProt(String prot) {
101 public String getProt() {
105 public void setJpred(String jpred) {
109 public String getJpred() {
113 public void setId(String id) {
117 public String getId() {
121 public void setIp(String ip) {
125 public String getIp() {
129 public void setSubProt(List<String> subProt) {
130 this.subProt = subProt;
133 public List<String> getSubProt() {
137 public void setTimeRez(List<Integer> timeRez) {
138 this.timeRez = timeRez;
141 public List<Integer> getTimeRez() {
145 public void setTimeTotalExec(List<Integer> timeTotalExec) {
146 this.timeTotalExec = timeTotalExec;
149 public List<Integer> getTimeTotalExec() {
150 return timeTotalExec;
153 public void setLogInfo(StructureJobLog logInfo){
154 this.logInfo = logInfo;
157 public StructureJobLog getLogInfo() {
161 public void setPredictions(AnnotatedProteinSequenceBean predictions){
162 this.predictions = predictions;
165 public AnnotatedProteinSequenceBean getPredictions() {