TBus
- bus generic typeTBranch
- branch generic typeTNet
- network generic typepublic abstract class BaseSubNetwork<TBus extends Bus,TBranch extends Branch,TNet extends Network<TBus,TBranch>,TYmatrix,TZMatrix,TVolt> extends BaseSubArea<TYmatrix,TZMatrix,TVolt>
Modifier and Type | Field and Description |
---|---|
protected TNet |
subNet
a network object representing the sub-area
|
busVoltageMap
Constructor and Description |
---|
BaseSubNetwork(int flag)
default constructor
|
BaseSubNetwork(int flag,
java.lang.String[] ids)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
buildSubNet(TNet parentNet,
int subNetFlag)
After the sub-area info have been defined, build the sub-net object from
the parent network object.
|
abstract TNet |
createSubNetwork(int subNetFlag)
create the sub-network object
|
TNet |
getSubNet() |
java.lang.String |
toString() |
getBusVoltage, getFlag, getInterfaceBusIdList, getYSparseEqn, getZMatrix, setFlag, setYSparseEqn, setZMatrix
public BaseSubNetwork(int flag)
flag
- public BaseSubNetwork(int flag, java.lang.String[] ids)
flag
- ids
- public TNet getSubNet()
public void buildSubNet(TNet parentNet, int subNetFlag) throws InterpssException
In this method, only Bus and Branch objected are "moved" from the parent network to the SubNetwork. It should be override in the subclass if more objects need to be "moved".
parentNet
- InterpssException
public abstract TNet createSubNetwork(int subNetFlag)
public java.lang.String toString()
toString
in class BaseSubArea<TYmatrix,TZMatrix,TVolt>