You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
- Implementing missing typical methods in `Try`[#970](https://github.com/ie3-institute/PowerSystemDataModel/issues/970)
12
12
- Added log warning when using `SwitchInputs` with `parallelDevices` parameter [#840](https://github.com/ie3-institute/PowerSystemDataModel/issues/840)
13
13
- Validation for `EvcsInput`[#1000](https://github.com/ie3-institute/PowerSystemDataModel/issues/1000)
14
+
- Scaling method in system participant copy builders [#1011](https://github.com/ie3-institute/PowerSystemDataModel/issues/1011)
15
+
- Added separate field for maximum power limit for DC to evtype [#876](https://github.com/ie3-institute/PowerSystemDataModel/issues/876)
16
+
- Added test for invalid input data in `CsvRawGridSource`[#1021](https://github.com/ie3-institute/PowerSystemDataModel/issues/1021)
14
17
15
18
### Fixed
16
19
- Fixed Couchbase integration tests that randomly failed [#755](https://github.com/ie3-institute/PowerSystemDataModel/issues/755)
@@ -19,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed Equal behavior of `ConnectorResult`[#1001](https://github.com/ie3-institute/PowerSystemDataModel/issues/1001)
25
+
- Fixed test for invalid input data in `CsvGraphicSource`[#1022](https://github.com/ie3-institute/PowerSystemDataModel/issues/1022)
22
26
23
27
### Changed
24
28
- Changing from comparing strings to comparing uuids in `EntitySource.findFirstEntityByUuid`[#829](https://github.com/ie3-institute/PowerSystemDataModel/issues/829)
@@ -33,6 +37,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
33
37
- Refactored and abstracted `EntitySource`s and `EntityData` creation [#969](https://github.com/ie3-institute/PowerSystemDataModel/issues/969)
- Don't throw exceptions for not yet implemented validations [#879](https://github.com/ie3-institute/PowerSystemDataModel/issues/879)
40
+
-`CsvDataSource` throws exceptions on error [#954](https://github.com/ie3-institute/PowerSystemDataModel/issues/954)
41
+
- Removing `uuid` as required column from input and result time series [#826](https://github.com/ie3-institute/PowerSystemDataModel/issues/826)
36
42
- Removing the support for the old csv format that was marked `deprecated` back in version `1.1.0`[#795](https://github.com/ie3-institute/PowerSystemDataModel/issues/795)
Copy file name to clipboardExpand all lines: docs/readthedocs/io/ValidationUtils.md
+23-8Lines changed: 23 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,31 @@
2
2
This page gives an overview about the ValidationUtils in the *PowerSystemDataModel*.
3
3
4
4
## What are the ValidationUtils?
5
-
The methods in ValidationUtils and subclasses can be used to check that objects are valid, meaning their parameters have valid values and they are correctly connected.
5
+
The methods in ValidationUtils and subclasses can be used to check that objects are valid. The checks can be separated into two types:
6
+
1. General validation
7
+
2. Uniqueness validation
8
+
6
9
7
10
## What is checked?
8
-
- The check methods include checks that assigned values are valid, e.g. lines are not allowed to have negative lengths or the rated power factor of any unit must be between 0 and 1.
9
-
- Furthermore, several connections are checked, e.g. that lines only connect nodes of the same voltage level or that the voltage levels indicated for the transformer sides match the voltage levels of the nodes they are connected to.
11
+
The general validation checks:
12
+
- if assigned values are valid, e.g. lines are not allowed to have negative lengths or the rated power factor of any unit must be between 0 and 1
13
+
- furthermore, several connections are checked, e.g. that lines only connect nodes of the same voltage level or that the voltage levels indicated for the transformer sides match the voltage levels of the nodes they are connected to.
14
+
15
+
The uniqueness validation checks if a collection of given objects are unique in either:
16
+
- a specific field
17
+
- or in a combination of multiple fields
18
+
19
+
For example `AssetInputs` needs to be unique in their `uuid` and in their `id` while
20
+
`weather values` needs to be unique in the combination of their `time` and their `coordinate`.
21
+
22
+
23
+
## How to use?
24
+
- To use the general validation the user should call the method `ValidationUtils.check(Object)`.
25
+
- To use the uniqueness validation the user should call a method of `UniquenessValidationUtils` to check the uniqueness.
26
+
27
+
## How does the general validation work?
10
28
11
-
## How does it work?
12
-
- The method `ValidationUtils.check(Object)` is the only method that should be called by the user.
13
-
- This check method identifies the object class and forwards it to a specific check method for the given object
29
+
- The method `ValidationUtils.check(Object)` identifies the object class and forwards it to a specific check method for the given object
14
30
- The overall structure of the ValidationUtils methods follows a cascading scheme, orientated along the class tree
15
31
- Example: A `LineInput lineInput` should be checked
16
32
1.`ValidationUtils.check(lineInput)` is called
@@ -49,15 +65,14 @@ The ValidationUtils include validation checks for...
0 commit comments