-
Notifications
You must be signed in to change notification settings - Fork 5
/
ResultEntitySource.java
244 lines (223 loc) · 10.4 KB
/
ResultEntitySource.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
/*
* © 2021. TU Dortmund University,
* Institute of Energy Systems, Energy Efficiency and Energy Economics,
* Research group Distribution grid planning and operation
*/
package edu.ie3.datamodel.io.source;
import edu.ie3.datamodel.models.result.NodeResult;
import edu.ie3.datamodel.models.result.ResultEntity;
import edu.ie3.datamodel.models.result.connector.LineResult;
import edu.ie3.datamodel.models.result.connector.SwitchResult;
import edu.ie3.datamodel.models.result.connector.Transformer2WResult;
import edu.ie3.datamodel.models.result.connector.Transformer3WResult;
import edu.ie3.datamodel.models.result.system.*;
import edu.ie3.datamodel.models.result.thermal.CylindricalStorageResult;
import edu.ie3.datamodel.models.result.thermal.ThermalHouseResult;
import java.util.Set;
/**
* Interface that provides the capability to build entities of type {@link ResultEntity} container
* from .csv files.
*
* @version 0.1
* @since 22 June 2021
*/
public interface ResultEntitySource {
/**
* Returns a unique set of {@link NodeResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link NodeResult} which has to be checked manually,
* as {@link NodeResult#equals(Object)} is NOT restricted by the uuid of {@link NodeResult}.
*
* @return a set of object and uuid unique {@link NodeResult} entities
*/
Set<NodeResult> getNodeResults();
/**
* Returns a unique set of {@link SwitchResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link SwitchResult} which has to be checked
* manually, as {@link SwitchResult#equals(Object)} is NOT restricted by the uuid of {@link
* SwitchResult}.
*
* @return a set of object and uuid unique {@link SwitchResult} entities
*/
Set<SwitchResult> getSwitchResults();
/**
* Returns a unique set of {@link LineResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link LineResult} which has to be checked manually,
* as {@link LineResult#equals(Object)} is NOT restricted by the uuid of {@link LineResult}.
*
* @return a set of object and uuid unique {@link LineResult} entities
*/
Set<LineResult> getLineResults();
/**
* Returns a unique set of {@link Transformer2WResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link Transformer2WResult} which has to be checked
* manually, as {@link Transformer2WResult#equals(Object)} is NOT restricted by the uuid of {@link
* Transformer2WResult}.
*
* @return a set of object and uuid unique {@link Transformer2WResult} entities
*/
Set<Transformer2WResult> getTransformer2WResultResults();
/**
* Returns a unique set of {@link Transformer3WResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link Transformer3WResult} which has to be checked
* manually, as {@link Transformer3WResult#equals(Object)} is NOT restricted by the uuid of {@link
* Transformer3WResult}.
*
* @return a set of object and uuid unique {@link Transformer3WResult} entities
*/
Set<Transformer3WResult> getTransformer3WResultResults();
/**
* Returns a unique set of {@link FlexOptionsResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link FlexOptionsResult} which has to be checked
* manually, as {@link FlexOptionsResult#equals(Object)} is NOT restricted by the uuid of {@link
* FlexOptionsResult}.
*
* @return a set of object and uuid unique {@link FlexOptionsResult} entities
*/
Set<FlexOptionsResult> getFlexOptionsResults();
/**
* Returns a unique set of {@link LoadResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link LoadResult} which has to be checked manually,
* as {@link LoadResult#equals(Object)} is NOT restricted by the uuid of {@link LoadResult}.
*
* @return a set of object and uuid unique {@link LoadResult} entities
*/
Set<LoadResult> getLoadResults();
/**
* Returns a unique set of {@link PvResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link PvResult} which has to be checked manually,
* as {@link PvResult#equals(Object)} is NOT restricted by the uuid of {@link PvResult}.
*
* @return a set of object and uuid unique {@link PvResult} entities
*/
Set<PvResult> getPvResults();
/**
* Returns a unique set of {@link FixedFeedInResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link FixedFeedInResult} which has to be checked
* manually, as {@link FixedFeedInResult#equals(Object)} is NOT restricted by the uuid of {@link
* FixedFeedInResult}.
*
* @return a set of object and uuid unique {@link FixedFeedInResult} entities
*/
Set<FixedFeedInResult> getFixedFeedInResults();
/**
* Returns a unique set of {@link BmResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link BmResult} which has to be checked manually,
* as {@link BmResult#equals(Object)} is NOT restricted by the uuid of {@link BmResult}.
*
* @return a set of object and uuid unique {@link BmResult} entities
*/
Set<BmResult> getBmResults();
/**
* Returns a unique set of {@link ChpResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link ChpResult} which has to be checked manually,
* as {@link ChpResult#equals(Object)} is NOT restricted by the uuid of {@link ChpResult}.
*
* @return a set of object and uuid unique {@link ChpResult} entities
*/
Set<ChpResult> getChpResults();
/**
* Returns a unique set of {@link WecResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link WecResult} which has to be checked manually,
* as {@link WecResult#equals(Object)} is NOT restricted by the uuid of {@link WecResult}.
*
* @return a set of object and uuid unique {@link WecResult} entities
*/
Set<WecResult> getWecResults();
/**
* Returns a unique set of {@link StorageResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link StorageResult} which has to be checked
* manually, as {@link StorageResult#equals(Object)} is NOT restricted by the uuid of {@link
* StorageResult}.
*
* @return a set of object and uuid unique {@link StorageResult} entities
*/
Set<StorageResult> getStorageResults();
/**
* Returns a unique set of {@link EvcsResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link EvcsResult} which has to be checked manually,
* as {@link EvcsResult#equals(Object)} is NOT restricted by the uuid of {@link EvcsResult}.
*
* @return a set of object and uuid unique {@link EvcsResult} entities
*/
Set<EvcsResult> getEvcsResults();
/**
* Returns a unique set of {@link EvResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link EvResult} which has to be checked manually,
* as {@link EvResult#equals(Object)} is NOT restricted by the uuid of {@link EvResult}.
*
* @return a set of object and uuid unique {@link EvResult} entities
*/
Set<EvResult> getEvResults();
/**
* Returns a unique set of {@link HpResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link HpResult} which has to be checked manually,
* as {@link HpResult#equals(Object)} is NOT restricted by the uuid of {@link HpResult}.
*
* @return a set of object and uuid unique {@link HpResult} entities
*/
Set<HpResult> getHpResults();
/**
* Returns a unique set of {@link CylindricalStorageResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link CylindricalStorageResult} which has to be
* checked manually, as {@link CylindricalStorageResult#equals(Object)} is NOT restricted by the
* uuid of {@link CylindricalStorageResult}.
*
* @return a set of object and uuid unique {@link CylindricalStorageResult} entities
*/
Set<CylindricalStorageResult> getCylindricalStorageResult();
/**
* Returns a unique set of {@link ThermalHouseResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link ThermalHouseResult} which has to be checked
* manually, as {@link ThermalHouseResult#equals(Object)} is NOT restricted by the uuid of {@link
* ThermalHouseResult}.
*
* @return a set of object and uuid unique {@link ThermalHouseResult} entities
*/
Set<ThermalHouseResult> getThermalHouseResults();
/**
* Returns a unique set of {@link EmResult} instances.
*
* <p>This set has to be unique in the sense of object uniqueness but also in the sense of {@link
* java.util.UUID} uniqueness of the provided {@link EmResult} which has to be checked manually,
* as {@link EmResult#equals(Object)} is NOT restricted by the uuid of {@link EmResult}.
*
* @return a set of object and uuid unique {@link EmResult} entities
*/
Set<EmResult> getEmResults();
}