Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Refactored validation of entity classes [#1561](https://github.com/ie3-institute/PowerSystemDataModel/issues/1561)
- Changed `operationTime` to `operationFrom` and `operationUntil` in read the docs [1507](https://github.com/ie3-institute/PowerSystemDataModel/issues/1507)
- Refactored validation of value classes [#1561](https://github.com/ie3-institute/PowerSystemDataModel/issues/1561)
- Handled SonarQube Issues [#1588](https://github.com/ie3-institute/PowerSystemDataModel/issues/1588)

## [8.1.0] - 2025-07-25

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import edu.ie3.datamodel.models.value.*;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.*;

public class TimeBasedSimpleValueFactory<V extends Value>
extends TimeBasedValueFactory<SimpleTimeBasedValueData<V>, V> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import edu.ie3.datamodel.io.factory.EntityData;
import edu.ie3.datamodel.io.factory.input.NodeAssetInputEntityData;
import edu.ie3.datamodel.io.factory.input.participant.*;
import edu.ie3.datamodel.io.naming.FieldNamingStrategy;
import edu.ie3.datamodel.models.input.EmInput;
import edu.ie3.datamodel.models.input.NodeInput;
import edu.ie3.datamodel.models.input.OperatorInput;
Expand All @@ -34,6 +35,7 @@ public class SystemParticipantSource extends AssetEntitySource {

private static final String THERMAL_STORAGE = "thermalstorage";
private static final String THERMAL_BUS = "thermalbus";
public static final String CONTROLLING_EM = FieldNamingStrategy.CONTROLLING_EM;

// general fields
private final TypeSource typeSource;
Expand Down Expand Up @@ -63,10 +65,7 @@ public class SystemParticipantSource extends AssetEntitySource {
.andThen(enrich(NODE, nodes, NodeAssetInputEntityData::new))
.andThen(
enrichWithDefault(
SystemParticipantInputEntityFactory.CONTROLLING_EM,
emUnits,
null,
SystemParticipantEntityData::new))
CONTROLLING_EM, emUnits, null, SystemParticipantEntityData::new))
.apply(data, operators);

public SystemParticipantSource(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/
package edu.ie3.datamodel.models.input.system;

import edu.ie3.datamodel.exceptions.ParsingException;
import edu.ie3.datamodel.models.*;
import edu.ie3.datamodel.models.input.EmInput;
import edu.ie3.datamodel.models.input.NodeInput;
Expand Down Expand Up @@ -168,8 +167,7 @@ public LoadInput(
String powerProfileKey,
ComparableQuantity<Energy> eConsAnnual,
ComparableQuantity<Power> sRated,
double cosPhiRated)
throws ParsingException {
double cosPhiRated) {
this(
uuid,
id,
Expand Down Expand Up @@ -261,10 +259,7 @@ public String toString() {

/**
* A builder pattern based approach to create copies of {@link LoadInput} entities with altered
* field values. For detailed field descriptions refer to java docs of {@link LoadInput}
*
* @version 0.1
* @since 05.06.20
* field values. For detailed field descriptions refer to Javadocs of {@link LoadInput}
*/
public static class LoadInputCopyBuilder
extends SystemParticipantInputCopyBuilder<LoadInputCopyBuilder> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
import tech.units.indriya.ComparableQuantity;

/** Describes weather as a combination of solar irradiance, temperature and wind values */
public sealed class WeatherValue implements Value
permits WeatherValue.CosmoWeatherValue, WeatherValue.IconWeatherValue {
public sealed class WeatherValue implements Value {
/** The coordinate of this weather value set */
private final Point coordinate;

Expand Down