Skip to content

Commit a9787e0

Browse files
committed
Refacto use of reports in ValidationUtil to avoid using generated keys
Signed-off-by: Florian Dupuy <[email protected]> Signed-off-by: CARON Alice <[email protected]> Conflicts: iidm/iidm-api/src/main/java/com/powsybl/iidm/network/util/NetworkReports.java iidm/iidm-modification/src/main/java/com/powsybl/iidm/modification/util/ModificationReports.java ucte/ucte-network/src/main/java/com/powsybl/ucte/network/util/UcteReports.java
1 parent 615f561 commit a9787e0

File tree

6 files changed

+292
-51
lines changed

6 files changed

+292
-51
lines changed

commons/src/main/resources/com/powsybl/commons/reports.properties

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,46 @@ core.iidm.modification.voltageLevelNotFound = Voltage level ${voltageLevelId} is
122122
core.iidm.modification.voltageLevelRemoved = Voltage level ${vlId} removed
123123
core.iidm.modification.voltageLevelRemovingEquipmentsLeft = Voltage level ${vlId} still contains equipments
124124
core.iidm.modification.wrongSwitchKind = Switch kinds must be DISCONNECTOR or BREAKER
125+
core.iidm.network.activePowerSetpointInvalid = active power setpoint value (${activePowerSetpoint}) is invalid
125126
core.iidm.network.alreadyConnectedTerminal = A terminal of identifiable ${identifiable} is already connected.
126127
core.iidm.network.alreadyDisconnectedTerminal = A terminal of identifiable ${identifiable} is already disconnected.
127128
core.iidm.network.export_test = Export mock
129+
core.iidm.network.hvdcConverterModeInvalid = HVDC converter mode is invalid
128130
core.iidm.network.IIDMValidation = Running validation checks on IIDM network ${networkId}
129131
core.iidm.network.importDataSource = Import data source ${dataSource}
130132
core.iidm.network.InconsistentAliasTypes = Inconsistencies of types for alias ${alias} type in dangling lines ${danglingLineId1} (type=${type1}) and ${danglingLineId2} (type=${type2}). Type is lost.
131133
core.iidm.network.InconsistentAliasValues = Inconsistencies found for alias type '${type}'('${alias1}' for '${danglingLineId1}' and '${alias2}' for '${danglingLineId2}'). Types are respectively renamed as '${type}_1' and '${type}_2'.
132134
core.iidm.network.InconsistentPropertyValues = Inconsistencies of property ${propertyName} between ${danglingLineId1} (value=${propertyValue1}) and ${danglingLineId2} (value=${propertyValue2}). Property is not added to merged line
135+
core.iidm.network.invalidP0 = p0 is invalid
136+
core.iidm.network.invalidQ0 = q0 is invalid
133137
core.iidm.network.MoveCommonAlias = Alias ${alias} found in dangling lines ${danglingLineId1} and ${danglingLineId2} is moved to their merged line.
134138
core.iidm.network.PropertyOnlyOnOneSide = Inconsistencies of property ${propertyName} between both sides (${danglingLineId1) on side 1 and ${danglingLineId2} on side2) of merged line. Side ${side} has no value. Value on other side is kept.
139+
core.iidm.network.ptcPhaseRegulationFixedMode = phase regulation cannot be on if mode is FIXED
140+
core.iidm.network.ptcPhaseRegulationModeNotSet = phase regulation mode is not set
141+
core.iidm.network.ptcPhaseRegulationNoRegulatedTerminal = phase regulation is on and regulated terminal is not set
142+
core.iidm.network.ptcPhaseRegulationRegulationValueNotSet = phase regulation is on and threshold/setpoint value is not set
143+
core.iidm.network.ptcTargetDeadbandUndefinedValue = Undefined value for target deadband of regulating phase tap changer
144+
core.iidm.network.reactivePowerSetpointInvalid = reactive power setpoint value (${reactivePowerSetpoint}) is invalid
145+
core.iidm.network.reactivePowerSetpointInvalidVoltageRegulatorOff = reactive power setpoint value (${reactivePowerSetpoint}) is invalid (voltage regulator is off)
146+
core.iidm.network.regulatingRtcNoRegulationMode = regulation mode of regulating ratio tap changer must be given
147+
core.iidm.network.regulatingRtcNoRegulationTerminal = a regulation terminal has to be set for a regulating ratio tap changer
148+
core.iidm.network.regulatingRtcNoRegulationValue = a regulation value has to be set for a regulating ratio tap changer
149+
core.iidm.network.rtcTargetDeadbandUndefinedValue = Undefined value for target deadband of regulating ratio tap changer
150+
core.iidm.network.scTargetDeadbandUndefinedValue = Undefined value for target deadband of regulating shunt compensator
151+
core.iidm.network.sectionCountUnset = count of sections in service has been unset
152+
core.iidm.network.svcRegulationModeInvalid = SVC regulation mode is invalid
153+
core.iidm.network.tapPositionIncorrect = incorrect tap position ${tapPosition} outside [${lowTapPosition}, ${highTapPosition}]
154+
core.iidm.network.tapPositionNotSet = tap position is not set
155+
core.iidm.network.tapPositionUnset = tap position has been unset
156+
core.iidm.network.temporaryLimitsButPermanentLimitUndefined = permanent limit must be defined if temporary limits are present
135157
core.iidm.network.testImportPostProcessor = testing import post processor
158+
core.iidm.network.tooManyRegulatingControlEnabled = Only one regulating control enabled is allowed
159+
core.iidm.network.undefinedLossFactor = loss factor is invalid: undefined value
160+
core.iidm.network.undefinedShuntSection = Shunt compensator: the current number of section is undefined
136161
core.iidm.network.validationWarningBothRatioPhase = ${parent} has both Ratio and Phase Tap Changer.
137162
core.iidm.network.validationWarningDuplicate = ${parent} duplicate point for active power {p}
163+
core.iidm.network.voltageSetpointInvalid = voltage setpoint value (${voltageSetpoint}) is invalid
164+
core.iidm.network.voltageSetpointInvalidVoltageRegulatorOn = voltage setpoint value (${voltageSetpoint}) is invalid (voltage regulator is on)
138165
core.iidm.serde.extensionNotFound = Extension ${extensionName} not found.
139166
core.iidm.serde.extensionsNotFound = Not found extensions
140167
core.iidm.serde.importedExtension = Extension ${extensionName} imported.

0 commit comments

Comments
 (0)