public class ACBranchList extends java.util.AbstractList<ACBranch> implements ACBranchListIfc<ACBranch>
TwoTermBaseList.TwoTermBase
Constructor and Description |
---|
ACBranchList(ACBranchListIfc<? extends ACBranch> src) |
Modifier and Type | Method and Description |
---|---|
ACBranch |
get(int index) |
ACBranchListIfc<? extends ACBranch> |
getBaseList()
return the unwrapped version of the list
|
float[] |
getBmag() |
float |
getBmag(int ndx) |
ACBranch |
getByID(java.lang.String id) |
ACBranch |
getByKey(int key) |
java.util.Set<ColumnMeta> |
getColTypes() |
<R> R |
getColumnData(ColumnMeta col) |
float[] |
getFromBchg() |
float |
getFromBchg(int ndx) |
Bus[] |
getFromBus() |
Bus |
getFromBus(int ndx) |
float[] |
getFromP() |
float |
getFromP(int ndx) |
float[] |
getFromQ() |
float |
getFromQ(int ndx) |
float[] |
getFromTap() |
float |
getFromTap(int ndx) |
float[] |
getGmag() |
float |
getGmag(int ndx) |
java.lang.String[] |
getID()
return array of string object ID's
|
java.lang.String |
getID(int ndx) |
int |
getIndex(int ndx) |
int |
getKey(int ndx) |
int[] |
getKeys() |
ListMetaType |
getListMeta() |
float[] |
getLTRating() |
float |
getLTRating(int ndx) |
java.lang.String[] |
getName()
name of object
|
java.lang.String |
getName(int ndx) |
float[] |
getR() |
float |
getR(int ndx) |
float[] |
getShift() |
float |
getShift(int ndx) |
float[] |
getToBchg() |
float |
getToBchg(int ndx) |
Bus[] |
getToBus() |
Bus |
getToBus(int ndx) |
float[] |
getToP() |
float |
getToP(int ndx) |
float[] |
getToQ() |
float |
getToQ(int ndx) |
float[] |
getToTap() |
float |
getToTap(int ndx) |
float[] |
getX() |
float |
getX(int ndx) |
boolean[] |
isInService() |
boolean |
isInService(int ndx) |
boolean |
objEquals(int ndx,
java.lang.Object obj) |
int |
objHash(int ndx) |
void |
setBmag(float[] b) |
void |
setBmag(int ndx,
float b) |
void |
setFromBchg(float[] b) |
void |
setFromBchg(int ndx,
float b) |
void |
setFromBus(Bus[] b) |
void |
setFromBus(int ndx,
Bus b) |
void |
setFromP(float[] mw) |
void |
setFromP(int ndx,
float mw) |
void |
setFromQ(float[] mvar) |
void |
setFromQ(int ndx,
float mvar) |
void |
setFromTap(float[] a) |
void |
setFromTap(int ndx,
float a) |
void |
setGmag(float[] g) |
void |
setGmag(int ndx,
float g) |
void |
setID(int ndx,
java.lang.String id) |
void |
setID(java.lang.String[] id)
set unique object ID PAModelException
|
void |
setInService(boolean[] state) |
void |
setInService(int ndx,
boolean state) |
void |
setLTRating(float[] mva) |
void |
setLTRating(int ndx,
float mva) |
void |
setName(int ndx,
java.lang.String name) |
void |
setName(java.lang.String[] name)
set name of object
|
void |
setR(float[] r) |
void |
setR(int ndx,
float r) |
void |
setShift(float[] sdeg) |
void |
setShift(int ndx,
float sdeg) |
void |
setToBchg(float[] b) |
void |
setToBchg(int ndx,
float b) |
void |
setToBus(Bus[] b) |
void |
setToBus(int ndx,
Bus b) |
void |
setToP(float[] mw) |
void |
setToP(int ndx,
float mw) |
void |
setToQ(float[] mvar) |
void |
setToQ(int ndx,
float mvar) |
void |
setToTap(float[] a) |
void |
setToTap(int ndx,
float a) |
void |
setX(float[] x) |
void |
setX(int ndx,
float x) |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
getFromBusIndexes, getToBusIndexes
CalcListHash, getIndexes, getIndexesFromIDs, getIndexesFromKeys, reset, toArray
public ACBranchList(ACBranchListIfc<? extends ACBranch> src)
public Bus getFromBus(int ndx) throws PAModelException
getFromBus
in interface TwoTermBaseList<ACBranch>
PAModelException
public void setFromBus(int ndx, Bus b) throws PAModelException
setFromBus
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public Bus[] getFromBus() throws PAModelException
getFromBus
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public void setFromBus(Bus[] b) throws PAModelException
setFromBus
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public Bus getToBus(int ndx) throws PAModelException
getToBus
in interface TwoTermBaseList<ACBranch>
PAModelException
public void setToBus(int ndx, Bus b) throws PAModelException
setToBus
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public Bus[] getToBus() throws PAModelException
getToBus
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public void setToBus(Bus[] b) throws PAModelException
setToBus
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public boolean isInService(int ndx) throws PAModelException
isInService
in interface InServiceList<ACBranch>
PAModelException
public void setInService(int ndx, boolean state) throws PAModelException
setInService
in interface InServiceList<ACBranch>
PAModelException
public boolean[] isInService() throws PAModelException
isInService
in interface InServiceList<ACBranch>
PAModelException
public void setInService(boolean[] state) throws PAModelException
setInService
in interface InServiceList<ACBranch>
PAModelException
public float getFromP(int ndx) throws PAModelException
getFromP
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public void setFromP(int ndx, float mw) throws PAModelException
setFromP
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public float[] getFromP() throws PAModelException
getFromP
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public void setFromP(float[] mw) throws PAModelException
setFromP
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public float getFromQ(int ndx) throws PAModelException
getFromQ
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public void setFromQ(int ndx, float mvar) throws PAModelException
setFromQ
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public float[] getFromQ() throws PAModelException
getFromQ
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public void setFromQ(float[] mvar) throws PAModelException
setFromQ
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public float getToP(int ndx) throws PAModelException
getToP
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public void setToP(int ndx, float mw) throws PAModelException
setToP
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public float[] getToP() throws PAModelException
getToP
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public void setToP(float[] mw) throws PAModelException
setToP
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public float getToQ(int ndx) throws PAModelException
getToQ
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public void setToQ(int ndx, float mvar) throws PAModelException
setToQ
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public float[] getToQ() throws PAModelException
getToQ
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public void setToQ(float[] mvar) throws PAModelException
setToQ
in interface TwoTermDevListIfc<ACBranch>
PAModelException
public java.lang.String getID(int ndx) throws PAModelException
getID
in interface BaseList<ACBranch>
PAModelException
public java.lang.String[] getID() throws PAModelException
BaseList
getID
in interface BaseList<ACBranch>
PAModelException
public void setID(java.lang.String[] id) throws PAModelException
BaseList
setID
in interface BaseList<ACBranch>
PAModelException
public void setID(int ndx, java.lang.String id) throws PAModelException
setID
in interface BaseList<ACBranch>
PAModelException
public java.lang.String getName(int ndx) throws PAModelException
getName
in interface BaseList<ACBranch>
PAModelException
public void setName(int ndx, java.lang.String name) throws PAModelException
setName
in interface BaseList<ACBranch>
PAModelException
public java.lang.String[] getName() throws PAModelException
BaseList
getName
in interface BaseList<ACBranch>
PAModelException
public void setName(java.lang.String[] name) throws PAModelException
BaseList
setName
in interface BaseList<ACBranch>
PAModelException
public ListMetaType getListMeta()
getListMeta
in interface BaseList<ACBranch>
public float getR(int ndx) throws PAModelException
getR
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setR(int ndx, float r) throws PAModelException
setR
in interface ACBranchListIfc<ACBranch>
PAModelException
public float[] getR() throws PAModelException
getR
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setR(float[] r) throws PAModelException
setR
in interface ACBranchListIfc<ACBranch>
PAModelException
public float getX(int ndx) throws PAModelException
getX
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setX(int ndx, float x) throws PAModelException
setX
in interface ACBranchListIfc<ACBranch>
PAModelException
public float[] getX() throws PAModelException
getX
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setX(float[] x) throws PAModelException
setX
in interface ACBranchListIfc<ACBranch>
PAModelException
public float getFromTap(int ndx) throws PAModelException
getFromTap
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setFromTap(int ndx, float a) throws PAModelException
setFromTap
in interface ACBranchListIfc<ACBranch>
PAModelException
public float[] getFromTap() throws PAModelException
getFromTap
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setFromTap(float[] a) throws PAModelException
setFromTap
in interface ACBranchListIfc<ACBranch>
PAModelException
public float getToTap(int ndx) throws PAModelException
getToTap
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setToTap(int ndx, float a) throws PAModelException
setToTap
in interface ACBranchListIfc<ACBranch>
PAModelException
public float[] getToTap() throws PAModelException
getToTap
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setToTap(float[] a) throws PAModelException
setToTap
in interface ACBranchListIfc<ACBranch>
PAModelException
public float getGmag(int ndx) throws PAModelException
getGmag
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setGmag(int ndx, float g) throws PAModelException
setGmag
in interface ACBranchListIfc<ACBranch>
PAModelException
public float[] getGmag() throws PAModelException
getGmag
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setGmag(float[] g) throws PAModelException
setGmag
in interface ACBranchListIfc<ACBranch>
PAModelException
public float getBmag(int ndx) throws PAModelException
getBmag
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setBmag(int ndx, float b) throws PAModelException
setBmag
in interface ACBranchListIfc<ACBranch>
PAModelException
public float[] getBmag() throws PAModelException
getBmag
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setBmag(float[] b) throws PAModelException
setBmag
in interface ACBranchListIfc<ACBranch>
PAModelException
public float getFromBchg(int ndx) throws PAModelException
getFromBchg
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setFromBchg(int ndx, float b) throws PAModelException
setFromBchg
in interface ACBranchListIfc<ACBranch>
PAModelException
public float[] getFromBchg() throws PAModelException
getFromBchg
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setFromBchg(float[] b) throws PAModelException
setFromBchg
in interface ACBranchListIfc<ACBranch>
PAModelException
public float getToBchg(int ndx) throws PAModelException
getToBchg
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setToBchg(int ndx, float b) throws PAModelException
setToBchg
in interface ACBranchListIfc<ACBranch>
PAModelException
public float[] getToBchg() throws PAModelException
getToBchg
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setToBchg(float[] b) throws PAModelException
setToBchg
in interface ACBranchListIfc<ACBranch>
PAModelException
public float getShift(int ndx) throws PAModelException
getShift
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setShift(int ndx, float sdeg) throws PAModelException
setShift
in interface ACBranchListIfc<ACBranch>
PAModelException
public float[] getShift() throws PAModelException
getShift
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setShift(float[] sdeg) throws PAModelException
setShift
in interface ACBranchListIfc<ACBranch>
PAModelException
public ACBranch get(int index)
public int size()
public float getLTRating(int ndx) throws PAModelException
getLTRating
in interface ACBranchListIfc<ACBranch>
PAModelException
public float[] getLTRating() throws PAModelException
getLTRating
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setLTRating(int ndx, float mva) throws PAModelException
setLTRating
in interface ACBranchListIfc<ACBranch>
PAModelException
public void setLTRating(float[] mva) throws PAModelException
setLTRating
in interface ACBranchListIfc<ACBranch>
PAModelException
public ACBranch getByID(java.lang.String id) throws PAModelException
getByID
in interface BaseList<ACBranch>
PAModelException
public boolean objEquals(int ndx, java.lang.Object obj)
public java.util.Set<ColumnMeta> getColTypes()
getColTypes
in interface BaseList<ACBranch>
public ACBranchListIfc<? extends ACBranch> getBaseList()
public <R> R getColumnData(ColumnMeta col) throws PAModelException
getColumnData
in interface BaseList<ACBranch>
PAModelException