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.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 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, 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 |
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, 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, setId, 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, setId, setName, setNumber, setStatus, setStatusChangeInfo
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
protected 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 NameTag
checkData
in class NameTagImpl
config
- data check configuration
public Network<?,?> getNetwork()
getNetwork
in interface Branch
Branch.setNetwork(Network)
,
NetPackage.getBranch_Network()
public void setNetwork(Network<?,?> newNetwork)
setNetwork
in interface Branch
newNetwork
- the new value of the 'Network' reference.Branch.getNetwork()
public java.lang.String getCircuitNumber()
getCircuitNumber
in interface Branch
Branch.setCircuitNumber(String)
,
NetPackage.getBranch_CircuitNumber()
public void setCircuitNumber(java.lang.String newCircuitNumber)
setCircuitNumber
in interface Branch
newCircuitNumber
- the new value of the 'Circuit Number' attribute.Branch.getCircuitNumber()
public boolean isFromSideMetered()
isFromSideMetered
in interface Branch
Branch.setFromSideMetered(boolean)
,
NetPackage.getBranch_FromSideMetered()
public void setFromSideMetered(boolean newFromSideMetered)
setFromSideMetered
in interface Branch
newFromSideMetered
- the new value of the 'From Side Metered' attribute.Branch.isFromSideMetered()
public java.lang.String getOriginalBranchId()
getOriginalBranchId
in interface Branch
Branch.setOriginalBranchId(String)
,
NetPackage.getBranch_OriginalBranchId()
public void setOriginalBranchId(java.lang.String newOriginalBranchId)
setOriginalBranchId
in interface Branch
newOriginalBranchId
- the new value of the 'Original Branch Id' attribute.Branch.getOriginalBranchId()
public Bus getFromBus()
getFromBus
in interface Branch
Branch.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 Branch
newFromBus
- the new value of the 'From Bus' reference.Branch.getFromBus()
public java.util.Optional<Bus> getOppositeBus(Bus bus)
getOppositeBus
in interface Branch
bus
- bus object
public boolean isFromBus(Bus bus)
public boolean isToBus(Bus bus)
public Bus getToBus()
getToBus
in interface Branch
Branch.setToBus(Bus)
,
NetPackage.getBranch_ToBus()
,
Bus.getToBranchList()
public java.lang.String getFromBusId()
getFromBusId
in interface Branch
public java.lang.String getToBusId()
getToBusId
in interface Branch
public 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 Branch
newToBus
- 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 Branch
name
- 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 Branch
name
- branch namedesc
- branch descriptioncirNumber
- branch circuit numberarea
- branch areazone
- branch zone
public boolean isGroundBranch()
isGroundBranch
in interface Branch
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 java.lang.String toString(double baseKva)
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