-
Notifications
You must be signed in to change notification settings - Fork 5
/
CsvThermalSource.java
35 lines (33 loc) · 1.33 KB
/
CsvThermalSource.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
/*
* © 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.csv;
import edu.ie3.datamodel.io.naming.FileNamingStrategy;
import edu.ie3.datamodel.io.source.ThermalSource;
import edu.ie3.datamodel.io.source.TypeSource;
/**
* Source that provides the capability to build thermal {@link
* edu.ie3.datamodel.models.input.AssetInput} entities from .csv files
*
* <p>This source is <b>not buffered</b> which means each call on a getter method always tries to
* read all data is necessary to return the requested objects in a hierarchical cascading way.
*
* <p>If performance is an issue, it is recommended to read the data cascading starting with reading
* nodes and then using the getters with arguments to avoid reading the same data multiple times.
*
* <p>The resulting sets are always unique on object <b>and</b> UUID base (with distinct UUIDs).
*
* @version 0.1
* @since 03.04.20
*/
public class CsvThermalSource extends ThermalSource {
public CsvThermalSource(
String csvSep,
String thermalUnitsFolderPath,
FileNamingStrategy fileNamingStrategy,
TypeSource typeSource) {
super(typeSource, new CsvDataSource(csvSep, thermalUnitsFolderPath, fileNamingStrategy));
}
}