01: /*
02: * Created on Oct 11, 2004 by pjacob
03: *
04: */
05: package com.whirlycott.cache.benchmarks;
06:
07: /**
08: * Holds the input parameters for the benchmark.
09: *
10: * @author pjacob
11: *
12: */
13: public class Params {
14:
15: final private int cacheSize;
16:
17: final private int threads;
18:
19: public Params(final int _cacheSize, final int _threads) {
20: cacheSize = _cacheSize;
21: threads = _threads;
22: }
23:
24: /**
25: * @return Returns the cacheSize.
26: */
27: public int getCacheSize() {
28: return cacheSize;
29: }
30:
31: /**
32: * @return Returns the readers.
33: */
34: public int getThreads() {
35: return threads;
36: }
37:
38: public String getShortName() {
39: return "c" + getCacheSize() + "/" + "r" + getThreads() + "/";
40: }
41:
42: }
|