public class BranchImpl extends ExtensionElementImpl implements Branch
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 java.lang.String |
CIRCUIT_NUMBER_EDEFAULT
The default value of the '
Circuit Number' attribute. |
protected java.lang.String |
circuitNumber
The cached value of the '
Circuit Number' attribute. |
protected static boolean |
FROM_SIDE_METERED_EDEFAULT
The default value of the '
From Side Metered' attribute. |
protected Bus |
fromBus
The cached value of the '
From Bus' reference. |
protected boolean |
fromSideMetered
The cached value of the '
From Side Metered' attribute. |
protected Network<?,?> |
network
The cached value of the '
Network' reference. |
protected static java.lang.String |
ORIGINAL_BRANCH_ID_EDEFAULT
The default value of the '
Original Branch Id' attribute. |
protected java.lang.String |
originalBranchId
The cached value of the '
Original Branch Id' attribute. |
protected Bus |
toBus
The cached value of the '
To Bus' reference. |
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 |
BranchImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.emf.common.notify.NotificationChain |
basicSetFromBus(Bus newFromBus,
org.eclipse.emf.common.notify.NotificationChain msgs) |
org.eclipse.emf.common.notify.NotificationChain |
basicSetToBus(Bus newToBus,
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) |
java.lang.String |
getCircuitNumber() |
Bus |
getFromBus() |
java.lang.String |
getFromBusId() |
Network<?,?> |
getNetwork() |
java.util.Optional<Bus> |
getOppositeBus(Bus bus) |
java.lang.String |
getOriginalBranchId() |
Bus |
getToBus() |
java.lang.String |
getToBusId() |
boolean |
isFromBus(Bus bus) |
boolean |
isFromSideMetered() |
boolean |
isGroundBranch()
A branch is a ground branch if acitve and its to bus is null
|
boolean |
isToBus(Bus bus) |
void |
readData(com.hazelcast.nio.ObjectDataInput in) |
boolean |
reconnect(Bus bus,
BranchBusSide side,
boolean deactivateExistBus) |
void |
setAttributes(java.lang.String name,
java.lang.String desc,
java.lang.String cirNumber) |
void |
setAttributes(java.lang.String name,
java.lang.String desc,
java.lang.String cirNumber,
Area area,
Zone zone) |
void |
setCircuitNumber(java.lang.String newCircuitNumber) |
void |
setFromBus(Bus newFromBus) |
void |
setFromSideMetered(boolean newFromSideMetered) |
void |
setNetwork(Network<?,?> newNetwork) |
void |
setOriginalBranchId(java.lang.String newOriginalBranchId) |
void |
setToBus(Bus newToBus) |
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, setId, 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, setId, setName, setNumber, setStatus, setStatusChangeInfoeAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetprotected static final java.lang.String CIRCUIT_NUMBER_EDEFAULT
Circuit Number' attribute.
getCircuitNumber(),
Constant Field Valuesprotected java.lang.String circuitNumber
Circuit Number' attribute.
getCircuitNumber()protected static final boolean FROM_SIDE_METERED_EDEFAULT
From Side Metered' attribute.
isFromSideMetered(),
Constant Field Valuesprotected boolean fromSideMetered
From Side Metered' attribute.
isFromSideMetered()protected static final java.lang.String ORIGINAL_BRANCH_ID_EDEFAULT
Original Branch Id' attribute.
getOriginalBranchId(),
Constant Field Valuesprotected java.lang.String originalBranchId
Original Branch Id' attribute.
getOriginalBranchId()protected Bus toBus
To Bus' reference.
getToBus()protected Bus fromBus
From Bus' reference.
getFromBus()protected Network<?,?> network
Network' reference.
getNetwork()public boolean checkData(DataCheckConfiguration config)
checkData in interface NameTagcheckData in class NameTagImplconfig - data check configuration
public Network<?,?> getNetwork()
getNetwork in interface BranchBranch.setNetwork(Network),
NetPackage.getBranch_Network()public void setNetwork(Network<?,?> newNetwork)
setNetwork in interface BranchnewNetwork - the new value of the 'Network' reference.Branch.getNetwork()public java.lang.String getCircuitNumber()
getCircuitNumber in interface BranchBranch.setCircuitNumber(String),
NetPackage.getBranch_CircuitNumber()public void setCircuitNumber(java.lang.String newCircuitNumber)
setCircuitNumber in interface BranchnewCircuitNumber - the new value of the 'Circuit Number' attribute.Branch.getCircuitNumber()public boolean isFromSideMetered()
isFromSideMetered in interface BranchBranch.setFromSideMetered(boolean),
NetPackage.getBranch_FromSideMetered()public void setFromSideMetered(boolean newFromSideMetered)
setFromSideMetered in interface BranchnewFromSideMetered - the new value of the 'From Side Metered' attribute.Branch.isFromSideMetered()public java.lang.String getOriginalBranchId()
getOriginalBranchId in interface BranchBranch.setOriginalBranchId(String),
NetPackage.getBranch_OriginalBranchId()public void setOriginalBranchId(java.lang.String newOriginalBranchId)
setOriginalBranchId in interface BranchnewOriginalBranchId - the new value of the 'Original Branch Id' attribute.Branch.getOriginalBranchId()public Bus getFromBus()
getFromBus in interface BranchBranch.setFromBus(Bus),
NetPackage.getBranch_FromBus(),
Bus.getFromBranchList()public org.eclipse.emf.common.notify.NotificationChain basicSetFromBus(Bus newFromBus, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setFromBus(Bus newFromBus)
setFromBus in interface BranchnewFromBus - the new value of the 'From Bus' reference.Branch.getFromBus()public java.util.Optional<Bus> getOppositeBus(Bus bus)
getOppositeBus in interface Branchbus - bus object
public boolean isFromBus(Bus bus)
public boolean isToBus(Bus bus)
public Bus getToBus()
getToBus in interface BranchBranch.setToBus(Bus),
NetPackage.getBranch_ToBus(),
Bus.getToBranchList()public java.lang.String getFromBusId()
getFromBusId in interface Branchpublic java.lang.String getToBusId()
getToBusId in interface Branchpublic boolean reconnect(Bus bus, BranchBusSide side, boolean deactivateExistBus)
public org.eclipse.emf.common.notify.NotificationChain basicSetToBus(Bus newToBus, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setToBus(Bus newToBus)
setToBus in interface BranchnewToBus - the new value of the 'To Bus' reference.Branch.getToBus()public void setAttributes(java.lang.String name,
java.lang.String desc,
java.lang.String cirNumber)
setAttributes in interface Branchname - branch name, optional in terms of analysis purposedesc - branch description, optional in terms of analysiscirNumber - branch circuit number
public void setAttributes(java.lang.String name,
java.lang.String desc,
java.lang.String cirNumber,
Area area,
Zone zone)
setAttributes in interface Branchname - branch namedesc - branch descriptioncirNumber - branch circuit numberarea - branch areazone - branch zone
public boolean isGroundBranch()
isGroundBranch in interface Branchprotected 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 java.lang.String toString(double baseKva)
public 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