Interface ReferencePriorities<C extends Connectable<C>>
- All Superinterfaces:
Extension<C>
ReferencePriorities iIDM extension allows specifying priorities among network equipments terminals for the selection
of a reference bus, for example the angle reference in the context of a load flow.
The extension is attached to a
A priority level can be defined, as an integer, for each Terminal of the connectable.
A priority 0 means should not be used. 1 is highest priority for selection. 2 is second highest priority, etc ...
The extension is attached to a
Connectable
, i.e. any equipment with Terminals.A priority level can be defined, as an integer, for each Terminal of the connectable.
A priority 0 means should not be used. 1 is highest priority for selection. 2 is second highest priority, etc ...
- Author:
- Damien Jeandemange <damien.jeandemange at artelys.com>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Comparator<ReferencePriority>
static final com.google.common.collect.ImmutableMap<IdentifiableType,
Integer> static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Deletes all defined reference priorities in the network for the current variantvoid
static List<ReferencePriority>
Gets the reference priorities defined in the network for the current variant, sorted by decreasing priority (i.e. higher priorities are first in the list).static List<ReferencePriority>
get
(Network network, Comparator<ReferencePriority> connectableComparator) Gets the reference priorities defined in the network, sorted by decreasing priority (i.e. higher priorities are first in the list).default String
getName()
Return the name of this extension.Methods inherited from interface com.powsybl.commons.extensions.Extension
getExtendable, setExtendable
-
Field Details
-
NAME
- See Also:
-
DEFAULT_CONNECTABLE_TYPE_PRIORITIES
static final com.google.common.collect.ImmutableMap<IdentifiableType,Integer> DEFAULT_CONNECTABLE_TYPE_PRIORITIES -
DEFAULT_CONNECTABLE_TYPE_COMPARATOR
-
-
Method Details
-
getName
Description copied from interface:Extension
Return the name of this extension.- Specified by:
getName
in interfaceExtension<C extends Connectable<C>>
-
get
static List<ReferencePriority> get(Network network, Comparator<ReferencePriority> connectableComparator) Gets the reference priorities defined in the network, sorted by decreasing priority (i.e. higher priorities are first in the list). Priorities 0 are filtered out. The connectableComparator is used to control the sorting of equal priority values. Note that this method provides "raw" priorities, API users would typically want to check whether the terminals are connected, in which SynchronousComponent the Terminal belongs to, etc ...- Parameters:
network
- network from which reference priorities should be listedconnectableComparator
- comparator to
-
get
Gets the reference priorities defined in the network for the current variant, sorted by decreasing priority (i.e. higher priorities are first in the list). Priorities 0 are filtered out. In case of equal priority between different equipment types, generators are put first, busbar sections second, loads third, and all other equipment types last. Note that this method provides "raw" priorities, API users would typically want to check whether the terminals are connected, in which SynchronousComponent the Terminal belongs to, etc ...- Parameters:
network
- network from which reference priorities should be listed- Returns:
- list of sorted reference priorities
-
delete
Deletes all defined reference priorities in the network for the current variant- Parameters:
network
- network whose reference priorities should be deleted
-
newReferencePriority
ReferencePriorityAdder newReferencePriority() -
getReferencePriorities
List<ReferencePriority> getReferencePriorities() -
deleteReferencePriorities
void deleteReferencePriorities()
-