1 package org.whatsitcalled.webflange.model; 2 3 import java.io.Serializable; 4 import java.util.ArrayList; 5 import java.util.HashSet; 6 import java.util.List; 7 import java.util.Set; 8 9 public class LoadTestRun implements Serializable{ 10 private Long id = new Long(-1); 11 12 private LoadTest loadTest; 13 14 private long time; 15 16 private List<Chart> charts = new ArrayList<Chart>(); 17 18 private Set<LoadTestSummary> summaries = new HashSet<LoadTestSummary>(); 19 20 private String dataFile; 21 22 private String summaryFile; 23 24 private String errorFile; 25 26 private boolean selected; 27 28 public LoadTestRun() { 29 } 30 31 public LoadTestRun(LoadTest loadTest, long time) { 32 setLoadTest(loadTest); 33 setTime(time); 34 } 35 36 public LoadTest getLoadTest() { 37 return loadTest; 38 } 39 40 public void setLoadTest(LoadTest loadTest) { 41 this.loadTest = loadTest; 42 } 43 44 public long getTime() { 45 return time; 46 } 47 48 public void setTime(long time) { 49 this.time = time; 50 } 51 52 public Long getId() { 53 return id; 54 } 55 56 public void setId(Long id) { 57 this.id = id; 58 } 59 60 public List<Chart> getCharts() { 61 return charts; 62 } 63 64 public void setCharts(List<Chart> charts) { 65 this.charts = charts; 66 } 67 public int hashCode() { 68 int hash = 1; 69 hash = hash * 31 + id.hashCode(); 70 return hash; 71 } 72 73 @Override 74 public boolean equals(Object obj) { 75 return (obj.hashCode() == this.hashCode()); 76 } 77 78 public String getDataFile() { 79 return dataFile; 80 } 81 82 public void setDataFile(String dataFile) { 83 this.dataFile = dataFile; 84 } 85 86 public String getSummaryFile() { 87 return summaryFile; 88 } 89 90 public void setSummaryFile(String summaryFile) { 91 this.summaryFile = summaryFile; 92 } 93 94 public String getErrorFile() { 95 return errorFile; 96 } 97 98 public void setErrorFile(String errorFile) { 99 this.errorFile = errorFile; 100 } 101 102 public Set<LoadTestSummary> getSummaries() { 103 return summaries; 104 } 105 106 public void setSummaries(Set<LoadTestSummary> summaries) { 107 this.summaries = summaries; 108 } 109 110 public boolean getSelected() { 111 return selected; 112 } 113 114 public void setSelected(boolean selected) { 115 this.selected = selected; 116 } 117 118 }