1 | package de.uka.ipd.sdq.prototype.framework.config; |
2 | |
3 | /** |
4 | * Config class for protocom |
5 | * |
6 | * @author Steffen Becker |
7 | */ |
8 | public class ProtocomConfig { |
9 | private static final Long UNSET_LONG = null; |
10 | private static final String UNSET_STRING = null; |
11 | private static final Class<?> UNSET_CLASS = null; |
12 | |
13 | private boolean wait = false; |
14 | private String propertyFile = UNSET_STRING; |
15 | private String dataDirectory = UNSET_STRING; |
16 | private String experimentName = UNSET_STRING; |
17 | private Long userCount = UNSET_LONG; |
18 | private Long maxMeasurements = UNSET_LONG; |
19 | private Long warmUpRuns = UNSET_LONG; |
20 | private String calibrationPath = UNSET_STRING; |
21 | private String rmiIP = UNSET_STRING; |
22 | private Class<?> mainClass = UNSET_CLASS; |
23 | private Long seed = UNSET_LONG; |
24 | private boolean debug = false; |
25 | private boolean passive = false; |
26 | private boolean warmupOnly = false; |
27 | |
28 | /** |
29 | * @return the wait |
30 | */ |
31 | public boolean isWait() { |
32 | return wait; |
33 | } |
34 | /** |
35 | * @param wait the wait to set |
36 | */ |
37 | public void setWait(boolean wait) { |
38 | this.wait = wait; |
39 | } |
40 | /** |
41 | * @return the propertyFile |
42 | */ |
43 | public String getPropertyFile() { |
44 | return propertyFile; |
45 | } |
46 | /** |
47 | * @param propertyFile the propertyFile to set |
48 | */ |
49 | public void setPropertyFile(String propertyFile) { |
50 | this.propertyFile = propertyFile; |
51 | } |
52 | /** |
53 | * @return the dataDirectory |
54 | */ |
55 | public String getDataDirectory() { |
56 | return dataDirectory; |
57 | } |
58 | /** |
59 | * @param dataDirectory the dataDirectory to set |
60 | */ |
61 | public void setDataDirectory(String dataDirectory) { |
62 | this.dataDirectory = dataDirectory; |
63 | } |
64 | /** |
65 | * @return the experimentName |
66 | */ |
67 | public String getExperimentName() { |
68 | return experimentName; |
69 | } |
70 | /** |
71 | * @param experimentName the experimentName to set |
72 | */ |
73 | public void setExperimentName(String experimentName) { |
74 | this.experimentName = experimentName; |
75 | } |
76 | /** |
77 | * @return the userCount |
78 | */ |
79 | public Long getUserCount() { |
80 | return userCount; |
81 | } |
82 | /** |
83 | * @param userCount the userCount to set |
84 | */ |
85 | public void setUserCount(Long userCount) { |
86 | this.userCount = userCount; |
87 | } |
88 | /** |
89 | * @return the maxMeasurements |
90 | */ |
91 | public Long getMaxMeasurements() { |
92 | return maxMeasurements; |
93 | } |
94 | /** |
95 | * @param maxMeasurements the maxMeasurements to set |
96 | */ |
97 | public void setMaxMeasurements(Long maxMeasurements) { |
98 | this.maxMeasurements = maxMeasurements; |
99 | } |
100 | /** |
101 | * @return the warmUpRuns |
102 | */ |
103 | public Long getWarmUpRuns() { |
104 | return warmUpRuns; |
105 | } |
106 | /** |
107 | * @param warmUpRuns the warmUpRuns to set |
108 | */ |
109 | public void setWarmUpRuns(Long warmUpRuns) { |
110 | this.warmUpRuns = warmUpRuns; |
111 | } |
112 | /** |
113 | * @return the calibrationPath |
114 | */ |
115 | public String getCalibrationPath() { |
116 | return calibrationPath; |
117 | } |
118 | /** |
119 | * @param calibrationPath the calibrationPath to set |
120 | */ |
121 | public void setCalibrationPath(String calibrationPath) { |
122 | this.calibrationPath = calibrationPath; |
123 | } |
124 | /** |
125 | * @return the rmiIP |
126 | */ |
127 | public String getRmiIP() { |
128 | return rmiIP; |
129 | } |
130 | /** |
131 | * @param rmiIP the rmiIP to set |
132 | */ |
133 | public void setRmiIP(String rmiIP) { |
134 | this.rmiIP = rmiIP; |
135 | } |
136 | /** |
137 | * @return the mainClass |
138 | */ |
139 | public Class<?> getMainClass() { |
140 | return mainClass; |
141 | } |
142 | /** |
143 | * @param mainClass the mainClass to set |
144 | */ |
145 | public void setMainClass(Class<?> mainClass) { |
146 | this.mainClass = mainClass; |
147 | } |
148 | /** |
149 | * @return the seed |
150 | */ |
151 | public Long getSeed() { |
152 | return seed; |
153 | } |
154 | /** |
155 | * @param seed the seed to set |
156 | */ |
157 | public void setSeed(Long seed) { |
158 | this.seed = seed; |
159 | } |
160 | /** |
161 | * @return the debug |
162 | */ |
163 | public boolean isDebug() { |
164 | return debug; |
165 | } |
166 | /** |
167 | * @param debug the debug to set |
168 | */ |
169 | public void setDebug(boolean debug) { |
170 | this.debug = debug; |
171 | } |
172 | /** |
173 | * @return the passive |
174 | */ |
175 | public boolean isPassive() { |
176 | return passive; |
177 | } |
178 | /** |
179 | * @param passive the passive to set |
180 | */ |
181 | public void setPassive(boolean passive) { |
182 | this.passive = passive; |
183 | } |
184 | /** |
185 | * @return the warmupOnly |
186 | */ |
187 | public boolean isWarmupOnly() { |
188 | return warmupOnly; |
189 | } |
190 | /** |
191 | * @param warmupOnly the warmupOnly to set |
192 | */ |
193 | public void setWarmupOnly(boolean warmupOnly) { |
194 | this.warmupOnly = warmupOnly; |
195 | } |
196 | } |