01: /*
02: * Created on Oct 14, 2004 by pjacob
03: *
04: */
05: package com.whirlycott.cache.benchmarks;
06:
07: /**
08: * Encapsulates the result of a benchmark.
09: * @author pjacob
10: *
11: */
12: public class Result {
13:
14: private Benchmarkable benchmarkable;
15:
16: private long time;
17:
18: /**
19: * @return Returns the time.
20: */
21: public long getTime() {
22: return time;
23: }
24:
25: /**
26: * @param time The time to set.
27: */
28: public void setTime(long time) {
29: this .time = time;
30: }
31:
32: /**
33: *
34: */
35: public Result(final Benchmarkable _b) {
36: super ();
37: benchmarkable = _b;
38: }
39:
40: /**
41: * @return
42: */
43: public String getName() {
44: return benchmarkable.getName();
45: }
46:
47: /**
48: * @return Returns the benchmarkable.
49: */
50: public Benchmarkable getBenchmarkable() {
51: return benchmarkable;
52: }
53:
54: /**
55: * @param benchmarkable The benchmarkable to set.
56: */
57: public void setBenchmarkable(Benchmarkable benchmarkable) {
58: this.benchmarkable = benchmarkable;
59: }
60: }
|