public interface BusRefIndex
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BusRefIndex.BusFunction
Function that takes a list and index, and return a Bus object
|
static class |
BusRefIndex.TwoTerm
Return object for both bus indexes of a list of two-terminal devices
|
| Modifier and Type | Method and Description |
|---|---|
static BusRefIndex |
CreateFromAlternateTopology(PAModel m,
GroupIndex grpndx) |
static BusRefIndex |
CreateFromConnectivityBuses(PALists m) |
static BusRefIndex |
CreateFromSingleBuses(PAModel m) |
int[] |
get1TBus(OneTermDevListIfc<? extends OneTermDev> t1list)
Get the list of bus indexes for the one-terminal device list
|
BusRefIndex.TwoTerm |
get2TBus(TwoTermDevListIfc<? extends TwoTermDev> t2list)
Get lists of bus indexes for two-terminal device list
|
BusList |
getBuses()
return the bus list used for this object, either PAModel.getBuses(), or
getSingleBus(), depending on startup configuration
|
default Bus |
getByBus(Bus b)
Convert a connectivity-based bus to this topology
|
int[] |
mapBusFcn(BaseList<? extends BaseObject> list,
BusRefIndex.BusFunction bfc)
Get list of bus indexes for any list that return a bus
|
BusList getBuses()
int[] get1TBus(OneTermDevListIfc<? extends OneTermDev> t1list) throws PAModelException
t1list - list of one-terminal devicesPAModelExceptionBusRefIndex.TwoTerm get2TBus(TwoTermDevListIfc<? extends TwoTermDev> t2list) throws PAModelException
t2list - list of two-terminal devicesPAModelExceptiondefault Bus getByBus(Bus b) throws PAModelException
b - the Connectivity-based busPAModelExceptionint[] mapBusFcn(BaseList<? extends BaseObject> list, BusRefIndex.BusFunction bfc) throws PAModelException
list - List of objects with a function returning busesbfc - PAModelExceptionstatic BusRefIndex CreateFromConnectivityBuses(PALists m) throws PAModelException
PAModelExceptionstatic BusRefIndex CreateFromSingleBuses(PAModel m) throws PAModelException
PAModelExceptionstatic BusRefIndex CreateFromAlternateTopology(PAModel m, GroupIndex grpndx) throws PAModelException
PAModelException