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).

Traversers refactoring

From this release, in order to fix the inconsistency between the so-called Traverser and TopologyTraverser:

  • The VoltageLevel.TopologyTraverser interface has been moved to Terminal.TopologyTraverser,
  • The Terminal.TopologyTraverser::traverse method now returns a TraverseResult instead of a boolean. This adds the feature to stop the whole traversing by returning TraverseResult.TERMINATE_TRAVERSER. The previous returning value true (resp. false) has to be replaced by TraverseResult.CONTINUE (resp. TraverseResult.TERMINATE_PATH)
  • The Traverser interface in VoltageLevel.NodeBreakerView has been renamed to TopologyTraverser.
Clone this wiki locally