Skip to content

Commit 8316082

Browse files
authored
Update powsyblcore dependency to v6.6.0 (#188)
* bump powsybl-core dependency to 6.6.0-snapshot Signed-off-by: Nicolas Rol <[email protected]> * fix NetworkTopographyChangeNotifier following breaking change in NetworkListener Signed-off-by: Nicolas Rol <[email protected]> * bump powsybl-parent to v20 Signed-off-by: Nicolas Rol <[email protected]> * bump powsybl-core to v6.6.0-RC1 Signed-off-by: Nicolas Rol <[email protected]> * use released powsybl-core version Signed-off-by: Nicolas Rol <[email protected]> --------- Signed-off-by: Nicolas Rol <[email protected]>
1 parent db54747 commit 8316082

File tree

2 files changed

+33
-8
lines changed

2 files changed

+33
-8
lines changed

Diff for: metrix-mapping/src/main/java/com/powsybl/metrix/mapping/NetworkTopographyChangeNotifier.java

+31-6
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ public void afterRemoval(String s) {
7474
// Do nothing
7575
}
7676

77+
@Override
78+
public void onUpdate(Identifiable identifiable, String attribute, String variantId, Object oldValue, Object newValue) {
79+
if (ATTRIBUTE_BLACK_LIST.contains(attribute)) {
80+
this.sendNotification(NotificationType.UPDATE, identifiable);
81+
}
82+
}
83+
7784
@Override
7885
public void onExtensionCreation(Extension<?> extension) {
7986
// Do nothing
@@ -90,19 +97,37 @@ public void onExtensionBeforeRemoval(Extension<?> extension) {
9097
}
9198

9299
@Override
93-
public void onExtensionUpdate(Extension<?> extension, String s, Object o, Object o1) {
100+
public void onExtensionUpdate(Extension<?> extendable, String attribute, String variantId, Object oldValue, Object newValue) {
94101
// Do nothing
95102
}
96103

97104
@Override
98-
public void onUpdate(Identifiable identifiable, String attribute, String variantId, Object oldValue, Object newValue) {
99-
if (ATTRIBUTE_BLACK_LIST.contains(attribute)) {
100-
this.sendNotification(NotificationType.UPDATE, identifiable);
101-
}
105+
public void onPropertyAdded(Identifiable<?> identifiable, String key, Object newValue) {
106+
// Do nothing
107+
}
108+
109+
@Override
110+
public void onPropertyReplaced(Identifiable<?> identifiable, String key, Object oldValue, Object newValue) {
111+
// Do nothing
112+
}
113+
114+
@Override
115+
public void onPropertyRemoved(Identifiable<?> identifiable, String key, Object oldValue) {
116+
// Do nothing
117+
}
118+
119+
@Override
120+
public void onVariantCreated(String sourceVariantId, String targetVariantId) {
121+
// Do nothing
122+
}
123+
124+
@Override
125+
public void onVariantOverwritten(String sourceVariantId, String targetVariantId) {
126+
// Do nothing
102127
}
103128

104129
@Override
105-
public void onUpdate(Identifiable identifiable, String s, Object o, Object o1) {
130+
public void onVariantRemoved(String variantId) {
106131
// Do nothing
107132
}
108133
}

Diff for: pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<artifactId>powsybl-parent</artifactId>
1616
<groupId>com.powsybl</groupId>
17-
<version>18</version>
17+
<version>20</version>
1818
<relativePath/>
1919
</parent>
2020
<modelVersion>4.0.0</modelVersion>
@@ -77,7 +77,7 @@
7777
<mockito.version>5.12.0</mockito.version>
7878
<slf4j.version>2.0.13</slf4j.version>
7979

80-
<powsyblcore.version>6.5.0</powsyblcore.version>
80+
<powsyblcore.version>6.6.0</powsyblcore.version>
8181

8282
<!-- Parameters used to generate the javadoc for groovy and java classes.
8383
See the pom file in powsybl-parent for more explanations. -->

0 commit comments

Comments
 (0)