public interface INetBranchElement<TBus extends Bus,TBranch extends Branch>
extends org.eclipse.emf.ecore.EObject
NetPackage.getINetBranchElement()| Modifier and Type | Method and Description |
|---|---|
TBranch |
addBranch(TBranch branch)
Add the branch object into the network container.
|
TBranch |
addBranch(TBranch branch,
java.lang.String fromBusId,
int fromBusSecNo,
java.lang.String toBusId,
int toBusSecNo)
Add the branch object into the network container and connect to the from bus section and to bus section identified by the bus Id(s) and secNo.
|
TBranch |
addBranch(TBranch branch,
java.lang.String fromBusId,
int fromBusSecNo,
java.lang.String toBusId,
int toBusSecNo,
java.lang.String cirId)
Add the branch object into the network container and connect to the from bus section and to bus section identified by the bus Id(s) and secNo.
|
TBranch |
addBranch(TBranch branch,
java.lang.String fromBusId,
java.lang.String toBusId)
Add the branch object into the network container and connect to the from bus and to bus identified by the Id(s) with default circuit number.
|
TBranch |
addBranch(TBranch branch,
java.lang.String fromBusId,
java.lang.String toBusId,
java.lang.String cirId)
Add the branch object into the network container and connect to the from bus and to bus identified by the Id(s).
|
TBranch |
getBranch(java.lang.String branchId)
Get the branch object identified by the branch id.
|
TBranch |
getBranch(java.lang.String fromBusId,
java.lang.String toBusId)
Get the branch object identified by the from bus id and to bus id,
assuming default branch circuit number is 1.
|
TBranch |
getBranch(java.lang.String fromBusId,
java.lang.String toBusId,
boolean dirSensitive)
Get the branch object identified by the from bus id and to bus id,
assuming default branch circuit number is 1.
|
TBranch |
getBranch(java.lang.String fromBusId,
java.lang.String toBusId,
java.lang.String circuitNumber)
Get the branch object identified by the from bus id,
to bus id and branch circuit number.
|
TBranch |
getBranch(java.lang.String fromBusId,
java.lang.String toBusId,
java.lang.String circuitNumber,
boolean dirSensitive)
Get the branch object identified by the from bus id,
to bus id and branch circuit number.
|
int |
getNoActiveBranch()
return number of active branches in the network.
|
int |
getNoBranch()
return number of branches in the network.
|
boolean |
hasBranch(java.lang.String fromBusId,
java.lang.String toBusId)
Check if branch fromId->toBus with default circuit number exists in the network
|
boolean |
hasBranch(java.lang.String fromBusId,
java.lang.String toBusId,
java.lang.String cirId)
Check if branch fromId->toBus(cirId) exists in the network
|
boolean |
removeBranch(java.lang.String branchId)
Remove the branch object with the branchId from the network container.
|
boolean |
removeBranch(java.lang.String fromBusId,
java.lang.String toBusId,
java.lang.String cirNumber)
Remove the branch object connected to the buses from the network container.
|
boolean |
removeBranch(TBus fromBus,
TBus toBus,
java.lang.String cirNumber)
Remove the branch object connected to the buses from the network container.
|
int getNoBranch()
int getNoActiveBranch()
boolean hasBranch(java.lang.String fromBusId,
java.lang.String toBusId)
fromBusId - from bus idtoBusId - to bus id
boolean hasBranch(java.lang.String fromBusId,
java.lang.String toBusId,
java.lang.String cirId)
fromBusId - from bus idtoBusId - to bus idcirId - branch circuit id
TBranch getBranch(java.lang.String branchId)
branchId - branch id
TBranch getBranch(java.lang.String fromBusId, java.lang.String toBusId)
fromBusId - from bus idtoBusId - to bus id
TBranch getBranch(java.lang.String fromBusId, java.lang.String toBusId, boolean dirSensitive)
fromBusId - from bus idtoBusId - to bus iddirSensitive - if set to true, branch search is direction sensitive
TBranch getBranch(java.lang.String fromBusId, java.lang.String toBusId, java.lang.String circuitNumber)
fromBusId - from bus idtoBusId - to bus idcircuitNumber - branch circuit number
TBranch getBranch(java.lang.String fromBusId, java.lang.String toBusId, java.lang.String circuitNumber, boolean dirSensitive)
fromBusId - from bus idtoBusId - to bus idcircuitNumber - branch circuit numberdirSensitive - if set to true, branch search is direction sensitive
TBranch addBranch(TBranch branch) throws InterpssException
branch - the branch object to be added
InterpssExceptionTBranch addBranch(TBranch branch, java.lang.String fromBusId, java.lang.String toBusId) throws InterpssException
branch - the branch object to be addedfromBusId - from bus idtoBusId - to bus id
InterpssExceptionTBranch addBranch(TBranch branch, java.lang.String fromBusId, java.lang.String toBusId, java.lang.String cirId) throws InterpssException
branch - the branch object to be addedfromBusId - from bus idtoBusId - to bus idcirId - branch circuit id
InterpssExceptionTBranch addBranch(TBranch branch, java.lang.String fromBusId, int fromBusSecNo, java.lang.String toBusId, int toBusSecNo) throws InterpssException
branch - the branch object to be addedfromBusId - from bus idfromBusSecNo - from bus section numbertoBusId - to bus idtoBusSecNo - to bus section number
InterpssExceptionTBranch addBranch(TBranch branch, java.lang.String fromBusId, int fromBusSecNo, java.lang.String toBusId, int toBusSecNo, java.lang.String cirId) throws InterpssException
branch - the branch object to be addedfromBusId - from bus idfromBusSecNo - from bus section numbertoBusId - to bus idtoBusSecNo - to bus section numbercirId - branch circuit id
InterpssExceptionboolean removeBranch(java.lang.String fromBusId,
java.lang.String toBusId,
java.lang.String cirNumber)
fromBusId - from bud idtoBusId - to bus idcirNumber - branch circuit number
boolean removeBranch(TBus fromBus, TBus toBus, java.lang.String cirNumber)
fromBus - from bus objecttoBus - to bus objectcirNumber - branch circuit number
boolean removeBranch(java.lang.String branchId)
branchId - branch id