public class Mismatch
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Mismatch.Status |
static interface |
Mismatch.WorstMM |
Modifier and Type | Field and Description |
---|---|
static Mismatch.WorstMM |
NullMM |
Constructor and Description |
---|
Mismatch(PAModel model,
BusTypeUtil btu,
java.util.Collection<BusType> bustypes)
Create new mismatch.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int ndx,
float flow) |
float[] |
get()
Access the entire mismatch array
|
float |
get(int ndx)
Return the mismatch at a bus (index)
|
java.util.Collection<int[]> |
getTestBuses(ElectricalIsland i)
Get the bus types configured for testing
|
void |
reset()
Reset (set to 0) the mismatches
|
Mismatch.WorstMM |
test(ElectricalIsland i)
Find the worst mismatch for the set of buses configured
|
java.lang.String |
toString() |
public static final Mismatch.WorstMM NullMM
public Mismatch(PAModel model, BusTypeUtil btu, java.util.Collection<BusType> bustypes) throws PAModelException
nbus
- number of buses to managePAModelException
public float get(int ndx)
ndx
- Bus index for mismatch valuepublic float[] get()
public void add(int ndx, float flow)
public Mismatch.WorstMM test(ElectricalIsland i)
public java.util.Collection<int[]> getTestBuses(ElectricalIsland i)
public java.lang.String toString()
toString
in class java.lang.Object
public void reset()