X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=datadb%2Fcompbio%2Fbeans%2FJobBean.java;h=8176748617841c7ad64aebb70a404b2e1ce729f0;hb=006363dc999cef4e9c49dd6a38ea0d78cbb62472;hp=0a1506201482ba5708eec37d0e01dac7c72ce37a;hpb=6823d2f36ff55b7ab11d674e3fe4d04dc57d6bbf;p=proteocache.git diff --git a/datadb/compbio/beans/JobBean.java b/datadb/compbio/beans/JobBean.java index 0a15062..8176748 100644 --- a/datadb/compbio/beans/JobBean.java +++ b/datadb/compbio/beans/JobBean.java @@ -10,47 +10,48 @@ public class JobBean implements PredictionIndex { private String dateStart; private String dateEnd; private String sequence; - private String ip; - private LinkedHashMap predictions; - - public JobBean (String seq, String id, String dateStart, String dateEnd, String ip, Map pred) { + private String ip; + private LinkedHashMap predictions; + + public JobBean(String seq, String id, String dateStart, String dateEnd, String ip, Map pred) { this.sequence = seq; this.jobid = id; this.dateStart = dateStart; this.dateEnd = dateEnd; this.ip = ip; - this.predictions = new LinkedHashMap(); + this.predictions = new LinkedHashMap(); setPredictions(pred); } - - public void setPredictions(Map pred) { + + public void setPredictions(Map pred) { if (predictions == null) - predictions = new LinkedHashMap(); + predictions = new LinkedHashMap(); for (String index : predIndex) { this.predictions.put(index, pred.get(index)); - } + } } - public String getSequence () { + + public String getSequence() { return sequence; } - - public String getJobid () { + + public String getJobid() { return jobid; } - - public String getDateStart () { + + public String getDateStart() { return dateStart; } - - public String getDateEnd () { + + public String getDateEnd() { return dateEnd; } - - public String getIp () { + + public String getIp() { return ip; } - - public Map getPrediction () { + + public Map getPrediction() { return predictions; } }