1 19 package bak.pcj.benchmark; 20 21 28 public class Result { 29 30 31 private long time; 32 33 34 private String benchmarkId; 35 36 37 private String taskId; 38 39 40 private String taskDescription; 41 42 43 private String dataSetId; 44 45 46 private String classId; 47 48 83 public Result(String benchmarkId, String dataSetId, String classId, String taskId, String taskDescription, long time) { 84 if (benchmarkId == null || dataSetId == null || classId == null || taskId == null || taskDescription == null) 85 throw new NullPointerException (); 86 if (time < 0L) 87 throw new IllegalArgumentException (); 88 this.benchmarkId = benchmarkId; 89 this.taskId = taskId; 90 this.dataSetId = dataSetId; 91 this.classId = classId; 92 this.taskDescription = taskDescription; 93 this.time = time; 94 } 95 96 101 public String getBenchmarkId() 102 { return benchmarkId; } 103 104 109 public String getTaskId() 110 { return taskId; } 111 112 117 public String getTaskDescription() 118 { return taskDescription; } 119 120 125 public String getDataSetId() 126 { return dataSetId; } 127 128 133 public String getClassId() 134 { return classId; } 135 136 141 public long getTime() 142 { return time; } 143 144 145 } | Popular Tags |