public interface Branch extends ExtensionElement
The following features are supported:
NetPackage.getBranch()| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCircuitNumber()
Returns the value of the 'Circuit Number' attribute.
|
Bus |
getFromBus()
Returns the value of the 'From Bus' reference.
|
java.lang.String |
getFromBusId()
get from Bus id (from branchId), the physical bus connected to the branch at the from side.
|
Network<?,?> |
getNetwork()
Returns the value of the 'Network' reference.
|
java.util.Optional<Bus> |
getOppositeBus(Bus bus)
get the opposite Bus of of input bus object
|
java.lang.String |
getOriginalBranchId()
Returns the value of the 'Original Branch Id' attribute.
|
Bus |
getToBus()
Returns the value of the 'To Bus' reference.
|
java.lang.String |
getToBusId()
get to Bus id ( (from branchId), the physical bus connected to the branch at the to side.
|
boolean |
isFromBus(Bus bus)
Check if the input Bus object is on the from side
|
boolean |
isFromSideMetered()
Returns the value of the 'From Side Metered' attribute.
|
boolean |
isGroundBranch()
Check if the branch is a ground branch (toBus=null)
|
boolean |
isToBus(Bus bus)
Check if the input Bus object is on the to side
|
boolean |
reconnect(Bus bus,
BranchBusSide side,
boolean deactivateExistBus)
Reconnect the branch to another bus.
|
void |
setAttributes(java.lang.String name,
java.lang.String desc,
java.lang.String cirNumber)
Set branch attributes: name, desc and circuit number.
|
void |
setAttributes(java.lang.String name,
java.lang.String desc,
java.lang.String cirNumber,
Area area,
Zone zone)
Set branch attributes: name, desc, circuit number, areaNo and zoneNo.
|
void |
setCircuitNumber(java.lang.String value)
Sets the value of the '
Circuit Number' attribute. |
void |
setFromBus(Bus value)
Sets the value of the '
From Bus' reference. |
void |
setFromSideMetered(boolean value)
Sets the value of the '
From Side Metered' attribute. |
void |
setNetwork(Network<?,?> value)
Sets the value of the '
Network' reference. |
void |
setOriginalBranchId(java.lang.String value)
Sets the value of the '
Original Branch Id' attribute. |
void |
setToBus(Bus value)
Sets the value of the '
To Bus' reference. |
java.lang.String |
toString(double baseKva)
Return a string representation of the branch states
|
getExtensionObject, setExtensionObjectgetArea, getAreaId, getExtSeqNumber, getIntFlag, getOwner, getOwnerId, getSortNumber, getWeight, getZone, getZoneId, isBooleanFlag, setArea, setAreaId, setBooleanFlag, setExtSeqNumber, setIntFlag, setOwner, setOwnerId, setSortNumber, setWeight, setZone, setZoneIdcheckData, checkData, getDesc, getId, getName, getNumber, getStatusChangeInfo, hzCopy, isActive, isStatus, jsonCopy, setDesc, setId, setName, setNumber, setStatus, setStatusChangeInfoeAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetNetwork<?,?> getNetwork()
If the meaning of the 'Network' container reference isn't clear, there really should be more of a description here...
The containing parent Network objectsetNetwork(Network),
NetPackage.getBranch_Network()void setNetwork(Network<?,?> value)
Network' reference.
value - the new value of the 'Network' reference.getNetwork()java.lang.String getCircuitNumber()
"1".
If the meaning of the 'Circuit Number' attribute isn't clear, there really should be more of a description here...
branch circuit number. It will be assigned automatically by the system starting from 1. The branch id is always in the format: fromBsuId->toBusId(circuitNumber)setCircuitNumber(String),
NetPackage.getBranch_CircuitNumber()void setCircuitNumber(java.lang.String value)
Circuit Number' attribute.
value - the new value of the 'Circuit Number' attribute.getCircuitNumber()boolean isFromSideMetered()
"true".
If the meaning of the 'From Metered' attribute isn't clear, there really should be more of a description here...
Check if the branch is from side metered.setFromSideMetered(boolean),
NetPackage.getBranch_FromSideMetered()void setFromSideMetered(boolean value)
From Side Metered' attribute.
value - the new value of the 'From Side Metered' attribute.isFromSideMetered()java.lang.String getOriginalBranchId()
"".
The branch could be reconnected. The original branch id before the reconnect.
setOriginalBranchId(String),
NetPackage.getBranch_OriginalBranchId()void setOriginalBranchId(java.lang.String value)
Original Branch Id' attribute.
value - the new value of the 'Original Branch Id' attribute.getOriginalBranchId()Bus getFromBus()
From Branch List'.
If the meaning of the 'From Bus' reference isn't clear, there really should be more of a description here...
Reference to the from side bus object. Please note - using getFromBus() method, you might get the parent bus in the consolidated network situatio.setFromBus(Bus),
NetPackage.getBranch_FromBus(),
Bus.getFromBranchList()void setFromBus(Bus value)
From Bus' reference.
value - the new value of the 'From Bus' reference.getFromBus()java.lang.String getFromBusId()
java.lang.String getToBusId()
java.util.Optional<Bus> getOppositeBus(Bus bus)
bus - bus object
boolean isFromBus(Bus bus)
bus - bus object
boolean isToBus(Bus bus)
bus - bus object
Bus getToBus()
To Branch List'.
If the meaning of the 'To Bus' reference isn't clear, there really should be more of a description here...
Reference to the to side bus object. Please note - using getToBus() method, you might get the parent bus in the consolidated network situatio.setToBus(Bus),
NetPackage.getBranch_ToBus(),
Bus.getToBranchList()void setToBus(Bus value)
To Bus' reference.
value - the new value of the 'To Bus' reference.getToBus()void setAttributes(java.lang.String name,
java.lang.String desc,
java.lang.String cirNumber)
name - branch name, optional in terms of analysis purposedesc - branch description, optional in terms of analysiscirNumber - branch circuit number
void setAttributes(java.lang.String name,
java.lang.String desc,
java.lang.String cirNumber,
Area area,
Zone zone)
name - branch namedesc - branch descriptioncirNumber - branch circuit numberarea - branch areazone - branch zone
boolean isGroundBranch()
boolean reconnect(Bus bus, BranchBusSide side, boolean deactivateExistBus)
bus - bus objectside - branch bus side, FromSide or ToSidedeactivateExistBus - Flag to control if the existing or original bus should be deactivated.
java.lang.String toString(double baseKva)
baseKva - System base kva