public class DclfAlgorithmImpl extends DcLoadflowImpl implements DclfAlgorithm
The following features are implemented:
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| Modifier and Type | Method and Description |
|---|---|
void |
addInjectBus(java.lang.String busId,
double percent) |
void |
addWithdrawBus(java.lang.String busId,
double percent) |
double |
branchAngleShiftFactor(java.lang.String injectBusId,
java.lang.String withdrawBusId,
AclfBranch monitorBranch) |
double |
branchAngleShiftFactor(java.lang.String injectBusId,
java.lang.String withdrawBusId,
AclfBranch monitorBranch,
Unit.UnitType angUnit) |
double |
calBusSensitivity(SenAnalysisType type,
java.lang.String injectBusId,
int busSortNumber)
get the sensitivity results (cached) after the calculation.
|
double |
calBusSensitivity(SenAnalysisType type,
java.lang.String injectBusId,
java.lang.String busId)
get the sensitivity results (cached) after the calculation.
|
boolean |
calculateDclf() |
double |
calGenShiftFactor(java.lang.String injectBusId,
AclfBranch branch)
with regarding to the slack bus, for one pu power injection at the injection bus, calculate
the portion of the power flow on the branch *
|
java.lang.Object |
calLineOutageDFactors(java.lang.String contId)
calculate inv[E - PTDF] per the IEEE paper.
|
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
java.lang.Object newValue) |
void |
eUnset(int featureID) |
double |
getAreaTransferFactor(AclfBranch branch) |
double |
getBranchClosureEquivPreFlow(AclfBranch branch) |
double |
getBranchClosurePTDFactor(AclfBranch branch) |
org.eclipse.emf.common.util.EList<SenAnalysisBus> |
getInjectBusList() |
BusSenAnalysisType |
getInjectBusType() |
double[] |
getLineOutageDFactors(AclfBranch monitorBranch,
java.lang.Object invE_PTDFObj)
It applies to multi-outage branches
|
LODFSenAnalysisType |
getLodfAnalysisType() |
org.eclipse.emf.common.util.EList<OutageBranch> |
getOutageBranchList() |
org.eclipse.emf.common.util.EList<SenAnalysisBus> |
getWithdrawBusList() |
BusSenAnalysisType |
getWithdrawBusType() |
double |
lineOutageDFactor(AclfBranch outageBranch,
AclfBranch transferBranch) |
double |
lossFactor(Area area,
java.lang.String injectBusId) |
double |
lossFactor(Area area,
java.lang.String injectBusId,
java.lang.String withdrawBusId) |
double |
lossFactor(java.lang.String injectBusId) |
double |
lossFactor(java.lang.String injectBusId,
java.lang.String withdrawBusId) |
double |
psXfrShiftFactor(AclfBranch psXfr,
AclfBranch monitorBranch) |
double |
psXfrShiftFactor(AclfBranch psXfr,
AclfBranch monitorBranch,
Unit.UnitType angUnit) |
double |
pTransferDistFactor(java.lang.String injectBusId,
AclfBranch branch) |
double |
pTransferDistFactor(java.lang.String injectBusId,
java.lang.String withdrawBusId,
AclfBranch branch) |
void |
setCacheSensitivity(boolean b) |
void |
setInjectBusType(BusSenAnalysisType newInjectBusType) |
void |
setLodfAnalysisType(LODFSenAnalysisType newLodfAnalysisType) |
void |
setWithdrawBusList(org.eclipse.emf.common.util.EList<SenAnalysisBus> list)
set the withdrawBusList
|
void |
setWithdrawBusType(BusSenAnalysisType newWithdrawBusType) |
java.lang.String |
toString() |
checkCondition, destroy, getAccFactor, getAdjMaxIterations, getAdjTolerance, getB11Matrix, getB1Matrix, getBranchFlow, getBranchFlow, getBranchFlow, getBusAngle, getBusAngle, getBusPower, getBusPowerInfoNet, getDclfSolver, getMismatch, isApplyAdjustment, isDclfCalculated, loading, loading, loss, ratingViolation, ratingViolation, setAccFactor, setAdjMaxIterations, setAdjTolerance, setApplyAdjustment, setBusAngle, setDclfCalculated, setDclfSolver, setNetwork, setRefBus, setRefBusgetNetwork, readData, writeDatacheckData, checkData, copy, copyRef, getDesc, getId, getName, getNumber, isActive, isStatus, setDesc, setId, setName, setNumber, setStatuseAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURIeAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnseteNotificationRequired, eNotifyequals, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckCondition, getAccFactor, getAdjMaxIterations, getAdjTolerance, getB11Matrix, getB1Matrix, getDclfSolver, isApplyAdjustment, isDclfCalculated, setAccFactor, setAdjMaxIterations, setAdjTolerance, setApplyAdjustment, setDclfCalculated, setDclfSolver, setRefBus, setRefBusgetNetwork, setNetworkcheckData, checkData, copy, copyRef, getDesc, getId, getName, getNumber, isActive, isStatus, setDesc, setId, setName, setNumber, setStatuseAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnseteAdapters, eDeliver, eNotify, eSetDeliverreadData, writeDatagetBranchFlow, getBranchFlow, getBranchFlow, getBusAngle, getBusAngle, getBusPower, getBusPowerInfoNet, getMismatch, loading, loading, loss, ratingViolation, ratingViolationpublic boolean calculateDclf()
throws InterpssException,
ReferenceBusException,
IpssNumericException
DcLoadflowImplcalculateDclf in interface DcLoadflowcalculateDclf in class DcLoadflowImplInterpssExceptionReferenceBusExceptionIpssNumericExceptionpublic BusSenAnalysisType getInjectBusType()
getInjectBusType in interface DclfAlgorithmBusSenAnalysisType,
DclfAlgorithm.setInjectBusType(BusSenAnalysisType),
DclfPackage.getDclfAlgorithm_InjectBusType()public void setInjectBusType(BusSenAnalysisType newInjectBusType)
setInjectBusType in interface DclfAlgorithmnewInjectBusType - the new value of the 'Inject Bus Type' attribute.BusSenAnalysisType,
DclfAlgorithm.getInjectBusType()public BusSenAnalysisType getWithdrawBusType()
getWithdrawBusType in interface DclfAlgorithmBusSenAnalysisType,
DclfAlgorithm.setWithdrawBusType(BusSenAnalysisType),
DclfPackage.getDclfAlgorithm_WithdrawBusType()public void setWithdrawBusType(BusSenAnalysisType newWithdrawBusType)
setWithdrawBusType in interface DclfAlgorithmnewWithdrawBusType - the new value of the 'Withdraw Bus Type' attribute.BusSenAnalysisType,
DclfAlgorithm.getWithdrawBusType()public LODFSenAnalysisType getLodfAnalysisType()
getLodfAnalysisType in interface DclfAlgorithmLODFSenAnalysisType,
DclfAlgorithm.setLodfAnalysisType(LODFSenAnalysisType),
DclfPackage.getDclfAlgorithm_LodfAnalysisType()public void setLodfAnalysisType(LODFSenAnalysisType newLodfAnalysisType)
setLodfAnalysisType in interface DclfAlgorithmnewLodfAnalysisType - the new value of the 'Lodf Analysis Type' attribute.LODFSenAnalysisType,
DclfAlgorithm.getLodfAnalysisType()public org.eclipse.emf.common.util.EList<SenAnalysisBus> getWithdrawBusList()
getWithdrawBusList in interface DclfAlgorithmDclfPackage.getDclfAlgorithm_WithdrawBusList()public void setWithdrawBusList(org.eclipse.emf.common.util.EList<SenAnalysisBus> list)
DclfAlgorithmsetWithdrawBusList in interface DclfAlgorithmpublic org.eclipse.emf.common.util.EList<SenAnalysisBus> getInjectBusList()
getInjectBusList in interface DclfAlgorithmDclfPackage.getDclfAlgorithm_InjectBusList()public org.eclipse.emf.common.util.EList<OutageBranch> getOutageBranchList()
getOutageBranchList in interface DclfAlgorithmDclfPackage.getDclfAlgorithm_OutageBranchList()public java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
eGet in interface org.eclipse.emf.ecore.InternalEObjecteGet in class DcLoadflowImplpublic void eSet(int featureID,
java.lang.Object newValue)
eSet in interface org.eclipse.emf.ecore.InternalEObjecteSet in class DcLoadflowImplpublic void eUnset(int featureID)
eUnset in interface org.eclipse.emf.ecore.InternalEObjecteUnset in class DcLoadflowImplpublic boolean eIsSet(int featureID)
eIsSet in interface org.eclipse.emf.ecore.InternalEObjecteIsSet in class DcLoadflowImplpublic java.lang.String toString()
toString in class DcLoadflowImplpublic void addWithdrawBus(java.lang.String busId,
double percent)
addWithdrawBus in interface DclfAlgorithmbusId - bus idpercent - contribuing percentage
public void addInjectBus(java.lang.String busId,
double percent)
addInjectBus in interface DclfAlgorithmbusId - bus idpercent - contributing percentage
public double psXfrShiftFactor(AclfBranch psXfr, AclfBranch monitorBranch) throws ReferenceBusException, BranchAngleSenException
psXfrShiftFactor in interface IBranchAngleShiftFactorReferenceBusExceptionBranchAngleSenExceptionpublic double psXfrShiftFactor(AclfBranch psXfr, AclfBranch monitorBranch, Unit.UnitType angUnit) throws ReferenceBusException, BranchAngleSenException
psXfrShiftFactor in interface IBranchAngleShiftFactorpsXfr - PsXfr branchmonitorBranch - monitoring branchangUnit - angle unit
ReferenceBusExceptionBranchAngleSenExceptionpublic double branchAngleShiftFactor(java.lang.String injectBusId,
java.lang.String withdrawBusId,
AclfBranch monitorBranch)
throws ReferenceBusException,
BranchAngleSenException
branchAngleShiftFactor in interface IBranchAngleShiftFactorinjectBusId - injection bus idwithdrawBusId - withdraw bus idmonitorBranch - monitoring branch
ReferenceBusExceptionBranchAngleSenExceptionpublic double branchAngleShiftFactor(java.lang.String injectBusId,
java.lang.String withdrawBusId,
AclfBranch monitorBranch,
Unit.UnitType angUnit)
throws ReferenceBusException,
BranchAngleSenException
branchAngleShiftFactor in interface IBranchAngleShiftFactorinjectBusId - injection bus idwithdrawBusId - withdraw bus idmonitorBranch - monitoring branchangUnit - angle unit
ReferenceBusExceptionBranchAngleSenExceptionpublic void setCacheSensitivity(boolean b)
setCacheSensitivity in interface ISensitivityb - boolean for cache sensitivity
public double calBusSensitivity(SenAnalysisType type, java.lang.String injectBusId, int busSortNumber) throws InterpssException, IpssNumericException, ReferenceBusException
calBusSensitivity in interface ISensitivitytype - sensitivity typeinjectBusId - injection bus idbusSortNumber - bus sort number
InterpssExceptionIpssNumericExceptionReferenceBusExceptionpublic double calBusSensitivity(SenAnalysisType type, java.lang.String injectBusId, java.lang.String busId) throws ReferenceBusException
calBusSensitivity in interface ISensitivitytype - sensitivity typeinjectBusId - injection bus idbusId - bus id
ReferenceBusExceptionpublic double calGenShiftFactor(java.lang.String injectBusId,
AclfBranch branch)
throws ReferenceBusException
calGenShiftFactor in interface ISensitivityinjectBusId - injection bus idbranch - the monitoring branch object
ReferenceBusExceptionpublic double getBranchClosurePTDFactor(AclfBranch branch) throws InterpssException, ReferenceBusException, IpssNumericException
getBranchClosurePTDFactor in interface ISensitivitybranch - the branch object
InterpssExceptionReferenceBusExceptionIpssNumericExceptionpublic double getBranchClosureEquivPreFlow(AclfBranch branch) throws InterpssException
getBranchClosureEquivPreFlow in interface ISensitivitybranch - the branch object
InterpssExceptionpublic double pTransferDistFactor(java.lang.String injectBusId,
java.lang.String withdrawBusId,
AclfBranch branch)
throws ReferenceBusException
pTransferDistFactor in interface IPowerTDFactorinjectBusId - injection bus idwithdrawBusId - withdraw bus idbranch - the monitoring branch
ReferenceBusExceptionpublic double pTransferDistFactor(java.lang.String injectBusId,
AclfBranch branch)
throws ReferenceBusException
pTransferDistFactor in interface IPowerTDFactorinjectBusId - injection bus idbranch - monitoring branch
ReferenceBusExceptionpublic double getAreaTransferFactor(AclfBranch branch) throws ReferenceBusException
getAreaTransferFactor in interface IAreaTDFactorbranch - monitoring branch
ReferenceBusExceptionpublic double lineOutageDFactor(AclfBranch outageBranch, AclfBranch transferBranch) throws ReferenceBusException
lineOutageDFactor in interface ILineOutageDFactoroutageBranch - outage branchtransferBranch - monitoring branch
ReferenceBusExceptionpublic java.lang.Object calLineOutageDFactors(java.lang.String contId)
throws InterpssException,
ReferenceBusException,
OutageConnectivityException,
IpssNumericException
calLineOutageDFactors in interface ILineOutageDFactorcontId - Contingency id for output message identification purpose
InterpssExceptionReferenceBusExceptionOutageConnectivityExceptionIpssNumericExceptionpublic double[] getLineOutageDFactors(AclfBranch monitorBranch, java.lang.Object invE_PTDFObj) throws ReferenceBusException, IpssNumericException
getLineOutageDFactors in interface ILineOutageDFactormonitorBranch - monitoring branchinvE_PTDFObj - the inversion of the PTDF matrix
ReferenceBusExceptionIpssNumericExceptionpublic double lossFactor(java.lang.String injectBusId)
throws ReferenceBusException,
InterpssException
lossFactor in interface ILossFactorinjectBusId - injection bus id
ReferenceBusExceptionInterpssExceptionpublic double lossFactor(java.lang.String injectBusId,
java.lang.String withdrawBusId)
throws ReferenceBusException,
InterpssException
lossFactor in interface ILossFactorinjectBusId - injection bus idwithdrawBusId - withdraw bus id
ReferenceBusExceptionInterpssExceptionpublic double lossFactor(Area area, java.lang.String injectBusId) throws ReferenceBusException, InterpssException
lossFactor in interface ILossFactorarea - area objectinjectBusId - injection bus id
ReferenceBusExceptionInterpssExceptionpublic double lossFactor(Area area, java.lang.String injectBusId, java.lang.String withdrawBusId) throws ReferenceBusException, InterpssException
lossFactor in interface ILossFactorarea - area objectinjectBusId - injection bus idwithdrawBusId - withdraw bus id
ReferenceBusExceptionInterpssException