public class DclfAlgorithmImpl extends NetworkRefImpl<BaseAclfNetwork<?,?>> implements DclfAlgorithm
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 |
ACC_FACTOR_EDEFAULT
The default value of the '
Acc Factor ' attribute. |
protected double |
accFactor
The cached value of the '
Acc Factor ' attribute. |
protected static int |
ADJ_MAX_ITERATIONS_EDEFAULT
The default value of the '
Adj Max Iterations ' attribute. |
protected static double |
ADJ_TOLERANCE_EDEFAULT
The default value of the '
Adj Tolerance ' attribute. |
protected int |
adjMaxIterations
The cached value of the '
Adj Max Iterations ' attribute. |
protected double |
adjTolerance
The cached value of the '
Adj Tolerance ' attribute. |
protected static boolean |
APPLY_ADJUSTMENT_EDEFAULT
The default value of the '
Apply Adjustment ' attribute. |
protected boolean |
applyAdjustment
The cached value of the '
Apply Adjustment ' attribute. |
protected static boolean |
DCLF_CALCULATED_EDEFAULT
The default value of the '
Dclf Calculated ' attribute. |
protected static IDclfSolver |
DCLF_SOLVER_EDEFAULT
The default value of the '
Dclf Solver ' attribute. |
protected org.eclipse.emf.common.util.EList<DclfAlgoBranch> |
dclfAlgoBranchList
The cached value of the '
Dclf Algo Branch List ' containment reference list. |
protected org.eclipse.emf.common.util.EList<DclfAlgoBus> |
dclfAlgoBusList
The cached value of the '
Dclf Algo Bus List ' containment reference list. |
protected boolean |
dclfCalculated
The cached value of the '
Dclf Calculated ' attribute. |
protected IDclfSolver |
dclfSolver
The cached value of the '
Dclf Solver ' attribute. |
network
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 |
DclfAlgorithmImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
calculateDclf() |
boolean |
calculateDclf(boolean reset) |
boolean |
calculateDclf(DclfMethod method) |
boolean |
calculateDclf(DclfMethod method,
boolean reset) |
double |
calTotalGen() |
double |
calTotalLoad() |
boolean |
checkCondition() |
DclfAlgorithm |
deepCopy() |
void |
distributeLoad(double totalLoad) |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
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 |
getAccFactor() |
AclfNetwork |
getAclfNet() |
int |
getAdjMaxIterations() |
double |
getAdjTolerance() |
ISparseEqnDouble |
getB11Matrix() |
ISparseEqnDouble |
getB1Matrix() |
double |
getBranchFlow(AclfBranch branch) |
double |
getBranchFlow(AclfBranch branch,
Unit.UnitType unit) |
double |
getBranchFlow(java.lang.String branchId) |
double |
getBusAngle(int busSortNumber)
get the Dclf results (cached) after the calculation.
|
double |
getBusAngle(java.lang.String busId) |
double |
getBusPower(DclfAlgoBus dclfBus) |
double |
getBusPower(java.lang.String busId) |
double |
getBusPowerInfoNet(DclfAlgoBus dclfBus) |
double |
getBusPowerInfoNet(java.lang.String busId) |
DclfAlgoBranch |
getDclfAlgoBranch(java.lang.String branchId) |
java.util.Map<java.lang.String,DclfAlgoBranch> |
getDclfAlgoBranchIdLookupTable() |
org.eclipse.emf.common.util.EList<DclfAlgoBranch> |
getDclfAlgoBranchList() |
DclfAlgoBus |
getDclfAlgoBus(java.lang.String busId) |
java.util.Map<java.lang.String,DclfAlgoBus> |
getDclfAlgoBusIdLookupTable() |
org.eclipse.emf.common.util.EList<DclfAlgoBus> |
getDclfAlgoBusList() |
java.util.Map<java.lang.String,DclfAlgoGen> |
getDclfAlgoGenNameLookupTable() |
java.util.Map<java.lang.String,DclfAlgoLoad> |
getDclfAlgoLoadNameLookupTable() |
IDclfSolver |
getDclfSolver() |
double |
getMismatch(DclfAlgoBus bus) |
boolean |
isApplyAdjustment() |
boolean |
isDclfCalculated() |
double |
loading(DclfAlgoBranch dclfBranch,
CABranchRatingType type) |
double |
loading(DclfAlgoBranch dclfBranch,
double shiftedFlow,
CABranchRatingType type) |
double |
loss(Area area,
Unit.UnitType unit) |
boolean |
ratingViolation(DclfAlgoBranch dclfBranch,
CABranchRatingType type,
double threshold) |
boolean |
ratingViolation(DclfAlgoBranch dclfBranch,
double shiftedFlow,
CABranchRatingType type,
double threshold) |
void |
readData(com.hazelcast.nio.ObjectDataInput in) |
void |
rebuildLookupRefRelationship() |
boolean |
removeDclfAlgoBranch(java.lang.String branchId) |
boolean |
removeDclfAlgoBus(java.lang.String busId) |
void |
setAccFactor(double newAccFactor) |
void |
setAdjMaxIterations(int newAdjMaxIterations) |
void |
setAdjTolerance(double newAdjTolerance) |
void |
setApplyAdjustment(boolean newApplyAdjustment) |
void |
setDclfCalculated(boolean newDclfCalculated) |
void |
setDclfSolver(IDclfSolver newDclfSolver) |
void |
setNetwork(BaseAclfNetwork<?,?> newNetwork)
This is specialized for the more specific type known in this context.
|
void |
setRefBus(java.lang.String busId) |
void |
setRefBus(java.lang.String[] busIdAry) |
java.lang.String |
toString() |
boolean |
transfer2AclfNet(boolean clearGenLoadAdjInfo) |
void |
writeData(com.hazelcast.nio.ObjectDataOutput out) |
getNetwork
checkData, 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, 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
getNetwork
checkData, 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 boolean DCLF_CALCULATED_EDEFAULT
Dclf Calculated
' attribute.
isDclfCalculated()
,
Constant Field Valuesprotected boolean dclfCalculated
Dclf Calculated
' attribute.
isDclfCalculated()
protected static final boolean APPLY_ADJUSTMENT_EDEFAULT
Apply Adjustment
' attribute.
isApplyAdjustment()
,
Constant Field Valuesprotected boolean applyAdjustment
Apply Adjustment
' attribute.
isApplyAdjustment()
protected static final int ADJ_MAX_ITERATIONS_EDEFAULT
Adj Max Iterations
' attribute.
getAdjMaxIterations()
,
Constant Field Valuesprotected int adjMaxIterations
Adj Max Iterations
' attribute.
getAdjMaxIterations()
protected static final double ADJ_TOLERANCE_EDEFAULT
Adj Tolerance
' attribute.
getAdjTolerance()
,
Constant Field Valuesprotected double adjTolerance
Adj Tolerance
' attribute.
getAdjTolerance()
protected static final double ACC_FACTOR_EDEFAULT
Acc Factor
' attribute.
getAccFactor()
,
Constant Field Valuesprotected double accFactor
Acc Factor
' attribute.
getAccFactor()
protected static final IDclfSolver DCLF_SOLVER_EDEFAULT
Dclf Solver
' attribute.
getDclfSolver()
protected IDclfSolver dclfSolver
Dclf Solver
' attribute.
getDclfSolver()
protected org.eclipse.emf.common.util.EList<DclfAlgoBus> dclfAlgoBusList
Dclf Algo Bus List
' containment reference list.
getDclfAlgoBusList()
protected org.eclipse.emf.common.util.EList<DclfAlgoBranch> dclfAlgoBranchList
Dclf Algo Branch List
' containment reference list.
getDclfAlgoBranchList()
public AclfNetwork getAclfNet()
getAclfNet
in interface DclfAlgorithm
public IDclfSolver getDclfSolver()
getDclfSolver
in interface DclfAlgorithm
DclfAlgorithm.setDclfSolver(IDclfSolver)
,
DclfAlgorithmPackage.getDclfAlgorithm_DclfSolver()
public void setDclfSolver(IDclfSolver newDclfSolver)
setDclfSolver
in interface DclfAlgorithm
newDclfSolver
- the new value of the 'Dclf Solver' attribute.DclfAlgorithm.getDclfSolver()
public void setNetwork(BaseAclfNetwork<?,?> newNetwork)
setNetwork
in interface NetworkRef<BaseAclfNetwork<?,?>>
setNetwork
in class NetworkRefImpl<BaseAclfNetwork<?,?>>
newNetwork
- the new value of the 'Network' reference.NetworkRef.getNetwork()
public boolean isDclfCalculated()
isDclfCalculated
in interface DclfAlgorithm
DclfAlgorithm.setDclfCalculated(boolean)
,
DclfAlgorithmPackage.getDclfAlgorithm_DclfCalculated()
public void setDclfCalculated(boolean newDclfCalculated)
setDclfCalculated
in interface DclfAlgorithm
newDclfCalculated
- the new value of the 'Dclf Calculated' attribute.DclfAlgorithm.isDclfCalculated()
public boolean isApplyAdjustment()
isApplyAdjustment
in interface DclfAlgorithm
DclfAlgorithm.setApplyAdjustment(boolean)
,
DclfAlgorithmPackage.getDclfAlgorithm_ApplyAdjustment()
public void setApplyAdjustment(boolean newApplyAdjustment)
setApplyAdjustment
in interface DclfAlgorithm
newApplyAdjustment
- the new value of the 'Apply Adjustment' attribute.DclfAlgorithm.isApplyAdjustment()
public int getAdjMaxIterations()
getAdjMaxIterations
in interface DclfAlgorithm
DclfAlgorithm.setAdjMaxIterations(int)
,
DclfAlgorithmPackage.getDclfAlgorithm_AdjMaxIterations()
public void setAdjMaxIterations(int newAdjMaxIterations)
setAdjMaxIterations
in interface DclfAlgorithm
newAdjMaxIterations
- the new value of the 'Adj Max Iterations' attribute.DclfAlgorithm.getAdjMaxIterations()
public double getAdjTolerance()
getAdjTolerance
in interface DclfAlgorithm
DclfAlgorithm.setAdjTolerance(double)
,
DclfAlgorithmPackage.getDclfAlgorithm_AdjTolerance()
public void setAdjTolerance(double newAdjTolerance)
setAdjTolerance
in interface DclfAlgorithm
newAdjTolerance
- the new value of the 'Adj Tolerance' attribute.DclfAlgorithm.getAdjTolerance()
public double getAccFactor()
getAccFactor
in interface DclfAlgorithm
DclfAlgorithm.setAccFactor(double)
,
DclfAlgorithmPackage.getDclfAlgorithm_AccFactor()
public void setAccFactor(double newAccFactor)
setAccFactor
in interface DclfAlgorithm
newAccFactor
- the new value of the 'Acc Factor' attribute.DclfAlgorithm.getAccFactor()
public org.eclipse.emf.common.util.EList<DclfAlgoBus> getDclfAlgoBusList()
getDclfAlgoBusList
in interface DclfAlgorithm
DclfAlgorithmPackage.getDclfAlgorithm_DclfAlgoBusList()
public org.eclipse.emf.common.util.EList<DclfAlgoBranch> getDclfAlgoBranchList()
getDclfAlgoBranchList
in interface DclfAlgorithm
DclfAlgorithmPackage.getDclfAlgorithm_DclfAlgoBranchList()
public DclfAlgoBus getDclfAlgoBus(java.lang.String busId)
getDclfAlgoBus
in interface DclfAlgorithm
busId
- bus id
public DclfAlgoBranch getDclfAlgoBranch(java.lang.String branchId)
getDclfAlgoBranch
in interface DclfAlgorithm
branchId
- bus id
public boolean removeDclfAlgoBus(java.lang.String busId)
removeDclfAlgoBus
in interface DclfAlgorithm
busId
- bus id
public boolean removeDclfAlgoBranch(java.lang.String branchId)
removeDclfAlgoBranch
in interface DclfAlgorithm
branchId
- bus id
public boolean calculateDclf(DclfMethod method)
calculateDclf
in interface DclfAlgorithm
method
- Dclf method
public boolean calculateDclf()
calculateDclf
in interface DclfAlgorithm
public boolean calculateDclf(boolean reset)
calculateDclf
in interface DclfAlgorithm
reset
- if set to true, reset Dclf Algorithm, for example, BMatrix, for the dc loadflow calculation.
public boolean calculateDclf(DclfMethod method, boolean reset)
calculateDclf
in interface DclfAlgorithm
method
- Dclf methodreset
- if set to true, reset Dclf Algorithm, for example, BMatrix, for the dc loadflow calculation.
public boolean transfer2AclfNet(boolean clearGenLoadAdjInfo)
transfer2AclfNet
in interface DclfAlgorithm
clearGenLoadAdjInfo
- if true, clear all Dclf Gen/Load adjustment info
public void setRefBus(java.lang.String busId)
setRefBus
in interface DclfAlgorithm
busId
- bus id
public void setRefBus(java.lang.String[] busIdAry)
setRefBus
in interface DclfAlgorithm
busIdAry
- a list of bus ids which should not be set as the reference bus.
public double getMismatch(DclfAlgoBus bus)
getMismatch
in interface IDclfResult
bus
- bus object
public double getBusAngle(int busSortNumber)
getBusAngle
in interface IDclfResult
busSortNumber
- bus sort number
public double getBusAngle(java.lang.String busId)
getBusAngle
in interface IDclfResult
busId
- bus id
public double getBusPower(java.lang.String busId)
getBusPower
in interface IDclfResult
busId
- bus id
public double getBranchFlow(java.lang.String branchId)
getBranchFlow
in interface IDclfResult
branchId
- from bus id
public double getBranchFlow(AclfBranch branch, Unit.UnitType unit)
getBranchFlow
in interface IDclfResult
branch
- the branch objectunit
- branch flow unit
public double getBranchFlow(AclfBranch branch)
getBranchFlow
in interface IDclfResult
branch
- the branch object
public boolean checkCondition()
checkCondition
in interface DclfAlgorithm
public void distributeLoad(double totalLoad)
distributeLoad
in interface DclfAlgorithm
totalLoad
- if set to true, reset Dclf Algorithm, for example, BMatrix, for the dc loadflow calculation.
public double getBusPower(DclfAlgoBus dclfBus)
getBusPower
in interface IDclfResult
dclfBus
- bus object
public double getBusPowerInfoNet(java.lang.String busId)
getBusPowerInfoNet
in interface IDclfResult
busId
- bus id
public double getBusPowerInfoNet(DclfAlgoBus dclfBus)
getBusPowerInfoNet
in interface IDclfResult
dclfBus
- bus object
public double loss(Area area, Unit.UnitType unit) throws InterpssException
loss
in interface IDclfResult
area
- the area objectunit
- loss unit
InterpssException
public double calTotalGen()
calTotalGen
in interface IDclfResult
public double calTotalLoad()
calTotalLoad
in interface IDclfResult
public boolean ratingViolation(DclfAlgoBranch dclfBranch, double shiftedFlow, CABranchRatingType type, double threshold)
ratingViolation
in interface IDclfResult
dclfBranch
- the branch objectshiftedFlow
- threshold for the violation check in putype
- branch rating typethreshold
- threshold for the violation check in pu
public boolean ratingViolation(DclfAlgoBranch dclfBranch, CABranchRatingType type, double threshold)
ratingViolation
in interface IDclfResult
dclfBranch
- the branch objecttype
- branch rating typethreshold
- threshold for the violation check in pu
public double loading(DclfAlgoBranch dclfBranch, double shiftedFlow, CABranchRatingType type)
loading
in interface IDclfResult
dclfBranch
- the branch objectshiftedFlow
- threshold for the violation check in putype
- branch rating type
public double loading(DclfAlgoBranch dclfBranch, CABranchRatingType type)
loading
in interface IDclfResult
dclfBranch
- the branch objecttype
- branch rating type
public java.util.Map<java.lang.String,DclfAlgoBus> getDclfAlgoBusIdLookupTable()
getDclfAlgoBusIdLookupTable
in interface IDclfAlgoLookup
public java.util.Map<java.lang.String,DclfAlgoBranch> getDclfAlgoBranchIdLookupTable()
getDclfAlgoBranchIdLookupTable
in interface IDclfAlgoLookup
public java.util.Map<java.lang.String,DclfAlgoGen> getDclfAlgoGenNameLookupTable()
getDclfAlgoGenNameLookupTable
in interface IDclfAlgoLookup
public java.util.Map<java.lang.String,DclfAlgoLoad> getDclfAlgoLoadNameLookupTable()
getDclfAlgoLoadNameLookupTable
in interface IDclfAlgoLookup
public void rebuildLookupRefRelationship()
rebuildLookupRefRelationship
in interface IDclfAlgoLookup
public ISparseEqnDouble getB1Matrix() throws InterpssException
getB1Matrix
in interface DclfAlgorithm
InterpssException
public ISparseEqnDouble getB11Matrix() throws InterpssException
getB11Matrix
in interface DclfAlgorithm
InterpssException
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class NetworkRefImpl<BaseAclfNetwork<?,?>>
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 NetworkRefImpl<BaseAclfNetwork<?,?>>
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class NetworkRefImpl<BaseAclfNetwork<?,?>>
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class NetworkRefImpl<BaseAclfNetwork<?,?>>
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class NetworkRefImpl<BaseAclfNetwork<?,?>>
public java.lang.String toString()
toString
in class NameTagImpl
public DclfAlgorithm deepCopy()
deepCopy
in interface DclfAlgorithm
public void writeData(com.hazelcast.nio.ObjectDataOutput out) throws java.io.IOException
NameTagImpl
writeData
in interface com.hazelcast.nio.serialization.DataSerializable
writeData
in class NetworkRefImpl<BaseAclfNetwork<?,?>>
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 NetworkRefImpl<BaseAclfNetwork<?,?>>
java.io.IOException