Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
c143c0b
Increasing working version to 7.0.0
sebastian-peter May 8, 2025
4fc97f7
Bumping gradle to 8.14
sebastian-peter May 8, 2025
a467115
Preparing changelog for release
sebastian-peter May 8, 2025
a61df5b
Updating mavenCentralPublish.gradle
sebastian-peter May 8, 2025
1a4eb8d
spotless
sebastian-peter May 8, 2025
cc4a9e8
Increasing working version to 7.1.0
sebastian-peter May 8, 2025
a35bcc6
Merge pull request #1321 from ie3-institute/sp/#000-merge-back-changes
sebastian-peter May 8, 2025
6bb0e9c
Bump com.couchbase.client:java-client from 3.8.0 to 3.8.1
dependabot[bot] May 12, 2025
e03cad8
Merge pull request #1322 from ie3-institute/dependabot/gradle/dev/com…
github-actions[bot] May 12, 2025
4892174
Bump org.sonarqube from 6.1.0.5360 to 6.2.0.5505 (#1324)
dependabot[bot] May 16, 2025
c5d99d9
Fixed handling of `CongestionResult.InputModelType` in `EntityProcessor`
staudtMarius May 20, 2025
dba1737
dependabot-auto-merge.yml
PhilippSchmelter May 21, 2025
54037a1
dependabot-auto-merge.yml fix
PhilippSchmelter May 21, 2025
ebfc313
dependabot.yml
PhilippSchmelter May 21, 2025
e92bd82
Merge pull request #1329 from ie3-institute/ps/#1328-updateDependabot…
danielfeismann May 22, 2025
b03e85d
Bump com.github.spotbugs from 6.1.11 to 6.1.12
dependabot[bot] May 22, 2025
2098b4b
Merge pull request #1327 from ie3-institute/dependabot/gradle/dev/com…
github-actions[bot] May 22, 2025
41ba21f
Merge branch 'dev' into ms/#1325-fix-handling-of-inputModelType-in-pr…
staudtMarius May 22, 2025
4fb7159
Merge pull request #1326 from ie3-institute/ms/#1325-fix-handling-of-…
danielfeismann May 22, 2025
b305429
Fixed em fields in input models.
staudtMarius May 22, 2025
b6f96fc
Extend azimuth angle range to [-180°, 180°] for PV inputs
pierrepetersmeier May 23, 2025
ce011c3
Fix failed test
pierrepetersmeier May 23, 2025
f97e706
Merge pull request #1332 from ie3-institute/ms/#1331-fix-em-fields-in…
danielfeismann May 26, 2025
317376a
Update SystemParticipantValidationUtils.java
pierrepetersmeier May 26, 2025
4f1d576
Merge branch 'dev' into pp/#1330-increase-range-of-azimuth-angle-for-…
pierrepetersmeier May 26, 2025
83a2cbc
Bump org.apache.groovy:groovy from 4.0.26 to 4.0.27
dependabot[bot] May 27, 2025
5f331e4
Merge pull request #1335 from ie3-institute/dependabot/gradle/dev/org…
github-actions[bot] May 27, 2025
3baf62b
Bump com.diffplug.spotless from 7.0.3 to 7.0.4
dependabot[bot] May 28, 2025
a20acea
Merge pull request #1336 from ie3-institute/dependabot/gradle/dev/com…
github-actions[bot] May 28, 2025
762c120
Fix correct expected exception message in PV validation test
pierrepetersmeier May 28, 2025
269fabb
Merge branch 'dev' into pp/#1330-increase-range-of-azimuth-angle-for-…
pierrepetersmeier May 28, 2025
2275c73
Bump org.postgresql:postgresql from 42.7.5 to 42.7.6
dependabot[bot] May 29, 2025
83d5153
Merge pull request #1339 from ie3-institute/dependabot/gradle/dev/org…
github-actions[bot] May 29, 2025
7b17b56
Bump com.github.spotbugs from 6.1.12 to 6.1.13
dependabot[bot] May 29, 2025
60ffa8f
Merge pull request #1340 from ie3-institute/dependabot/gradle/dev/com…
github-actions[bot] May 29, 2025
f02ed6a
Merge branch 'dev' into pp/#1330-increase-range-of-azimuth-angle-for-…
pierrepetersmeier May 29, 2025
abd6dca
Correct azimuth error message
pierrepetersmeier May 29, 2025
876da13
Merge remote-tracking branch 'origin/pp/#1330-increase-range-of-azimu…
pierrepetersmeier May 29, 2025
88e9af5
Bump testcontainersVersion from 1.21.0 to 1.21.1
dependabot[bot] May 30, 2025
3a46bbe
Merge pull request #1341 from ie3-institute/dependabot/gradle/dev/tes…
github-actions[bot] May 30, 2025
36d4755
Merge branch 'dev' into pp/#1330-increase-range-of-azimuth-angle-for-…
danielfeismann Jun 2, 2025
8ca988e
Merge pull request #1334 from ie3-institute/pp/#1330-increase-range-o…
danielfeismann Jun 2, 2025
1e295b4
Bump com.couchbase.client:java-client from 3.8.1 to 3.8.2
dependabot[bot] Jun 5, 2025
56f0cb9
Merge pull request #1342 from ie3-institute/dependabot/gradle/dev/com…
github-actions[bot] Jun 5, 2025
571f498
Bump com.github.spotbugs from 6.1.13 to 6.2.0 (#1344)
dependabot[bot] Jun 10, 2025
c995d5e
Bump org.postgresql:postgresql from 42.7.6 to 42.7.7
dependabot[bot] Jun 12, 2025
9911f7d
Sonarqube: new parameter name
sebastian-peter Jun 17, 2025
69cb52a
Merge pull request #1345 from ie3-institute/dependabot/gradle/dev/org…
github-actions[bot] Jun 17, 2025
70ac054
Bump org.apache.logging.log4j:log4j-bom from 2.24.3 to 2.25.0
dependabot[bot] Jun 17, 2025
731fe61
Token delimiter
sebastian-peter Jun 17, 2025
951560f
Merge pull request #1346 from ie3-institute/dependabot/gradle/dev/org…
dependabot[bot] Jun 17, 2025
4372c2d
Bump net.bytebuddy:byte-buddy from 1.17.5 to 1.17.6
dependabot[bot] Jun 20, 2025
53d4a92
test sonar token
danielfeismann Jun 24, 2025
1954d29
Merge pull request #1347 from ie3-institute/dependabot/gradle/dev/net…
github-actions[bot] Jun 24, 2025
1602597
Bump testcontainersVersion from 1.21.1 to 1.21.2
dependabot[bot] Jun 24, 2025
550ab1d
Revert "test sonar token"
danielfeismann Jun 24, 2025
1425d19
Merge pull request #1349 from ie3-institute/dependabot/gradle/dev/tes…
github-actions[bot] Jun 24, 2025
95c517b
Bump testcontainersVersion from 1.21.2 to 1.21.3
dependabot[bot] Jul 2, 2025
969cc1f
Merge pull request #1353 from ie3-institute/dependabot/gradle/dev/tes…
github-actions[bot] Jul 2, 2025
5537358
Bump com.github.spotbugs from 6.2.0 to 6.2.1
dependabot[bot] Jul 2, 2025
863de29
Merge pull request #1350 from ie3-institute/dependabot/gradle/dev/com…
github-actions[bot] Jul 2, 2025
e9f21ae
Improved error messages when reading and validating an invalid grid
staudtMarius Jul 2, 2025
0a9e861
Merge branch 'dev' into ms/#1354-improve-exception-messages-for-readi…
staudtMarius Jul 2, 2025
28756ae
Improving the messages and the format of exceptions.
staudtMarius Jul 3, 2025
4bbe628
Extend Validation to EnergyManagement Systems
danielfeismann Jul 3, 2025
9088286
remove validation for emInput.controllStrategy
danielfeismann Jul 4, 2025
9f9034d
fmt
danielfeismann Jul 4, 2025
6afd362
adapted test
danielfeismann Jul 4, 2025
44494c1
Fixed valid fields for `EmInput`
staudtMarius Jul 4, 2025
48fb0ba
Improving test.
staudtMarius Jul 7, 2025
9d4528b
Bump com.diffplug.spotless from 7.0.4 to 7.1.0 (#1364)
dependabot[bot] Jul 8, 2025
74da8a4
Merge branch 'dev' into ms/#1360-fix-valid-fields-for-EmInput
staudtMarius Jul 8, 2025
8562d78
Merge branch 'dev' into ms/#1354-improve-exception-messages-for-readi…
staudtMarius Jul 8, 2025
d8451f5
proposal for testing fields of EmInputFactory
danielfeismann Jul 8, 2025
05ec099
Merge pull request #1361 from ie3-institute/ms/#1360-fix-valid-fields…
staudtMarius Jul 9, 2025
458cc5e
Merge branch 'dev' into ms/#1354-improve-exception-messages-for-readi…
staudtMarius Jul 9, 2025
39e1178
Implementing reviewer's comments.
staudtMarius Jul 9, 2025
f533287
Merge branch 'dev' into df/#1356-validation-em
danielfeismann Jul 9, 2025
50e8afa
Fix sonarqube issues.
staudtMarius Jul 9, 2025
e85ae3a
Improving the exceptions thrown by methods in `UniquenessValidationUt…
staudtMarius Jul 9, 2025
9595f07
Merge pull request #1359 from ie3-institute/df/#1356-validation-em
staudtMarius Jul 9, 2025
b60c803
Merge branch 'dev' into ms/#1354-improve-exception-messages-for-readi…
staudtMarius Jul 9, 2025
66a9db7
Changed `SubgridContainer` to represent galvanically seperated grids
staudtMarius Jul 9, 2025
077a760
Removing exception class information from combined exceptions.
staudtMarius Jul 9, 2025
7e14215
Merge pull request #1355 from ie3-institute/ms/#1354-improve-exceptio…
danielfeismann Jul 9, 2025
40eef0b
Bump com.github.spotbugs from 6.2.1 to 6.2.2
dependabot[bot] Jul 11, 2025
40ca41a
Merge pull request #1367 from ie3-institute/dependabot/gradle/dev/com…
github-actions[bot] Jul 11, 2025
6a491b0
Merge branch 'dev' into ms/#1226-change-SubgridContainer-to-be-in-lin…
staudtMarius Jul 11, 2025
37c9e08
Including reviewer's comments.
staudtMarius Jul 11, 2025
fac7450
fix merge issues
staudtMarius Jul 11, 2025
3249867
fixing merge issue.
staudtMarius Jul 11, 2025
829e37b
Including reviewer's comments.
staudtMarius Jul 11, 2025
2909188
Merge pull request #1366 from ie3-institute/ms/#1226-change-SubgridCo…
danielfeismann Jul 11, 2025
4c9b597
Bump org.apache.logging.log4j:log4j-bom from 2.25.0 to 2.25.1
dependabot[bot] Jul 14, 2025
091269e
Merge pull request #1370 from ie3-institute/dependabot/gradle/dev/org…
github-actions[bot] Jul 14, 2025
838de0d
Bump com.couchbase.client:java-client from 3.8.2 to 3.8.3
dependabot[bot] Jul 14, 2025
a4eb17b
Merge pull request #1369 from ie3-institute/dependabot/gradle/dev/com…
github-actions[bot] Jul 14, 2025
6d40b4d
Merge branch 'dev' into rel/df/#1371-release_8.0.0
danielfeismann Jul 17, 2025
a067117
changelog and version.properties
danielfeismann Jul 17, 2025
6065b1f
changelog 2
danielfeismann Jul 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Reviewers for Dependabot PRs
build.gradle @sebastian-peter @danielfeismann @staudtMarius

# Reviewers for CI/CD related PRs
.github/workflows/ @sebastian-peter @PhilippSchmelter
6 changes: 0 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ updates:
time: "04:00"
open-pull-requests-limit: 10
target-branch: dev
reviewers:
- t-ober
- staudtMarius
- sebastian-peter
- danielfeismann
- jo-bao

- package-ecosystem: pip
directory: "/docs/readthedocs"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
./gradlew sonar \
-Dsonar.projectKey=${{ vars.SONAR_PROJECT_KEY }} \
-Dsonar.host.url=${{ vars.SONAR_HOST_URL }} \
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \
-Dsonar.token="${{ secrets.SONAR_TOKEN }}" \
-Dsonar.qualitygate.wait=true

#Deployment
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ jobs:
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Check Snapshot
if: contains(steps.metadata.outputs.new-version, 'snap')
run: |
echo "::error::Snapshot versions are not allowed – workflow stopped."
exit 1

- name: Approve the PR
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Enable auto-merge for Dependabot PRs
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: gh pr merge --auto --merge "$PR_URL"
Expand Down
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased/Snapshot]

### Added

### Fixed

### Changed

## [8.0.0] - 2025-07-17

### Added
- Extend Validation to EnergyManagement Systems. [#1356](https://github.com/ie3-institute/PowerSystemDataModel/issues/1356)

### Fixed
- Fixed handling of `CongestionResult.InputModelType` in `EntityProcessor` [#1325](https://github.com/ie3-institute/PowerSystemDataModel/issues/1325)
- Fixed em fields in input models [#1331](https://github.com/ie3-institute/PowerSystemDataModel/issues/1331)
- Fixed valid fields for `EmInput` [#1360](https://github.com/ie3-institute/PowerSystemDataModel/issues/1360)

### Changed
- Updated dependabot workflow and added CODEOWNERS [#1328](https://github.com/ie3-institute/PowerSystemDataModel/issues/1328)
- Extend azimuth angle range to [-180°, 180°] for PV inputs [#1330](https://github.com/ie3-institute/PowerSystemDataModel/issues/1330)
- Improved error messages when reading and validating an invalid grid [#1354](https://github.com/ie3-institute/PowerSystemDataModel/issues/1354)
- Changed `SubgridContainer` to represent galvanically seperated grids [#1226](https://github.com/ie3-institute/PowerSystemDataModel/issues/1226)

## [7.0.0] - 2025-05-08

### Added
Expand Down Expand Up @@ -357,7 +379,8 @@ coordinates or multiple exactly equal coordinates possible
- CsvDataSource now stops trying to get an operator for empty operator uuid field in entities
- CsvDataSource now parsing multiple geoJson strings correctly

[Unreleased/Snapshot]: https://github.com/ie3-institute/powersystemdatamodel/compare/7.0.0...HEAD
[Unreleased/Snapshot]:
[8.0.0]: https://github.com/ie3-institute/powersystemdatamodel/compare/7.0.0...8.0.0
[7.0.0]: https://github.com/ie3-institute/powersystemdatamodel/compare/6.0.0...7.0.0
[6.0.0]: https://github.com/ie3-institute/powersystemdatamodel/compare/5.1.0...6.0.0
[5.1.0]: https://github.com/ie3-institute/powersystemdatamodel/compare/5.0.1...5.1.0
Expand Down
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ plugins {
id 'maven-publish'
id 'signing'
id 'pmd' // code check, working on source code
id 'com.diffplug.spotless' version '7.0.3' //code format
id 'com.github.spotbugs' version '6.1.11' // code check, working on byte code
id 'com.diffplug.spotless' version '7.1.0' //code format
id 'com.github.spotbugs' version '6.2.2' // code check, working on byte code
id 'de.undercouch.download' version '5.6.0'
id 'kr.motd.sphinx' version '2.10.1' // documentation generation
id 'jacoco' // java code coverage plugin
id "org.sonarqube" version "6.1.0.5360" // sonarqube
id "org.sonarqube" version "6.2.0.5505" // sonarqube
id 'net.thauvin.erik.gradle.semver' version '1.0.4' // semantic versioning
id "com.github.johnrengelman.shadow" version "8.1.1" // fat jar
}
Expand All @@ -18,10 +18,10 @@ ext {
//version (changing these should be considered thoroughly!)
javaVersion = JavaVersion.VERSION_17
groovyVersion = "4.0"
groovyBinaryVersion = "4.0.26"
groovyBinaryVersion = "4.0.27"

junitVersion = '1.12.0'
testcontainersVersion = '1.21.0'
testcontainersVersion = '1.21.3'

scriptsLocation = 'gradle' + File.separator + 'scripts' + File.separator //location of script plugins
}
Expand Down Expand Up @@ -81,7 +81,7 @@ dependencies {
testImplementation "org.junit.jupiter:junit-jupiter:$junitVersion"
testImplementation "org.spockframework:spock-core:2.3-groovy-$groovyVersion"
testImplementation 'org.objenesis:objenesis:3.4' // Mock creation with constructor parameters
testImplementation 'net.bytebuddy:byte-buddy:1.17.5' // Mocks of classes
testImplementation 'net.bytebuddy:byte-buddy:1.17.6' // Mocks of classes

// testcontainers (docker framework for testing)
testImplementation "org.testcontainers:testcontainers:$testcontainersVersion"
Expand All @@ -91,15 +91,15 @@ dependencies {
testImplementation "org.testcontainers:couchbase:$testcontainersVersion"

// logging
implementation platform('org.apache.logging.log4j:log4j-bom:2.24.3')
implementation platform('org.apache.logging.log4j:log4j-bom:2.25.1')
implementation 'org.apache.logging.log4j:log4j-api' // log4j
implementation 'org.apache.logging.log4j:log4j-core' // log4j
implementation 'org.apache.logging.log4j:log4j-slf4j-impl' // log4j -> slf4j

// Databases
implementation 'org.influxdb:influxdb-java:2.25'
implementation 'com.couchbase.client:java-client:3.8.0'
runtimeOnly 'org.postgresql:postgresql:42.7.5' // postgresql jdbc driver required during runtime
implementation 'com.couchbase.client:java-client:3.8.3'
runtimeOnly 'org.postgresql:postgresql:42.7.7' // postgresql jdbc driver required during runtime

implementation 'commons-io:commons-io:2.19.0' // I/O functionalities
implementation 'commons-codec:commons-codec:1.18.0' // needed by commons-compress
Expand Down
Binary file modified docs/readthedocs/_static/figures/transformerWithSwitchGear.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions docs/readthedocs/_static/figures/transformerWithSwitchGear.tex
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@
\begin{tikzpicture}
% === Anschlüsse ===
\node[circle, draw = tuGreen, fill = tuGreen, inner sep = 0, minimum height = 1.5mm] (port_a) at (0,0){};
\node[circle, draw = tuOrange, fill = tuOrange, inner sep = 0, minimum height = 1.5mm] (port_b) at (15mm,0){};
\node[circle, draw = tuOrange, fill = tuOrange, inner sep = 0, minimum height = 1.5mm] (port_c) at (30mm,0){};
\node[circle, draw = tuOrange, fill = tuOrange, inner sep = 0, minimum height = 1.5mm] (port_d) at (45mm,0){};
\node[circle, draw = tuOrange, fill = tuGreen, inner sep = 0, minimum height = 1.5mm] (port_b) at (15mm,0){};
\node[circle, draw = tuOrange, fill = tuGreen, inner sep = 0, minimum height = 1.5mm] (port_c) at (30mm,0){};
\node[circle, draw = tuOrange, fill = tuGreen, inner sep = 0, minimum height = 1.5mm] (port_d) at (45mm,0){};
\node[circle, draw = tuOrange, fill = tuOrange, inner sep = 0, minimum height = 1.5mm] (port_e) at (62.5mm,0){};

\draw (port_a.west) -- ++(-3mm, -1mm) -- ++(0mm, -2mm) edge[densely dotted] ++(0mm, -1.8mm);
Expand All @@ -176,9 +176,9 @@
\draw (port_d.east) -- (winding_a.west) (winding_b.east) -- (port_e.west);

\node[tuGreen, anchor = north, inner sep = 2mm, text width = 10mm, align = center] at (port_a.south) {A \\ \SI{110}{\kV} \\ 1};
\node[tuOrange, anchor = north, inner sep = 2mm, text width = 10mm, align = center] at (port_b.south) {B \\ \SI{110}{\kV} \\ 2};
\node[tuOrange, anchor = north, inner sep = 2mm, text width = 10mm, align = center] at (port_c.south) {C \\ \SI{110}{\kV} \\ 2};
\node[tuOrange, anchor = north, inner sep = 2mm, text width = 10mm, align = center] at (port_d.south) {D \\ \SI{110}{\kV} \\ 2};
\node[tuOrange, anchor = north, inner sep = 2mm, text width = 10mm, align = center] at (port_b.south) {B \\ \SI{110}{\kV} \\ 1};
\node[tuOrange, anchor = north, inner sep = 2mm, text width = 10mm, align = center] at (port_c.south) {C \\ \SI{110}{\kV} \\ 1};
\node[tuOrange, anchor = north, inner sep = 2mm, text width = 10mm, align = center] at (port_d.south) {D \\ \SI{110}{\kV} \\ 1};
\node[tuOrange, anchor = north, inner sep = 2mm, text width = 10mm, align = center] at (port_e.south) {E \\ \SI{10}{\kV} \\ 2};
\end{tikzpicture}
\end{document}
2 changes: 1 addition & 1 deletion docs/readthedocs/models/input/em.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Participants are connected to an EM each via their `em` field.
-
- String representation (e.g. name) of a control strategy

* - parentEm
* - controllingEm
-
- Reference to a superior Energy Management Unit that is controlling this EM.
Field can be empty or missing, if this EM itself is not controlled.
Expand Down
13 changes: 5 additions & 8 deletions docs/readthedocs/models/input/grid/gridcontainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ and their higher voltage coupling point.

Let's shed a more detailed light on the boundaries of a sub grid as of our definition.
This especially is important, if the switchgear of the transformer is modeled in detail.
We defined, that all nodes in upstream direction of the transformer, that are connected by switches *only* (therefore
are within the switchgear) are counted towards the inferior sub grid structure (here "2"), although they belong to a
different voltage level.
This decision is taken, because we assume, that the interest to operate on the given switchgear will most likely be
placed in the inferior grid structure.

The "real" coupling node A is not comprised in the sub grids node collection, but obviously has reference through the
switch between nodes A and B.
We defined, that all nodes in upstream direction of the transformer, including those, which are within the switchgear are
counted towards the superior sub grid structure (here "1"), because they belong to a different voltage level.
If a switchgear should be operated by the inferior grid, one can set the operator, that is used in the inferior grid, for
the switchgear. This can be necessary, if we assume, that the interest to operate on the given switchgear will most likely
be placed in the inferior grid structure.

A synoptic overview of both classes' attributes is given here:

Expand Down
2 changes: 1 addition & 1 deletion docs/readthedocs/models/input/participant/bm.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Model of a biomass power plant.
- € / MWh
- Fixed feed in tariff

* - em
* - controllingEm
-
- UUID reference to an [Energy Management Unit](#em_model) that is controlling
this system participant. Field can be empty or missing, if this participant
Expand Down
2 changes: 1 addition & 1 deletion docs/readthedocs/models/input/participant/chp.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Combined heat and power plant.
- Whether to adapt output based on (volatile)
market price or not

* - em
* - controllingEm
-
- UUID reference to an [Energy Management Unit](em_model) that is controlling
this system participant. Field can be empty or missing, if this participant
Expand Down
2 changes: 1 addition & 1 deletion docs/readthedocs/models/input/participant/ev.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Model of an electric vehicle, that is occasionally connected to the grid via an
-
-

* - em
* - controllingEm
-
- UUID reference to an [Energy Management Unit](#em_model) that is controlling
this system participant. Field can be empty or missing, if this participant
Expand Down
2 changes: 1 addition & 1 deletion docs/readthedocs/models/input/participant/evcs.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ station and has some limitations outlined below.
- Boolean
- Vehicle to grid (V2G) support, true if the charging station supports feed in.

* - em
* - controllingEm
-
- UUID reference to an [Energy Management Unit](#em_model) that is controlling
this system participant. Field can be empty or missing, if this participant
Expand Down
2 changes: 1 addition & 1 deletion docs/readthedocs/models/input/participant/fixedfeedin.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ model can be derived.
-
- Rated power factor

* - em
* - controllingEm
-
- UUID reference to an [Energy Management Unit](#em_model) that is controlling
this system participant. Field can be empty or missing, if this participant
Expand Down
2 changes: 1 addition & 1 deletion docs/readthedocs/models/input/participant/hp.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Model of a heat pump.
-
-

* - em
* - controllingEm
-
- UUID reference to an [Energy Management Unit](#em_model) that is controlling
this system participant. Field can be empty or missing, if this participant
Expand Down
2 changes: 1 addition & 1 deletion docs/readthedocs/models/input/participant/load.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Model of (mainly) domestic loads.
-
- Rated power factor

* - em
* - controllingEm
-
- UUID reference to an [Energy Management Unit](#em_model) that is controlling
this system participant. Field can be empty or missing, if this participant
Expand Down
5 changes: 2 additions & 3 deletions docs/readthedocs/models/input/participant/pv.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ Detailed model of a photovoltaic power plant.

* - azimuth
- °
- Inclination in a compass direction
South = 0°, West = 90°, East = -90°
- South = 0°, West = 90°, East = -90°, North = +/- 180°

* - etaConv
- %
Expand Down Expand Up @@ -76,7 +75,7 @@ Detailed model of a photovoltaic power plant.
-
- Rated power factor

* - em
* - controllingEm
-
- UUID reference to an [Energy Management Unit](#em_model) that is controlling
this system participant. Field can be empty or missing, if this participant
Expand Down
2 changes: 1 addition & 1 deletion docs/readthedocs/models/input/participant/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Model of an ideal electrical battery energy storage.
- Foreseen operation strategy of the storage.
Eligible input: *"market"*, *"grid"*, *"self"*

* - em
* - controllingEm
-
- UUID reference to an [Energy Management Unit](#em_model) that is controlling
this system participant. Field can be empty or missing, if this participant
Expand Down
2 changes: 1 addition & 1 deletion docs/readthedocs/models/input/participant/wec.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Model of a wind energy converter.
- Whether to adapt output based on (volatile)
market price or not

* - em
* - controllingEm
-
- UUID reference to an [Energy Management Unit](#em_model) that is controlling
this system participant. Field can be empty or missing, if this participant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public DuplicateEntitiesException(
this(
"The following exception(s) occurred while checking the uniqueness of '"
+ entityName
+ "' entities: "
+ ExceptionUtils.getMessages(exceptions));
+ "' entities: \n"
+ ExceptionUtils.combineExceptions(exceptions));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public FailedValidationException(String message) {

/** @param exceptions List of exceptions, which must not be empty */
public FailedValidationException(List<? extends Exception> exceptions) {
super(
"Validation failed due to: \n" + ExceptionUtils.getMessages(exceptions), exceptions.get(0));
super("Validation failed due to:\n " + ExceptionUtils.combineExceptions(exceptions));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ public class InvalidEntityException extends ValidationException {
private static final long serialVersionUID = 809496087520306374L;

public InvalidEntityException(String faultDescription, UniqueEntity invalidEntity) {
super("Entity is invalid because of: \n" + faultDescription + " [" + invalidEntity + "]");
super("Entity is invalid because of: " + faultDescription + " [" + invalidEntity + "]");
}

public InvalidEntityException(
String faultDescription, Throwable cause, UniqueEntity invalidEntity) {
super(
"Entity is invalid because of: \n" + faultDescription + " [" + invalidEntity + "]", cause);
super("Entity is invalid because of: " + faultDescription + " [" + invalidEntity + "]", cause);
}

public InvalidEntityException(String message, Throwable cause) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ public SourceException(final String message) {
}

public SourceException(String message, List<? extends Exception> exceptions) {
super(message + " " + ExceptionUtils.getMessages(exceptions), exceptions.get(0));
super(message + "\n " + ExceptionUtils.combineExceptions(exceptions));
}
}
2 changes: 1 addition & 1 deletion src/main/java/edu/ie3/datamodel/io/factory/Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public Try<R, FactoryException> get(D data) {
* {@link Failure}
*/
public Try<R, FactoryException> get(Try<D, ?> data) {
return data.transformF(FactoryException::new).flatMap(this::get);
return data.transformF(e -> new FactoryException(e.getMessage(), e)).flatMap(this::get);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
public abstract class AssetInputEntityFactory<T extends AssetInput, D extends AssetInputEntityData>
extends UniqueEntityFactory<T, D> {

private static final String OPERATES_FROM = "operatesFrom";
private static final String OPERATES_UNTIL = "operatesUntil";
protected static final String OPERATOR = "operator";
protected static final String OPERATES_FROM = "operatesFrom";
protected static final String OPERATES_UNTIL = "operatesUntil";

@SafeVarargs
protected AssetInputEntityFactory(Class<? extends T>... allowedClasses) {
Expand All @@ -48,14 +49,33 @@ protected List<Set<String>> getFields(Class<?> entityClass) {
Set<String> constructorParamsUntil = expandSet(constructorParamsMin, OPERATES_UNTIL);
Set<String> constructorParamsBoth = expandSet(constructorParamsFrom, OPERATES_UNTIL);

// with operator field
Set<String> constructorParamsOperator = expandSet(constructorParamsMin, OPERATOR);
Set<String> constructorParamsOperatorFrom = expandSet(constructorParamsFrom, OPERATOR);
Set<String> constructorParamsOperatorUntil = expandSet(constructorParamsUntil, OPERATOR);
Set<String> constructorParamsOperatorBoth = expandSet(constructorParamsBoth, OPERATOR);

final String[] additionalFields = getAdditionalFields();

constructorParamsMin = expandSet(constructorParamsMin, additionalFields);
constructorParamsFrom = expandSet(constructorParamsFrom, additionalFields);
constructorParamsUntil = expandSet(constructorParamsUntil, additionalFields);
constructorParamsBoth = expandSet(constructorParamsBoth, additionalFields);

constructorParamsOperator = expandSet(constructorParamsOperator, additionalFields);
constructorParamsOperatorFrom = expandSet(constructorParamsOperatorFrom, additionalFields);
constructorParamsOperatorUntil = expandSet(constructorParamsOperatorUntil, additionalFields);
constructorParamsOperatorBoth = expandSet(constructorParamsOperatorBoth, additionalFields);

return Arrays.asList(
constructorParamsMin, constructorParamsFrom, constructorParamsUntil, constructorParamsBoth);
constructorParamsMin,
constructorParamsFrom,
constructorParamsUntil,
constructorParamsBoth,
constructorParamsOperator,
constructorParamsOperatorFrom,
constructorParamsOperatorUntil,
constructorParamsOperatorBoth);
}

/**
Expand Down
Loading