public class DcLoadflowImpl extends NetworkRefImpl<AclfNetwork> implements DcLoadflow
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 |
|---|---|
boolean |
calculateDclf() |
boolean |
checkCondition() |
void |
destroy() |
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 |
getAccFactor() |
int |
getAdjMaxIterations() |
double |
getAdjTolerance() |
ISparseEqnDouble |
getB11Matrix() |
ISparseEqnDouble |
getB1Matrix() |
double |
getBranchFlow(AclfBranch branch) |
double |
getBranchFlow(AclfBranch branch,
Unit.UnitType unit) |
double |
getBranchFlow(java.lang.String fromBusId,
java.lang.String toBusId,
java.lang.String cirId,
Unit.UnitType unit) |
double |
getBusAngle(int busSortNumber)
get the Dclf results (cached) after the calculation.
|
double |
getBusAngle(java.lang.String busId) |
double |
getBusPower(AclfBus bus) |
double |
getBusPowerInfoNet(AclfBus bus) |
IDclfSolver |
getDclfSolver()
get Dclf solver object
|
double |
getMismatch(AclfBus bus) |
boolean |
isApplyAdjustment() |
boolean |
isDclfCalculated() |
double |
loading(AclfBranch branch,
double shiftedFlow,
SecAnalysisBranchRatingType type) |
double |
loading(AclfBranch branch,
SecAnalysisBranchRatingType type) |
double |
loss(Area area,
Unit.UnitType unit) |
boolean |
ratingViolation(AclfBranch branch,
double shiftedFlow,
SecAnalysisBranchRatingType type,
double threshold) |
boolean |
ratingViolation(AclfBranch branch,
SecAnalysisBranchRatingType type,
double threshold) |
void |
setAccFactor(double newAccFactor) |
void |
setAdjMaxIterations(int newAdjMaxIterations) |
void |
setAdjTolerance(double newAdjTolerance) |
void |
setApplyAdjustment(boolean newApplyAdjustment) |
void |
setBusAngle(java.lang.String busId,
double ang) |
void |
setDclfCalculated(boolean newDclfCalculated) |
void |
setDclfSolver(IDclfSolver solver) |
void |
setNetwork(AclfNetwork 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() |
getNetwork, 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, waitgetNetworkcheckData, 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, eSetDeliverpublic IDclfSolver getDclfSolver()
DcLoadflowgetDclfSolver in interface DcLoadflowpublic void setNetwork(AclfNetwork newNetwork)
setNetwork in interface NetworkRef<AclfNetwork>setNetwork in class NetworkRefImpl<AclfNetwork>newNetwork - the new value of the 'Network' reference.NetworkRef.getNetwork()public boolean isDclfCalculated()
isDclfCalculated in interface DcLoadflowDcLoadflow.setDclfCalculated(boolean),
DclfPackage.getDcLoadflow_DclfCalculated()public void setDclfCalculated(boolean newDclfCalculated)
setDclfCalculated in interface DcLoadflownewDclfCalculated - the new value of the 'Dclf Calculated' attribute.DcLoadflow.isDclfCalculated()public boolean isApplyAdjustment()
isApplyAdjustment in interface DcLoadflowDcLoadflow.setApplyAdjustment(boolean),
DclfPackage.getDcLoadflow_ApplyAdjustment()public void setApplyAdjustment(boolean newApplyAdjustment)
setApplyAdjustment in interface DcLoadflownewApplyAdjustment - the new value of the 'Apply Adjustment' attribute.DcLoadflow.isApplyAdjustment()public int getAdjMaxIterations()
getAdjMaxIterations in interface DcLoadflowDcLoadflow.setAdjMaxIterations(int),
DclfPackage.getDcLoadflow_AdjMaxIterations()public void setAdjMaxIterations(int newAdjMaxIterations)
setAdjMaxIterations in interface DcLoadflownewAdjMaxIterations - the new value of the 'Adj Max Iterations' attribute.DcLoadflow.getAdjMaxIterations()public double getAdjTolerance()
getAdjTolerance in interface DcLoadflowDcLoadflow.setAdjTolerance(double),
DclfPackage.getDcLoadflow_AdjTolerance()public void setAdjTolerance(double newAdjTolerance)
setAdjTolerance in interface DcLoadflownewAdjTolerance - the new value of the 'Adj Tolerance' attribute.DcLoadflow.getAdjTolerance()public double getAccFactor()
getAccFactor in interface DcLoadflowDcLoadflow.setAccFactor(double),
DclfPackage.getDcLoadflow_AccFactor()public void setAccFactor(double newAccFactor)
setAccFactor in interface DcLoadflownewAccFactor - the new value of the 'Acc Factor' attribute.DcLoadflow.getAccFactor()public boolean checkCondition()
checkCondition in interface DcLoadflowpublic boolean calculateDclf()
throws InterpssException,
ReferenceBusException,
IpssNumericException
calculateDclf in interface DcLoadflowInterpssExceptionReferenceBusExceptionIpssNumericExceptionpublic double getBusPower(AclfBus bus)
getBusPower in interface IDclfResultbus - bus object
public double getBusPowerInfoNet(AclfBus bus)
getBusPowerInfoNet in interface IDclfResultbus - bus object
public double getMismatch(AclfBus 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 void setBusAngle(java.lang.String busId,
double ang)
public double getBranchFlow(java.lang.String fromBusId,
java.lang.String toBusId,
java.lang.String cirId,
Unit.UnitType unit)
getBranchFlow in interface IDclfResultfromBusId - from bus idtoBusId - to bus idcirId - branch circuit idunit - branch flow unit
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 ISparseEqnDouble getB1Matrix() throws InterpssException
getB1Matrix in interface DcLoadflowInterpssExceptionpublic ISparseEqnDouble getB11Matrix() throws InterpssException
getB11Matrix in interface DcLoadflowInterpssExceptionpublic void setRefBus(java.lang.String busId)
setRefBus in interface DcLoadflowbusId - bus id
public void setRefBus(java.lang.String[] busIdAry)
setRefBus in interface DcLoadflowbusIdAry - a list of bus ids which should not be set as the reference bus.
public void setDclfSolver(IDclfSolver solver)
setDclfSolver in interface DcLoadflowpublic double loss(Area area, Unit.UnitType unit) throws InterpssException
loss in interface IDclfResultarea - the area objectunit - loss unit
InterpssExceptionpublic boolean ratingViolation(AclfBranch branch, double shiftedFlow, SecAnalysisBranchRatingType type, double threshold)
ratingViolation in interface IDclfResultbranch - the branch objectshiftedFlow - threshold for the violation check in putype - branch rating typethreshold - threshold for the violation check in pu
public boolean ratingViolation(AclfBranch branch, SecAnalysisBranchRatingType type, double threshold)
ratingViolation in interface IDclfResultbranch - the branch objecttype - branch rating typethreshold - threshold for the violation check in pu
public double loading(AclfBranch branch, double shiftedFlow, SecAnalysisBranchRatingType type)
loading in interface IDclfResultbranch - the branch objectshiftedFlow - threshold for the violation check in putype - branch rating type
public double loading(AclfBranch branch, SecAnalysisBranchRatingType type)
loading in interface IDclfResultbranch - the branch objecttype - branch rating type
public void destroy()
public java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
eGet in interface org.eclipse.emf.ecore.InternalEObjecteGet in class NetworkRefImpl<AclfNetwork>public void eSet(int featureID,
java.lang.Object newValue)
eSet in interface org.eclipse.emf.ecore.InternalEObjecteSet in class NetworkRefImpl<AclfNetwork>public void eUnset(int featureID)
eUnset in interface org.eclipse.emf.ecore.InternalEObjecteUnset in class NetworkRefImpl<AclfNetwork>public boolean eIsSet(int featureID)
eIsSet in interface org.eclipse.emf.ecore.InternalEObjecteIsSet in class NetworkRefImpl<AclfNetwork>public java.lang.String toString()
toString in class NameTagImpl