1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package p3j.experiment;
17
18 import java.util.Date;
19
20 import p3j.pppm.ProjectionModel;
21 import p3j.simulation.ISimulationParameters;
22 import p3j.simulation.assignments.plugintype.IParamAssignmentGenerator;
23
24
25
26
27
28
29
30
31
32 public class ExperimentDefinition {
33
34
35 private int id;
36
37
38 private long randSeed;
39
40
41 private String user;
42
43
44 private Date date;
45
46
47
48
49
50 private ProjectionModel projection;
51
52
53 private Class<? extends IParamAssignmentGenerator> simulator;
54
55
56 private ISimulationParameters simParams;
57
58
59 private ResultSet resultSet;
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76 public ExperimentDefinition(ProjectionModel proj, long randS,
77 Date currentDate, String userName,
78 Class<? extends IParamAssignmentGenerator> sim) {
79 projection = proj;
80 randSeed = randS;
81 date = new Date(currentDate.getTime());
82 user = userName;
83 simulator = sim;
84 }
85
86
87
88
89 public ExperimentDefinition() {
90 }
91
92
93
94
95
96
97 public long getRandSeed() {
98 return randSeed;
99 }
100
101
102
103
104
105
106
107 public void setRandSeed(long randSeed) {
108 this.randSeed = randSeed;
109 }
110
111
112
113
114
115
116 public String getUser() {
117 return user;
118 }
119
120
121
122
123
124
125
126 public void setUser(String user) {
127 this.user = user;
128 }
129
130
131
132
133
134
135 public Date getDate() {
136 return new Date(date.getTime());
137 }
138
139
140
141
142
143
144
145 public void setDate(Date date) {
146 this.date.setTime(date.getTime());
147 }
148
149
150
151
152
153
154 public ProjectionModel getProjection() {
155 return projection;
156 }
157
158
159
160
161
162
163
164 public void setProjection(ProjectionModel projection) {
165 this.projection = projection;
166 }
167
168
169
170
171
172
173 public Class<? extends IParamAssignmentGenerator> getSimulator() {
174 return simulator;
175 }
176
177
178
179
180
181
182
183 public void setSimulator(Class<? extends IParamAssignmentGenerator> simulator) {
184 this.simulator = simulator;
185 }
186
187
188
189
190
191
192 public ISimulationParameters getSimParams() {
193 return simParams;
194 }
195
196
197
198
199
200
201
202 public void setSimParams(ISimulationParameters simParams) {
203 this.simParams = simParams;
204 }
205
206
207
208
209
210
211 public ResultSet getResultSet() {
212 return resultSet;
213 }
214
215
216
217
218
219
220
221 public void setResultSet(ResultSet resultSet) {
222 this.resultSet = resultSet;
223 }
224
225
226
227
228
229
230 public int getID() {
231 return id;
232 }
233
234
235
236
237
238
239
240 public void setID(int uniqueID) {
241 id = uniqueID;
242 }
243
244 }