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.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 |
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. |
networkdesc, 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 |
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) |
getNetworkcheckData, checkData, 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, 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, waitgetNetworkcheckData, checkData, 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 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 DclfAlgorithmpublic IDclfSolver getDclfSolver()
getDclfSolver in interface DclfAlgorithmDclfAlgorithm.setDclfSolver(IDclfSolver),
DclfAlgorithmPackage.getDclfAlgorithm_DclfSolver()public void setDclfSolver(IDclfSolver newDclfSolver)
setDclfSolver in interface DclfAlgorithmnewDclfSolver - 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 DclfAlgorithmDclfAlgorithm.setDclfCalculated(boolean),
DclfAlgorithmPackage.getDclfAlgorithm_DclfCalculated()public void setDclfCalculated(boolean newDclfCalculated)
setDclfCalculated in interface DclfAlgorithmnewDclfCalculated - the new value of the 'Dclf Calculated' attribute.DclfAlgorithm.isDclfCalculated()public boolean isApplyAdjustment()
isApplyAdjustment in interface DclfAlgorithmDclfAlgorithm.setApplyAdjustment(boolean),
DclfAlgorithmPackage.getDclfAlgorithm_ApplyAdjustment()public void setApplyAdjustment(boolean newApplyAdjustment)
setApplyAdjustment in interface DclfAlgorithmnewApplyAdjustment - the new value of the 'Apply Adjustment' attribute.DclfAlgorithm.isApplyAdjustment()public int getAdjMaxIterations()
getAdjMaxIterations in interface DclfAlgorithmDclfAlgorithm.setAdjMaxIterations(int),
DclfAlgorithmPackage.getDclfAlgorithm_AdjMaxIterations()public void setAdjMaxIterations(int newAdjMaxIterations)
setAdjMaxIterations in interface DclfAlgorithmnewAdjMaxIterations - the new value of the 'Adj Max Iterations' attribute.DclfAlgorithm.getAdjMaxIterations()public double getAdjTolerance()
getAdjTolerance in interface DclfAlgorithmDclfAlgorithm.setAdjTolerance(double),
DclfAlgorithmPackage.getDclfAlgorithm_AdjTolerance()public void setAdjTolerance(double newAdjTolerance)
setAdjTolerance in interface DclfAlgorithmnewAdjTolerance - the new value of the 'Adj Tolerance' attribute.DclfAlgorithm.getAdjTolerance()public double getAccFactor()
getAccFactor in interface DclfAlgorithmDclfAlgorithm.setAccFactor(double),
DclfAlgorithmPackage.getDclfAlgorithm_AccFactor()public void setAccFactor(double newAccFactor)
setAccFactor in interface DclfAlgorithmnewAccFactor - the new value of the 'Acc Factor' attribute.DclfAlgorithm.getAccFactor()public org.eclipse.emf.common.util.EList<DclfAlgoBus> getDclfAlgoBusList()
getDclfAlgoBusList in interface DclfAlgorithmDclfAlgorithmPackage.getDclfAlgorithm_DclfAlgoBusList()public org.eclipse.emf.common.util.EList<DclfAlgoBranch> getDclfAlgoBranchList()
getDclfAlgoBranchList in interface DclfAlgorithmDclfAlgorithmPackage.getDclfAlgorithm_DclfAlgoBranchList()public DclfAlgoBus getDclfAlgoBus(java.lang.String busId)
getDclfAlgoBus in interface DclfAlgorithmbusId - bus id
public DclfAlgoBranch getDclfAlgoBranch(java.lang.String branchId)
getDclfAlgoBranch in interface DclfAlgorithmbranchId - bus id
public boolean removeDclfAlgoBus(java.lang.String busId)
removeDclfAlgoBus in interface DclfAlgorithmbusId - bus id
public boolean removeDclfAlgoBranch(java.lang.String branchId)
removeDclfAlgoBranch in interface DclfAlgorithmbranchId - bus id
public boolean calculateDclf(DclfMethod method)
calculateDclf in interface DclfAlgorithmmethod - Dclf method
public boolean calculateDclf()
calculateDclf in interface DclfAlgorithmpublic boolean calculateDclf(boolean reset)
calculateDclf in interface DclfAlgorithmreset - 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 DclfAlgorithmmethod - 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 DclfAlgorithmclearGenLoadAdjInfo - if true, clear all Dclf Gen/Load adjustment info
public void setRefBus(java.lang.String busId)
setRefBus in interface DclfAlgorithmbusId - bus id
public void setRefBus(java.lang.String[] busIdAry)
setRefBus in interface DclfAlgorithmbusIdAry - a list of bus ids which should not be set as the reference bus.
public double getMismatch(DclfAlgoBus bus)
getMismatch in interface IDclfResultbus - bus object
public double getBusAngle(int busSortNumber)
getBusAngle in interface IDclfResultbusSortNumber - bus sort number
public double getBusAngle(java.lang.String busId)
getBusAngle in interface IDclfResultbusId - bus id
public double getBusPower(java.lang.String busId)
getBusPower in interface IDclfResultbusId - bus id
public double getBranchFlow(java.lang.String branchId)
getBranchFlow in interface IDclfResultbranchId - from bus id
public double getBranchFlow(AclfBranch branch, Unit.UnitType unit)
getBranchFlow in interface IDclfResultbranch - the branch objectunit - branch flow unit
public double getBranchFlow(AclfBranch branch)
getBranchFlow in interface IDclfResultbranch - the branch object
public boolean checkCondition()
checkCondition in interface DclfAlgorithmpublic void distributeLoad(double totalLoad)
distributeLoad in interface DclfAlgorithmtotalLoad - if set to true, reset Dclf Algorithm, for example, BMatrix, for the dc loadflow calculation.
public double getBusPower(DclfAlgoBus dclfBus)
getBusPower in interface IDclfResultdclfBus - bus object
public double getBusPowerInfoNet(java.lang.String busId)
getBusPowerInfoNet in interface IDclfResultbusId - bus id
public double getBusPowerInfoNet(DclfAlgoBus dclfBus)
getBusPowerInfoNet in interface IDclfResultdclfBus - bus object
public double loss(Area area, Unit.UnitType unit) throws InterpssException
loss in interface IDclfResultarea - the area objectunit - loss unit
InterpssExceptionpublic double calTotalGen()
calTotalGen in interface IDclfResultpublic double calTotalLoad()
calTotalLoad in interface IDclfResultpublic boolean ratingViolation(DclfAlgoBranch dclfBranch, double shiftedFlow, CABranchRatingType type, double threshold)
ratingViolation in interface IDclfResultdclfBranch - 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 IDclfResultdclfBranch - 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 IDclfResultdclfBranch - the branch objectshiftedFlow - threshold for the violation check in putype - branch rating type
public double loading(DclfAlgoBranch dclfBranch, CABranchRatingType type)
loading in interface IDclfResultdclfBranch - the branch objecttype - branch rating type
public java.util.Map<java.lang.String,DclfAlgoBus> getDclfAlgoBusIdLookupTable()
getDclfAlgoBusIdLookupTable in interface IDclfAlgoLookuppublic java.util.Map<java.lang.String,DclfAlgoBranch> getDclfAlgoBranchIdLookupTable()
getDclfAlgoBranchIdLookupTable in interface IDclfAlgoLookuppublic java.util.Map<java.lang.String,DclfAlgoGen> getDclfAlgoGenNameLookupTable()
getDclfAlgoGenNameLookupTable in interface IDclfAlgoLookuppublic java.util.Map<java.lang.String,DclfAlgoLoad> getDclfAlgoLoadNameLookupTable()
getDclfAlgoLoadNameLookupTable in interface IDclfAlgoLookuppublic void rebuildLookupRefRelationship()
rebuildLookupRefRelationship in interface IDclfAlgoLookuppublic ISparseEqnDouble getB1Matrix() throws InterpssException
getB1Matrix in interface DclfAlgorithmInterpssExceptionpublic ISparseEqnDouble getB11Matrix() throws InterpssException
getB11Matrix in interface DclfAlgorithmInterpssExceptionprotected 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.BasicEObjectImplpublic java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
eGet in interface org.eclipse.emf.ecore.InternalEObjecteGet in class NetworkRefImpl<BaseAclfNetwork<?,?>>public void eSet(int featureID,
java.lang.Object newValue)
eSet in interface org.eclipse.emf.ecore.InternalEObjecteSet in class NetworkRefImpl<BaseAclfNetwork<?,?>>public void eUnset(int featureID)
eUnset in interface org.eclipse.emf.ecore.InternalEObjecteUnset in class NetworkRefImpl<BaseAclfNetwork<?,?>>public boolean eIsSet(int featureID)
eIsSet in interface org.eclipse.emf.ecore.InternalEObjecteIsSet in class NetworkRefImpl<BaseAclfNetwork<?,?>>public java.lang.String toString()
toString in class NameTagImplpublic DclfAlgorithm deepCopy()
deepCopy in interface DclfAlgorithmpublic void writeData(com.hazelcast.nio.ObjectDataOutput out)
throws java.io.IOException
NameTagImplwriteData in interface com.hazelcast.nio.serialization.DataSerializablewriteData in class NetworkRefImpl<BaseAclfNetwork<?,?>>java.io.IOExceptionpublic void readData(com.hazelcast.nio.ObjectDataInput in)
throws java.io.IOException
NameTagImplreadData in interface com.hazelcast.nio.serialization.DataSerializablereadData in class NetworkRefImpl<BaseAclfNetwork<?,?>>java.io.IOException