Package com.powsybl.openloadflow.util
Class BranchState
- java.lang.Object
-
- com.powsybl.openloadflow.util.BranchState
-
public class BranchState extends Object
- Author:
- Gael Macherel
-
-
Constructor Summary
Constructors Constructor Description BranchState(LfBranch b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Map<LfBranch,BranchState>
createBranchStates(Collection<LfBranch> branches)
Get the map of the states of given branches, indexed by the branch itselfvoid
restoreBranchState(LfBranch branch)
static void
restoreBranchStates(Map<LfBranch,BranchState> branchStates)
Set the branch states based on the given map of states
-
-
-
Constructor Detail
-
BranchState
public BranchState(LfBranch b)
-
-
Method Detail
-
restoreBranchState
public void restoreBranchState(LfBranch branch)
-
createBranchStates
public static Map<LfBranch,BranchState> createBranchStates(Collection<LfBranch> branches)
Get the map of the states of given branches, indexed by the branch itself- Parameters:
branches
- the bus for which the state is returned- Returns:
- the map of the states of given branches, indexed by the branch itself
-
restoreBranchStates
public static void restoreBranchStates(Map<LfBranch,BranchState> branchStates)
Set the branch states based on the given map of states- Parameters:
branchStates
- the map containing the branches states, indexed by branches
-
-