-
Notifications
You must be signed in to change notification settings - Fork 39
Migration guide v4.5.0
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.
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.
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)
.
From this release, in order to fix the inconsistency between the so-called Traverser
and TopologyTraverser
:
- The
VoltageLevel.TopologyTraverser
interface has been moved toTerminal.TopologyTraverser
, - The
Terminal.TopologyTraverser::traverse
method now returns a TraverseResult instead of a boolean. This adds the feature to stop the whole traversing by returningTraverseResult.TERMINATE_TRAVERSER
. The previous returning valuetrue
(resp.false
) has to be replaced byTraverseResult.CONTINUE
(resp.TraverseResult.TERMINATE_PATH
) - The
Traverser
interface inVoltageLevel.NodeBreakerView
has been renamed toTopologyTraverser
.