public class TwoTermDevList extends java.util.AbstractList<TwoTermDev> implements TwoTermDevListIfc<TwoTermDev>
TwoTermBaseList.TwoTermBase
Constructor and Description |
---|
TwoTermDevList(TwoTermDevListIfc<? extends TwoTermDev> src) |
Modifier and Type | Method and Description |
---|---|
TwoTermDev |
get(int index) |
TwoTermDev |
getByID(java.lang.String id) |
TwoTermDev |
getByKey(int key) |
java.util.Set<ColumnMeta> |
getColTypes() |
<R> R |
getColumnData(ColumnMeta col) |
Bus[] |
getFromBus() |
Bus |
getFromBus(int ndx) |
float[] |
getFromP() |
float |
getFromP(int ndx) |
float[] |
getFromQ() |
float |
getFromQ(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() |
java.lang.String[] |
getName()
name of object
|
java.lang.String |
getName(int ndx) |
Bus[] |
getToBus() |
Bus |
getToBus(int ndx) |
float[] |
getToP() |
float |
getToP(int ndx) |
float[] |
getToQ() |
float |
getToQ(int ndx) |
boolean[] |
isInService() |
boolean |
isInService(int ndx) |
boolean |
objEquals(int ndx,
java.lang.Object obj) |
int |
objHash(int ndx) |
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 |
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 |
setName(int ndx,
java.lang.String name) |
void |
setName(java.lang.String[] name)
set name of object
|
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) |
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 TwoTermDevList(TwoTermDevListIfc<? extends TwoTermDev> src)
public int getKey(int ndx)
getKey
in interface BaseList<TwoTermDev>
public int[] getKeys()
getKeys
in interface BaseList<TwoTermDev>
public java.lang.String getID(int ndx) throws PAModelException
getID
in interface BaseList<TwoTermDev>
PAModelException
public java.lang.String[] getID() throws PAModelException
BaseList
getID
in interface BaseList<TwoTermDev>
PAModelException
public void setID(java.lang.String[] id) throws PAModelException
BaseList
setID
in interface BaseList<TwoTermDev>
PAModelException
public void setID(int ndx, java.lang.String id) throws PAModelException
setID
in interface BaseList<TwoTermDev>
PAModelException
public java.lang.String getName(int ndx) throws PAModelException
getName
in interface BaseList<TwoTermDev>
PAModelException
public void setName(int ndx, java.lang.String name) throws PAModelException
setName
in interface BaseList<TwoTermDev>
PAModelException
public java.lang.String[] getName() throws PAModelException
BaseList
getName
in interface BaseList<TwoTermDev>
PAModelException
public void setName(java.lang.String[] name) throws PAModelException
BaseList
setName
in interface BaseList<TwoTermDev>
PAModelException
public TwoTermDev getByKey(int key)
getByKey
in interface BaseList<TwoTermDev>
public ListMetaType getListMeta()
getListMeta
in interface BaseList<TwoTermDev>
public int getIndex(int ndx)
getIndex
in interface BaseList<TwoTermDev>
public Bus getFromBus(int ndx) throws PAModelException
getFromBus
in interface TwoTermBaseList<TwoTermDev>
PAModelException
public void setFromBus(int ndx, Bus b) throws PAModelException
setFromBus
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public Bus[] getFromBus() throws PAModelException
getFromBus
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public void setFromBus(Bus[] b) throws PAModelException
setFromBus
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public Bus getToBus(int ndx) throws PAModelException
getToBus
in interface TwoTermBaseList<TwoTermDev>
PAModelException
public void setToBus(int ndx, Bus b) throws PAModelException
setToBus
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public Bus[] getToBus() throws PAModelException
getToBus
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public void setToBus(Bus[] b) throws PAModelException
setToBus
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public boolean isInService(int ndx) throws PAModelException
isInService
in interface InServiceList<TwoTermDev>
PAModelException
public void setInService(int ndx, boolean state) throws PAModelException
setInService
in interface InServiceList<TwoTermDev>
PAModelException
public boolean[] isInService() throws PAModelException
isInService
in interface InServiceList<TwoTermDev>
PAModelException
public void setInService(boolean[] state) throws PAModelException
setInService
in interface InServiceList<TwoTermDev>
PAModelException
public float getFromP(int ndx) throws PAModelException
getFromP
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public void setFromP(int ndx, float mw) throws PAModelException
setFromP
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public float[] getFromP() throws PAModelException
getFromP
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public void setFromP(float[] mw) throws PAModelException
setFromP
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public float getFromQ(int ndx) throws PAModelException
getFromQ
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public void setFromQ(int ndx, float mvar) throws PAModelException
setFromQ
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public float[] getFromQ() throws PAModelException
getFromQ
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public void setFromQ(float[] mvar) throws PAModelException
setFromQ
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public float getToP(int ndx) throws PAModelException
getToP
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public void setToP(int ndx, float mw) throws PAModelException
setToP
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public float[] getToP() throws PAModelException
getToP
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public void setToP(float[] mw) throws PAModelException
setToP
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public float getToQ(int ndx) throws PAModelException
getToQ
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public void setToQ(int ndx, float mvar) throws PAModelException
setToQ
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public float[] getToQ() throws PAModelException
getToQ
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public void setToQ(float[] mvar) throws PAModelException
setToQ
in interface TwoTermDevListIfc<TwoTermDev>
PAModelException
public TwoTermDev get(int index)
get
in interface java.util.List<TwoTermDev>
get
in class java.util.AbstractList<TwoTermDev>
public int size()
size
in interface java.util.Collection<TwoTermDev>
size
in interface java.util.List<TwoTermDev>
size
in class java.util.AbstractCollection<TwoTermDev>
public TwoTermDev getByID(java.lang.String id) throws PAModelException
getByID
in interface BaseList<TwoTermDev>
PAModelException
public boolean objEquals(int ndx, java.lang.Object obj)
objEquals
in interface BaseList<TwoTermDev>
public int objHash(int ndx)
objHash
in interface BaseList<TwoTermDev>
public java.util.Set<ColumnMeta> getColTypes()
getColTypes
in interface BaseList<TwoTermDev>
public <R> R getColumnData(ColumnMeta col) throws PAModelException
getColumnData
in interface BaseList<TwoTermDev>
PAModelException