public interface Bus extends ExtensionElement
The following features are supported:
NetPackage.getBus()| Modifier and Type | Method and Description |
|---|---|
double |
getBaseVoltage()
Returns the value of the 'Base Voltage' attribute.
|
java.util.List<Branch> |
getBranchList()
Get the branch list including fromBranchList + toBranchList.
|
Branch |
getConnectedBranch(java.lang.String branchId)
Get the branch object physically connected to this bus identified by the branch id.
|
org.eclipse.emf.common.util.EList<Branch> |
getFromBranchList()
Returns the value of the 'From Branch List' reference list.
|
java.lang.String |
getMerge2BusId()
Returns the value of the 'Merge2 Bus Id' attribute.
|
Network<?,?> |
getNetwork()
Returns the value of the 'Network' reference.
|
int |
getSubAreaFlag()
Returns the value of the 'Sub Area Flag' attribute.
|
Substation |
getSubstation()
Returns the value of the 'Substation' reference.
|
java.lang.String |
getSubstationId()
Returns the value of the 'Substation Id' attribute.
|
org.eclipse.emf.common.util.EList<Branch> |
getToBranchList()
Returns the value of the 'To Branch List' reference list.
|
boolean |
isIslandBus()
Check if the Bus is an island bus.
|
int |
nActiveBranchConnected()
Get number of active branches connected to the bus
|
int |
nBranchConnected()
Get number of branches connected to the bus
|
int |
nBranchConnected(boolean visited)
Get number of visted (if visited = true) or unvisited (if visited = false) branches connected to the bus
|
int |
nNonGroundBranchConnected(boolean inclActiveOnly)
Get number of non-grounded branches connected to the bus.
|
void |
setAttributes(java.lang.String name,
java.lang.String desc)
Set bus attributes: name and desc.
|
void |
setAttributes(java.lang.String name,
java.lang.String desc,
Area area,
Zone zone)
Set bus attributes: name, desc, area and zone.
|
void |
setBaseVoltage(double value)
Sets the value of the '
Base Voltage' attribute. |
void |
setBaseVoltage(double volt,
Unit.UnitType unit)
Set the bus base voltage in the specified unit
|
void |
setMerge2BusId(java.lang.String value)
Sets the value of the '
Merge2 Bus Id' attribute. |
void |
setNetwork(Network<?,?> value)
Sets the value of the '
Network' reference. |
void |
setSubAreaFlag(int value)
Sets the value of the '
Sub Area Flag' attribute. |
void |
setSubstation(Substation value)
Sets the value of the '
Substation' reference. |
void |
setSubstationId(java.lang.String value)
Sets the value of the '
Substation Id' attribute. |
java.lang.String |
toString(double baseKva)
return a string representation of the bus 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, eUnsetdouble getBaseVoltage()
"0.0".
If the meaning of the 'Base Voltage' attribute isn't clear, there really should be more of a description here...
Bus base voltage in VoltsetBaseVoltage(double),
NetPackage.getBus_BaseVoltage()void setBaseVoltage(double value)
Base Voltage' attribute.
value - the new value of the 'Base Voltage' attribute.getBaseVoltage()java.lang.String getMerge2BusId()
"".
The bus could be merged. Bus id this bus merged to.
setMerge2BusId(String),
NetPackage.getBus_Merge2BusId()void setMerge2BusId(java.lang.String value)
Merge2 Bus Id' attribute.
value - the new value of the 'Merge2 Bus Id' attribute.getMerge2BusId()int getSubAreaFlag()
"-1".
an internal int flag, used for SubArea related analysis implementation.
setSubAreaFlag(int),
NetPackage.getBus_SubAreaFlag()void setSubAreaFlag(int value)
Sub Area Flag' attribute.
value - the new value of the 'Sub Area Flag' attribute.getSubAreaFlag()java.lang.String getSubstationId()
"".
Substation id for serialization purpose.
setSubstationId(String),
NetPackage.getBus_SubstationId()void setSubstationId(java.lang.String value)
Substation Id' attribute.
value - the new value of the 'Substation Id' attribute.getSubstationId()org.eclipse.emf.common.util.EList<Branch> getFromBranchList()
Branch.
It is bidirectional and its opposite is 'From Bus'.
If the meaning of the 'From Branch List' reference list isn't clear, there really should be more of a description here...
reference list to branches, which are connected to the bus at the fromsideNetPackage.getBus_FromBranchList(),
Branch.getFromBus()Network<?,?> getNetwork()
If the meaning of the 'Network' container reference isn't clear, there really should be more of a description here...
Parant containing network objectsetNetwork(Network),
NetPackage.getBus_Network()void setNetwork(Network<?,?> value)
Network' reference.
value - the new value of the 'Network' reference.getNetwork()Substation getSubstation()
Bus List'.
substation attribute
setSubstation(Substation),
NetPackage.getBus_Substation(),
Substation.getBusList()void setSubstation(Substation value)
Substation' reference.
value - the new value of the 'Substation' reference.getSubstation()org.eclipse.emf.common.util.EList<Branch> getToBranchList()
Branch.
It is bidirectional and its opposite is 'To Bus'.
If the meaning of the 'To Branch List' reference list isn't clear, there really should be more of a description here...
reference list to branches, which are connected to the bus at the tosideNetPackage.getBus_ToBranchList(),
Branch.getToBus()void setAttributes(java.lang.String name,
java.lang.String desc)
name - bus namedesc - bus description
void setAttributes(java.lang.String name,
java.lang.String desc,
Area area,
Zone zone)
name - bus namedesc - bus descriptionarea - bus areazone - bus zone
int nBranchConnected()
int nBranchConnected(boolean visited)
int nActiveBranchConnected()
int nNonGroundBranchConnected(boolean inclActiveOnly)
java.util.List<Branch> getBranchList()
Branch getConnectedBranch(java.lang.String branchId)
branchId - branch id
java.lang.String toString(double baseKva)
void setBaseVoltage(double volt,
Unit.UnitType unit)
volt - bus base voltageunit - base voltage unit
boolean isIslandBus()