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.EPropertiesHolderImpl
org.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, extensionObject
area, 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, zoneId
desc, DESC_EDEFAULT, id, ID_EDEFAULT, name, NAME_EDEFAULT, number, NUMBER_EDEFAULT, status, STATUS_CHANGE_INFO_EDEFAULT, STATUS_EDEFAULT, statusChangeInfo
eAdapters, 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, setExtensionObject
getArea, getAreaId, getExtSeqNumber, getIntFlag, getOwner, getOwnerId, getSortNumber, getWeight, getZone, getZoneId, isBooleanFlag, setArea, setAreaId, setBooleanFlag, setExtSeqNumber, setIntFlag, setOwner, setOwnerId, setSortNumber, setWeight, setZone, setZoneId
checkData, getDesc, getId, getName, getNumber, getStatusChangeInfo, hzCopy, isActive, isStatus, jsonCopy, setDesc, setName, setNumber, setStatus, setStatusChangeInfo
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
eAddVirtualValue, 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, eVirtualValues
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExtensionObject, setExtensionObject
getArea, getAreaId, getExtSeqNumber, getIntFlag, getOwner, getOwnerId, getSortNumber, getWeight, getZone, getZoneId, isBooleanFlag, setArea, setAreaId, setBooleanFlag, setExtSeqNumber, setIntFlag, setOwner, setOwnerId, setSortNumber, setWeight, setZone, setZoneId
checkData, getDesc, getId, getName, getNumber, getStatusChangeInfo, hzCopy, isActive, isStatus, jsonCopy, setDesc, setName, setNumber, setStatus, setStatusChangeInfo
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
protected 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 NameTag
checkData
in class NameTagImpl
config
- data check configuration
public boolean isIslandBus()
isIslandBus
in interface Bus
public void setId(java.lang.String newId)
setId
in interface NameTag
setId
in class NameTagImpl
newId
- the new value of the 'Id' attribute.NameTag.getId()
public double getBaseVoltage()
getBaseVoltage
in interface Bus
Bus.setBaseVoltage(double)
,
NetPackage.getBus_BaseVoltage()
public void setBaseVoltage(double newBaseVoltage)
setBaseVoltage
in interface Bus
newBaseVoltage
- the new value of the 'Base Voltage' attribute.Bus.getBaseVoltage()
public java.lang.String getMerge2BusId()
getMerge2BusId
in interface Bus
Bus.setMerge2BusId(String)
,
NetPackage.getBus_Merge2BusId()
public void setMerge2BusId(java.lang.String newMerge2BusId)
setMerge2BusId
in interface Bus
newMerge2BusId
- the new value of the 'Merge2 Bus Id' attribute.Bus.getMerge2BusId()
public int getSubAreaFlag()
getSubAreaFlag
in interface Bus
Bus.setSubAreaFlag(int)
,
NetPackage.getBus_SubAreaFlag()
public void setSubAreaFlag(int newSubAreaFlag)
setSubAreaFlag
in interface Bus
newSubAreaFlag
- the new value of the 'Sub Area Flag' attribute.Bus.getSubAreaFlag()
public java.lang.String getSubstationId()
getSubstationId
in interface Bus
Bus.setSubstationId(String)
,
NetPackage.getBus_SubstationId()
public void setSubstationId(java.lang.String newSubstationId)
setSubstationId
in interface Bus
newSubstationId
- the new value of the 'Substation Id' attribute.Bus.getSubstationId()
public void setBaseVoltage(double volt, Unit.UnitType unit)
setBaseVoltage
in interface Bus
volt
- bus base voltageunit
- base voltage unit
public org.eclipse.emf.common.util.EList<Branch> getFromBranchList()
getFromBranchList
in interface Bus
NetPackage.getBus_FromBranchList()
,
Branch.getFromBus()
public org.eclipse.emf.common.util.EList<Branch> getToBranchList()
getToBranchList
in interface Bus
NetPackage.getBus_ToBranchList()
,
Branch.getToBus()
public Network<?,?> getNetwork()
getNetwork
in interface Bus
Bus.setNetwork(Network)
,
NetPackage.getBus_Network()
public void setNetwork(Network<?,?> newNetwork)
setNetwork
in interface Bus
newNetwork
- the new value of the 'Network' reference.Bus.getNetwork()
public Substation getSubstation()
getSubstation
in interface Bus
Bus.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 Bus
newSubstation
- the new value of the 'Substation' reference.Bus.getSubstation()
public void setAttributes(java.lang.String name, java.lang.String desc)
setAttributes
in interface Bus
name
- bus namedesc
- bus description
public void setAttributes(java.lang.String name, java.lang.String desc, Area area, Zone zone)
setAttributes
in interface Bus
name
- bus namedesc
- bus descriptionarea
- bus areazone
- bus zone
public int nActiveBranchConnected()
nActiveBranchConnected
in interface Bus
public int nBranchConnected()
nBranchConnected
in interface Bus
public int nBranchConnected(boolean visited)
nBranchConnected
in interface Bus
public int nNonGroundBranchConnected(boolean inclActiveOnly)
nNonGroundBranchConnected
in interface Bus
public java.util.List<Branch> getBranchList()
getBranchList
in interface Bus
public Branch getConnectedBranch(java.lang.String branchId)
getConnectedBranch
in interface Bus
branchId
- branch id
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class ExtensionElementImpl
public 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.BasicEObjectImpl
public 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.BasicEObjectImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class ExtensionElementImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class ExtensionElementImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class ExtensionElementImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class ExtensionElementImpl
public java.lang.String toString()
toString
in class ExtensionElementImpl
public void writeData(com.hazelcast.nio.ObjectDataOutput out) throws java.io.IOException
NameTagImpl
writeData
in interface com.hazelcast.nio.serialization.DataSerializable
writeData
in class ExtensionElementImpl
java.io.IOException
public void readData(com.hazelcast.nio.ObjectDataInput in) throws java.io.IOException
NameTagImpl
readData
in interface com.hazelcast.nio.serialization.DataSerializable
readData
in class ExtensionElementImpl
java.io.IOException