public class BusImpl extends ExtensionElementImpl implements Bus
The following features are implemented:
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImplorg.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList| Modifier and Type | Field and Description |
|---|---|
protected static double |
BASE_VOLTAGE_EDEFAULT
The default value of the '
Base Voltage' attribute. |
protected double |
baseVoltage
The cached value of the '
Base Voltage' attribute. |
protected org.eclipse.emf.common.util.EList<Branch> |
fromBranchList
The cached value of the '
From Branch List' reference list. |
protected static java.lang.String |
MERGE2_BUS_ID_EDEFAULT
The default value of the '
Merge2 Bus Id' attribute. |
protected java.lang.String |
merge2BusId
The cached value of the '
Merge2 Bus Id' attribute. |
protected Network<?,?> |
network
The cached value of the '
Network' reference. |
protected static int |
SUB_AREA_FLAG_EDEFAULT
The default value of the '
Sub Area Flag' attribute. |
protected int |
subAreaFlag
The cached value of the '
Sub Area Flag' attribute. |
protected Substation |
substation
The cached value of the '
Substation' reference. |
protected static java.lang.String |
SUBSTATION_ID_EDEFAULT
The default value of the '
Substation Id' attribute. |
protected java.lang.String |
substationId
The cached value of the '
Substation Id' attribute. |
protected org.eclipse.emf.common.util.EList<Branch> |
toBranchList
The cached value of the '
To Branch List' reference list. |
EXTENSION_OBJECT_EDEFAULT, extensionObjectarea, AREA_ID_EDEFAULT, areaId, BOOLEAN_FLAG_EDEFAULT, booleanFlag, EXT_SEQ_NUMBER_EDEFAULT, extSeqNumber, INT_FLAG_EDEFAULT, intFlag, owner, OWNER_ID_EDEFAULT, ownerId, SORT_NUMBER_EDEFAULT, sortNumber, weight, WEIGHT_EDEFAULT, zone, ZONE_ID_EDEFAULT, zoneIddesc, DESC_EDEFAULT, id, ID_EDEFAULT, name, NAME_EDEFAULT, number, NUMBER_EDEFAULT, status, STATUS_CHANGE_INFO_EDEFAULT, STATUS_EDEFAULT, statusChangeInfoeAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY| Modifier | Constructor and Description |
|---|---|
protected |
BusImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.emf.common.notify.NotificationChain |
basicSetSubstation(Substation newSubstation,
org.eclipse.emf.common.notify.NotificationChain msgs) |
boolean |
checkData(DataCheckConfiguration config) |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
org.eclipse.emf.common.notify.NotificationChain |
eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs) |
org.eclipse.emf.common.notify.NotificationChain |
eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
java.lang.Object newValue) |
protected org.eclipse.emf.ecore.EClass |
eStaticClass() |
void |
eUnset(int featureID) |
double |
getBaseVoltage() |
java.util.List<Branch> |
getBranchList() |
Branch |
getConnectedBranch(java.lang.String branchId) |
org.eclipse.emf.common.util.EList<Branch> |
getFromBranchList()
This method is not supposed to be used outside this class
|
java.lang.String |
getMerge2BusId() |
Network<?,?> |
getNetwork() |
int |
getSubAreaFlag() |
Substation |
getSubstation() |
java.lang.String |
getSubstationId() |
org.eclipse.emf.common.util.EList<Branch> |
getToBranchList()
This method is not supposed to be used outside this class
|
boolean |
isIslandBus() |
int |
nActiveBranchConnected() |
int |
nBranchConnected() |
int |
nBranchConnected(boolean visited) |
int |
nNonGroundBranchConnected(boolean inclActiveOnly) |
void |
readData(com.hazelcast.nio.ObjectDataInput in) |
void |
setAttributes(java.lang.String name,
java.lang.String desc) |
void |
setAttributes(java.lang.String name,
java.lang.String desc,
Area area,
Zone zone) |
void |
setBaseVoltage(double newBaseVoltage) |
void |
setBaseVoltage(double volt,
Unit.UnitType unit) |
void |
setId(java.lang.String newId)
Bus id cannot contain "->", space, '(' and ')'
|
void |
setMerge2BusId(java.lang.String newMerge2BusId) |
void |
setNetwork(Network<?,?> newNetwork) |
void |
setSubAreaFlag(int newSubAreaFlag) |
void |
setSubstation(Substation newSubstation) |
void |
setSubstationId(java.lang.String newSubstationId) |
java.lang.String |
toString() |
java.lang.String |
toString(double baseKVA) |
void |
writeData(com.hazelcast.nio.ObjectDataOutput out) |
getExtensionObject, setExtensionObjectgetArea, getAreaId, getExtSeqNumber, getIntFlag, getOwner, getOwnerId, getSortNumber, getWeight, getZone, getZoneId, isBooleanFlag, setArea, setAreaId, setBooleanFlag, setExtSeqNumber, setIntFlag, setOwner, setOwnerId, setSortNumber, setWeight, setZone, setZoneIdcheckData, getDesc, getId, getName, getNumber, getStatusChangeInfo, hzCopy, isActive, isStatus, jsonCopy, setDesc, setName, setNumber, setStatus, setStatusChangeInfoeAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURIeAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValueseBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExtensionObject, setExtensionObjectgetArea, getAreaId, getExtSeqNumber, getIntFlag, getOwner, getOwnerId, getSortNumber, getWeight, getZone, getZoneId, isBooleanFlag, setArea, setAreaId, setBooleanFlag, setExtSeqNumber, setIntFlag, setOwner, setOwnerId, setSortNumber, setWeight, setZone, setZoneIdcheckData, getDesc, getId, getName, getNumber, getStatusChangeInfo, hzCopy, isActive, isStatus, jsonCopy, setDesc, setName, setNumber, setStatus, setStatusChangeInfoeAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetprotected static final double BASE_VOLTAGE_EDEFAULT
Base Voltage' attribute.
getBaseVoltage(),
Constant Field Valuesprotected double baseVoltage
Base Voltage' attribute.
getBaseVoltage()protected static final java.lang.String MERGE2_BUS_ID_EDEFAULT
Merge2 Bus Id' attribute.
getMerge2BusId(),
Constant Field Valuesprotected java.lang.String merge2BusId
Merge2 Bus Id' attribute.
getMerge2BusId()protected static final int SUB_AREA_FLAG_EDEFAULT
Sub Area Flag' attribute.
getSubAreaFlag(),
Constant Field Valuesprotected int subAreaFlag
Sub Area Flag' attribute.
getSubAreaFlag()protected static final java.lang.String SUBSTATION_ID_EDEFAULT
Substation Id' attribute.
getSubstationId(),
Constant Field Valuesprotected java.lang.String substationId
Substation Id' attribute.
getSubstationId()protected Substation substation
Substation' reference.
getSubstation()protected Network<?,?> network
Network' reference.
getNetwork()protected org.eclipse.emf.common.util.EList<Branch> toBranchList
To Branch List' reference list.
getToBranchList()protected org.eclipse.emf.common.util.EList<Branch> fromBranchList
From Branch List' reference list.
getFromBranchList()public boolean checkData(DataCheckConfiguration config)
checkData in interface NameTagcheckData in class NameTagImplconfig - data check configuration
public boolean isIslandBus()
isIslandBus in interface Buspublic void setId(java.lang.String newId)
setId in interface NameTagsetId in class NameTagImplnewId - the new value of the 'Id' attribute.NameTag.getId()public double getBaseVoltage()
getBaseVoltage in interface BusBus.setBaseVoltage(double),
NetPackage.getBus_BaseVoltage()public void setBaseVoltage(double newBaseVoltage)
setBaseVoltage in interface BusnewBaseVoltage - the new value of the 'Base Voltage' attribute.Bus.getBaseVoltage()public java.lang.String getMerge2BusId()
getMerge2BusId in interface BusBus.setMerge2BusId(String),
NetPackage.getBus_Merge2BusId()public void setMerge2BusId(java.lang.String newMerge2BusId)
setMerge2BusId in interface BusnewMerge2BusId - the new value of the 'Merge2 Bus Id' attribute.Bus.getMerge2BusId()public int getSubAreaFlag()
getSubAreaFlag in interface BusBus.setSubAreaFlag(int),
NetPackage.getBus_SubAreaFlag()public void setSubAreaFlag(int newSubAreaFlag)
setSubAreaFlag in interface BusnewSubAreaFlag - the new value of the 'Sub Area Flag' attribute.Bus.getSubAreaFlag()public java.lang.String getSubstationId()
getSubstationId in interface BusBus.setSubstationId(String),
NetPackage.getBus_SubstationId()public void setSubstationId(java.lang.String newSubstationId)
setSubstationId in interface BusnewSubstationId - the new value of the 'Substation Id' attribute.Bus.getSubstationId()public void setBaseVoltage(double volt,
Unit.UnitType unit)
setBaseVoltage in interface Busvolt - bus base voltageunit - base voltage unit
public org.eclipse.emf.common.util.EList<Branch> getFromBranchList()
getFromBranchList in interface BusNetPackage.getBus_FromBranchList(),
Branch.getFromBus()public org.eclipse.emf.common.util.EList<Branch> getToBranchList()
getToBranchList in interface BusNetPackage.getBus_ToBranchList(),
Branch.getToBus()public Network<?,?> getNetwork()
getNetwork in interface BusBus.setNetwork(Network),
NetPackage.getBus_Network()public void setNetwork(Network<?,?> newNetwork)
setNetwork in interface BusnewNetwork - the new value of the 'Network' reference.Bus.getNetwork()public Substation getSubstation()
getSubstation in interface BusBus.setSubstation(Substation),
NetPackage.getBus_Substation(),
Substation.getBusList()public org.eclipse.emf.common.notify.NotificationChain basicSetSubstation(Substation newSubstation, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setSubstation(Substation newSubstation)
setSubstation in interface BusnewSubstation - the new value of the 'Substation' reference.Bus.getSubstation()public void setAttributes(java.lang.String name,
java.lang.String desc)
setAttributes in interface Busname - bus namedesc - bus description
public void setAttributes(java.lang.String name,
java.lang.String desc,
Area area,
Zone zone)
setAttributes in interface Busname - bus namedesc - bus descriptionarea - bus areazone - bus zone
public int nActiveBranchConnected()
nActiveBranchConnected in interface Buspublic int nBranchConnected()
nBranchConnected in interface Buspublic int nBranchConnected(boolean visited)
nBranchConnected in interface Buspublic int nNonGroundBranchConnected(boolean inclActiveOnly)
nNonGroundBranchConnected in interface Buspublic java.util.List<Branch> getBranchList()
getBranchList in interface Buspublic Branch getConnectedBranch(java.lang.String branchId)
getConnectedBranch in interface BusbranchId - branch id
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass in class ExtensionElementImplpublic org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseAdd in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseRemove in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
eGet in interface org.eclipse.emf.ecore.InternalEObjecteGet in class ExtensionElementImplpublic void eSet(int featureID,
java.lang.Object newValue)
eSet in interface org.eclipse.emf.ecore.InternalEObjecteSet in class ExtensionElementImplpublic void eUnset(int featureID)
eUnset in interface org.eclipse.emf.ecore.InternalEObjecteUnset in class ExtensionElementImplpublic boolean eIsSet(int featureID)
eIsSet in interface org.eclipse.emf.ecore.InternalEObjecteIsSet in class ExtensionElementImplpublic java.lang.String toString()
toString in class ExtensionElementImplpublic void writeData(com.hazelcast.nio.ObjectDataOutput out)
throws java.io.IOException
NameTagImplwriteData in interface com.hazelcast.nio.serialization.DataSerializablewriteData in class ExtensionElementImpljava.io.IOExceptionpublic void readData(com.hazelcast.nio.ObjectDataInput in)
throws java.io.IOException
NameTagImplreadData in interface com.hazelcast.nio.serialization.DataSerializablereadData in class ExtensionElementImpljava.io.IOException