Package com.powsybl.openloadflow.util
Class BusState
- java.lang.Object
-
- com.powsybl.openloadflow.util.BusState
-
public class BusState extends Object
- Author:
- Florian Dupuy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Map<LfBus,BusState>
createBusStates(Collection<LfBus> buses)
Get the map of the states of given buses, indexed by the bus itselfvoid
restoreBusActiveState(LfBus bus)
static void
restoreBusActiveStates(Map<LfBus,BusState> busStates)
Set the bus states based on the given map of statesvoid
restoreBusState(LfBus bus)
static void
restoreBusStates(Map<LfBus,BusState> busStates)
Set the bus states based on the given map of states
-
-
-
Constructor Detail
-
BusState
public BusState(LfBus b)
-
-
Method Detail
-
restoreBusState
public void restoreBusState(LfBus bus)
-
restoreBusActiveState
public void restoreBusActiveState(LfBus bus)
-
createBusStates
public static Map<LfBus,BusState> createBusStates(Collection<LfBus> buses)
Get the map of the states of given buses, indexed by the bus itself- Parameters:
buses
- the bus for which the state is returned- Returns:
- the map of the states of given buses, indexed by the bus itself
-
restoreBusStates
public static void restoreBusStates(Map<LfBus,BusState> busStates)
Set the bus states based on the given map of states- Parameters:
busStates
- the map containing the bus states, indexed by buses
-
-