Skip to content

Commit 78ca290

Browse files
committed
Merge branch 'dev' into vb/#791_delete_initFiles
2 parents 9b6e41c + 7c4a5c0 commit 78ca290

21 files changed

+3
-664
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414

1515
### Changed
16+
- Removing deprecated classes and methods [#540](https://github.com/ie3-institute/PowerSystemDataModel/issues/540)
1617

1718

1819
## [3.0.0] - 2023-02-16

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ dependencies {
8787

8888
// Databases
8989
implementation 'org.influxdb:influxdb-java:2.23'
90-
implementation 'com.couchbase.client:java-client:3.4.4'
90+
implementation 'com.couchbase.client:java-client:3.4.5'
9191
runtimeOnly 'org.postgresql:postgresql:42.6.0' // postgresql jdbc driver required during runtime
9292

9393
implementation 'commons-io:commons-io:2.11.0' // I/O functionalities

src/main/java/edu/ie3/datamodel/graph/ImpedanceWeightedGraph.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,4 @@ public void setEdgeWeightQuantity(
3939
weight.to(ImpedanceWeightedEdge.DEFAULT_IMPEDANCE_UNIT).getValue().doubleValue();
4040
super.setEdgeWeight(edge, weightDouble);
4141
}
42-
43-
/**
44-
* The only purpose for overriding this method is to provide a better indication of the unit that
45-
* is expected to be passed in. It is highly advised to use the {@link
46-
* ImpedanceWeightedGraph#setEdgeWeightQuantity(ImpedanceWeightedEdge, ComparableQuantity)} for
47-
* safety purposes that the provided edge weight is correct.
48-
*
49-
* @param edge the edge whose weight should be altered
50-
* @param impedanceInOhm the weight of the {@link ImpedanceWeightedEdge} in ohm
51-
* @deprecated Use {@link ImpedanceWeightedGraph#setEdgeWeightQuantity(ImpedanceWeightedEdge,
52-
* ComparableQuantity)} instead, as it provides means for proper unit handling
53-
*/
54-
@Override
55-
@Deprecated(since = "Deprecated since 2.1.0. See Javadocs for more information.")
56-
public void setEdgeWeight(ImpedanceWeightedEdge edge, double impedanceInOhm) {
57-
super.setEdgeWeight(edge, impedanceInOhm);
58-
}
5942
}

src/main/java/edu/ie3/datamodel/graph/SubGridGate.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,6 @@ public static SubGridGate fromTransformer3W(
5353
};
5454
}
5555

56-
/** @deprecated since 3.0. Use {@link #link()} instead */
57-
@Deprecated(since = "3.0")
58-
public TransformerInput getLink() {
59-
return link;
60-
}
61-
62-
/** @deprecated since 3.0. Use {@link #superiorNode()} instead */
63-
@Deprecated(since = "3.0")
64-
public NodeInput getSuperiorNode() {
65-
return superiorNode;
66-
}
67-
68-
/** @deprecated since 3.0. Use {@link #inferiorNode()} instead */
69-
@Deprecated(since = "3.0")
70-
public NodeInput getInferiorNode() {
71-
return inferiorNode;
72-
}
73-
7456
public int getSuperiorSubGrid() {
7557
return superiorNode.getSubnet();
7658
}

src/main/java/edu/ie3/datamodel/io/connectors/CsvFileConnector.java

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ public class CsvFileConnector implements DataConnector {
4242
private final Map<Class<? extends UniqueEntity>, BufferedCsvWriter> entityWriters =
4343
new HashMap<>();
4444
private final Map<UUID, BufferedCsvWriter> timeSeriesWriters = new HashMap<>();
45-
// ATTENTION: Do not finalize. It's meant for lazy evaluation.
46-
@Deprecated(since = "3.0", forRemoval = true)
47-
private Map<UUID, edu.ie3.datamodel.io.csv.CsvIndividualTimeSeriesMetaInformation>
48-
individualTimeSeriesMetaInformation;
4945

5046
private final FileNamingStrategy fileNamingStrategy;
5147
private final String baseDirectoryName;
@@ -209,27 +205,6 @@ public BufferedReader initReader(String filePath) throws FileNotFoundException {
209205
new InputStreamReader(new FileInputStream(fullPath), StandardCharsets.UTF_8), 16384);
210206
}
211207

212-
/**
213-
* Get time series meta information for a given uuid.
214-
*
215-
* <p>This method lazily evaluates the mapping from <i>all</i> time series files to their meta
216-
* information.
217-
*
218-
* @param timeSeriesUuid The time series in question
219-
* @return An option on the queried information
220-
* @deprecated since 3.0. Use {@link #getCsvIndividualTimeSeriesMetaInformation(ColumnScheme...)}
221-
* instead
222-
*/
223-
@Deprecated(since = "3.0", forRemoval = true)
224-
public Optional<edu.ie3.datamodel.io.csv.timeseries.IndividualTimeSeriesMetaInformation>
225-
getIndividualTimeSeriesMetaInformation(UUID timeSeriesUuid) {
226-
if (Objects.isNull(individualTimeSeriesMetaInformation))
227-
individualTimeSeriesMetaInformation = getCsvIndividualTimeSeriesMetaInformation();
228-
229-
return Optional.ofNullable(individualTimeSeriesMetaInformation.get(timeSeriesUuid))
230-
.map(edu.ie3.datamodel.io.csv.timeseries.IndividualTimeSeriesMetaInformation::new);
231-
}
232-
233208
/**
234209
* Receive the information for specific time series. They are given back filtered by the column
235210
* scheme in order to allow for accounting the different content types.
@@ -359,60 +334,4 @@ public void shutdown() {
359334
}
360335
});
361336
}
362-
363-
/**
364-
* Enhancing the {@link IndividualTimeSeriesMetaInformation} with the full path to csv file
365-
*
366-
* @deprecated since 3.0. Use {@link
367-
* edu.ie3.datamodel.io.csv.CsvIndividualTimeSeriesMetaInformation} instead
368-
*/
369-
@Deprecated(since = "3.0", forRemoval = true)
370-
public static class CsvIndividualTimeSeriesMetaInformation
371-
extends edu.ie3.datamodel.io.csv.timeseries.IndividualTimeSeriesMetaInformation {
372-
private final String fullFilePath;
373-
374-
public CsvIndividualTimeSeriesMetaInformation(
375-
UUID uuid,
376-
edu.ie3.datamodel.io.csv.timeseries.ColumnScheme columnScheme,
377-
String fullFilePath) {
378-
super(uuid, columnScheme);
379-
this.fullFilePath = fullFilePath;
380-
}
381-
382-
public CsvIndividualTimeSeriesMetaInformation(
383-
edu.ie3.datamodel.io.csv.timeseries.IndividualTimeSeriesMetaInformation metaInformation,
384-
String fullFilePath) {
385-
this(metaInformation.getUuid(), metaInformation.getColumnScheme(), fullFilePath);
386-
}
387-
388-
public String getFullFilePath() {
389-
return fullFilePath;
390-
}
391-
392-
@Override
393-
public boolean equals(Object o) {
394-
if (this == o) return true;
395-
if (!(o instanceof CsvIndividualTimeSeriesMetaInformation that)) return false;
396-
if (!super.equals(o)) return false;
397-
return fullFilePath.equals(that.fullFilePath);
398-
}
399-
400-
@Override
401-
public int hashCode() {
402-
return Objects.hash(super.hashCode(), fullFilePath);
403-
}
404-
405-
@Override
406-
public String toString() {
407-
return "CsvIndividualTimeSeriesMetaInformation{"
408-
+ "uuid="
409-
+ getUuid()
410-
+ ", columnScheme="
411-
+ getColumnScheme()
412-
+ ", fullFilePath='"
413-
+ fullFilePath
414-
+ '\''
415-
+ '}';
416-
}
417-
}
418337
}

src/main/java/edu/ie3/datamodel/io/csv/CsvFileDefinition.java

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,6 @@ public CsvFileDefinition(
5656
this.csvSep = csvSep;
5757
}
5858

59-
/** @deprecated since 3.0. Use {@link #directoryPath()} instead */
60-
@Deprecated(since = "3.0")
61-
public String getDirectoryPath() {
62-
return directoryPath;
63-
}
64-
65-
/**
66-
* @return The file name including extension
67-
* @deprecated since 3.0. Use {@link #fileName()} instead
68-
*/
69-
@Deprecated(since = "3.0")
70-
public String getFileName() {
71-
return fileName;
72-
}
73-
7459
/**
7560
* @return The path to the file relative to a not explicitly defined base directory, including the
7661
* file extension
@@ -79,18 +64,6 @@ public String getFilePath() {
7964
return !directoryPath.isEmpty() ? FilenameUtils.concat(directoryPath, fileName) : fileName;
8065
}
8166

82-
/** @deprecated since 3.0. Use {@link #headLineElements()} instead */
83-
@Deprecated(since = "3.0")
84-
public String[] getHeadLineElements() {
85-
return headLineElements;
86-
}
87-
88-
/** @deprecated since 3.0. Use {@link #csvSep()} instead */
89-
@Deprecated(since = "3.0")
90-
public String getCsvSep() {
91-
return csvSep;
92-
}
93-
9467
@Override
9568
public boolean equals(Object o) {
9669
// equals implementation is required here because

src/main/java/edu/ie3/datamodel/io/csv/FileNameMetaInformation.java

Lines changed: 0 additions & 44 deletions
This file was deleted.

src/main/java/edu/ie3/datamodel/io/csv/timeseries/ColumnScheme.java

Lines changed: 0 additions & 68 deletions
This file was deleted.

src/main/java/edu/ie3/datamodel/io/csv/timeseries/IndividualTimeSeriesMetaInformation.java

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)