Skip to content

Migration guide v4.5.0

Florian Dupuy edited this page Nov 2, 2021 · 4 revisions

Move connectable

From this release, any connectable can be moved through either Terminal.NodeBreakerView::moveConnectable(int node, String voltageLevelId) or Terminal.BusBreakerView::moveConnectable(String busId, boolean connected), depending on the topology of the move destination. The moving line feature introduced in 4.4.0 directly in the Line interface has been removed.

Add IdentifiableType enum

IdentifiableType has been introduced in this release. The method Identifiable.getType() returns the IdentifiableType for a given Identifiable. Hence, the method Connectable.getType(), inheriting from Identifiable.getType(), does not returun a ConnectableType anymore. Please also note that ConnectableType has been deleted. Use IdentifiableType instead.

Remove connectable with topology cleanup

From this release, when one removes a Connectable he can also "clean the topology", that is, remove dangling wires and switches which would remain after the Connectable removal. This is done by passing true to the new API Connectable::remove(boolean removeDanglingSwitches). The behaviour of the existing Connectable::remove() remains the same and corresponds in fact by default to a call to Connectable::remove(false).

Clone this wiki locally