public class MeasMgr
extends java.lang.Object
Manage the set of available measurements for the state estimator. Provides a well-defined iteration order for measurements and estimates. Also provides specific implementations for estimated measurement differences, and the measurement jacobian.
Measurements are ordered as:
Modifier and Type | Class and Description |
---|---|
static interface |
MeasMgr.FloatMeasConsumer
Operate on a measurement while iterating estimates or measurements
|
Constructor and Description |
---|
MeasMgr(PAModel m)
Create a new Measurement Manager
|
Modifier and Type | Method and Description |
---|---|
float[] |
getDz(PComplexList vc)
Calculate the differences between measured and estimated values, and
apply confidence factor
|
int |
getMeasCount()
return the managed measurement count
|
FloatMatrix |
getMeasJacobian(PComplexList v,
BusStateMap bmap)
Create the measurement jacobian matrix H.
|
void |
iterateEstVector(PComplexList v,
MeasMgr.FloatMeasConsumer flc)
Calculate measurement estimates, iterate through them in the proper order
and perform the given operation on each element
|
void |
iterateMeasVector(MeasMgr.FloatMeasConsumer flc)
Iterate over the entire measurement vector in order, and perform the
specified operation
|
static void |
main(java.lang.String... args)
Test routine
|
public MeasMgr(PAModel m) throws PAModelException
m
- OpenPA ModelPAModelException
public int getMeasCount()
public FloatMatrix getMeasJacobian(PComplexList v, BusStateMap bmap) throws PAModelException
v
- Bus voltagesPAModelException
public void iterateMeasVector(MeasMgr.FloatMeasConsumer flc) throws PAModelException
flc
- Operation to apply to each measurementPAModelException
public void iterateEstVector(PComplexList v, MeasMgr.FloatMeasConsumer flc) throws PAModelException
v
- Current working bus voltagesflc
- Operation to perform on each measurement estimatePAModelException
public float[] getDz(PComplexList vc) throws PAModelException
vc
- List of bus voltages, in order parallel with the bus listPAModelException
public static void main(java.lang.String... args) throws java.lang.Exception
args
- java.lang.Exception