public class BusStateMap
extends java.lang.Object
Relate SE state variable (offsets in state vectors or columns in measurement jacobian) to buses using current topology. The state variables are voltage magnitudes and angles for all non-reference buses.
Modifier and Type | Class and Description |
---|---|
static interface |
BusStateMap.StateConsumer
Acts as an iterator over all the states.
|
Modifier and Type | Method and Description |
---|---|
int |
getAngIndex(Bus b)
map a bus to an index value representing the bus angle
|
int |
getBusIndex(int stateIndex)
Find a bus index given the state column index
|
int |
getMagIndex(Bus b)
map a bus to an index value representing the bus magitude
|
int |
getStateCount()
get the number of states
|
void |
iterateStates(BusStateMap.StateConsumer c)
Iterate through all of the states.
|
public int getStateCount()
public int getMagIndex(Bus b)
b
- Bus to mappublic int getAngIndex(Bus b)
b
- Bus to mappublic int getBusIndex(int stateIndex)
stateIndex
- index of statepublic void iterateStates(BusStateMap.StateConsumer c)
c
- Function to call