public class DynamicSimuAlgorithmImpl extends NetworkRefImpl<BaseDStabNetwork<?,?>> implements DynamicSimuAlgorithm
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 LoadflowAlgorithm |
aclfAlgorithm
The cached value of the '
Aclf Algorithm' containment reference. |
protected static boolean |
DISABLE_DYNAMIC_EVENT_EDEFAULT
The default value of the '
Disable Dynamic Event' attribute. |
protected boolean |
disableDynamicEvent
The cached value of the '
Disable Dynamic Event' attribute. |
protected static IpssMsgListener |
DYNAMIC_EVENT_HANDLER_EDEFAULT
The default value of the '
Dynamic Event Handler' attribute. |
protected IpssMsgListener |
dynamicEventHandler
The cached value of the '
Dynamic Event Handler' attribute. |
protected static boolean |
OUTPUT_FILTERED_EDEFAULT
The default value of the '
Output Filtered' attribute. |
protected static int |
OUTPUT_PER_STEPS_EDEFAULT
The default value of the '
Output Per Steps' attribute. |
protected static java.lang.String[] |
OUTPUT_VAR_ID_LIST_EDEFAULT
The default value of the '
Output Var Id List' attribute. |
protected boolean |
outputFiltered
The cached value of the '
Output Filtered' attribute. |
protected int |
outputPerSteps
The cached value of the '
Output Per Steps' attribute. |
protected java.lang.String[] |
outputVarIdList
The cached value of the '
Output Var Id List' attribute. |
protected Machine |
refMachine
The cached value of the '
Ref Machine' reference. |
protected static IDStabSimuOutputHandler |
SCRIPT_OUTPUT_HANDLER_EDEFAULT
The default value of the '
Script Output Handler' attribute. |
protected IDStabSimuOutputHandler |
scriptOutputHandler
The cached value of the '
Script Output Handler' attribute. |
protected static DynamicSimuMethod |
SIMU_METHOD_EDEFAULT
The default value of the '
Simu Method' attribute. |
protected static IDStabSimuOutputHandler |
SIMU_OUTPUT_HANDLER_EDEFAULT
The default value of the '
Simu Output Handler' attribute. |
protected static double |
SIMU_STEP_SEC_EDEFAULT
The default value of the '
Simu Step Sec' attribute. |
protected DynamicSimuMethod |
simuMethod
The cached value of the '
Simu Method' attribute. |
protected IDStabSimuOutputHandler |
simuOutputHandler
The cached value of the '
Simu Output Handler' attribute. |
protected double |
simuStepSec
The cached value of the '
Simu Step Sec' attribute. |
protected static double |
TOTAL_SIMU_TIME_SEC_EDEFAULT
The default value of the '
Total Simu Time Sec' attribute. |
protected double |
totalSimuTimeSec
The cached value of the '
Total Simu Time Sec' 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 |
DynamicSimuAlgorithmImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.emf.common.notify.NotificationChain |
basicSetAclfAlgorithm(LoadflowAlgorithm newAclfAlgorithm,
org.eclipse.emf.common.notify.NotificationChain msgs) |
boolean |
checkData(DataCheckConfiguration config) |
boolean |
createBranchFault(java.lang.String fromBusId,
java.lang.String toBusId,
java.lang.String circuitId,
double startTime,
double fromClearTime,
double toClearTime,
SimpleFaultCode faultCode,
org.apache.commons.math3.complex.Complex zLG,
org.apache.commons.math3.complex.Complex zLL) |
boolean |
createBusFault(java.lang.String faultBusId,
double startTime,
double durationTime,
SimpleFaultCode faultCode,
org.apache.commons.math3.complex.Complex Zlg,
org.apache.commons.math3.complex.Complex Zll)
Create a bus fault and add it as a dynamic event to the dstab network
Required information: fault bus id, start time in sec, duration time in sec,
fault code to specify the fault type, as well as fault impedance
|
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) |
LoadflowAlgorithm |
getAclfAlgorithm() |
IpssMsgListener |
getDynamicEventHandler() |
int |
getOutputPerSteps() |
int |
getOutPutPerSteps() |
java.lang.String[] |
getOutputVarIdList() |
Machine |
getRefMachine() |
IDStabSimuOutputHandler |
getScriptOutputHandler() |
DynamicSimuMethod |
getSimuMethod() |
IDStabSimuOutputHandler |
getSimuOutputHandler() |
double |
getSimuStepSec() |
double |
getSimuTime() |
double |
getTotalSimuTimeSec() |
boolean |
initialization() |
boolean |
isDisableDynamicEvent() |
boolean |
isOutputFiltered() |
boolean |
performSimulation() |
boolean |
performSimulationTo(double toTimeSec) |
void |
setAclfAlgorithm(LoadflowAlgorithm newAclfAlgorithm) |
void |
setDisableDynamicEvent(boolean newDisableDynamicEvent) |
void |
setDynamicEventHandler(IpssMsgListener newDynamicEventHandler) |
void |
setNetwork(BaseDStabNetwork<?,?> net) |
void |
setOutputFiltered(boolean newOutputFiltered) |
void |
setOutputPerSteps(int newOutputPerSteps) |
void |
setOutPutPerSteps(int outputPerSteps) |
void |
setOutputVarIdList(java.lang.String[] newOutputVarIdList) |
void |
setRefMachine(Machine newRefMachine) |
void |
setScriptOutputHandler(IDStabSimuOutputHandler newScriptOutputHandler) |
void |
setSimuMethod(DynamicSimuMethod newSimuMethod) |
void |
setSimuOutputHandler(IDStabSimuOutputHandler newSimuOutputHandler) |
void |
setSimuStepSec(double newSimuStepSec) |
void |
setSimuTime(double t) |
void |
setSolver(IDStabSolver newSolver)
set the DStab solver
|
void |
setTotalSimuTimeSec(double newTotalSimuTimeSec) |
boolean |
solveDEqnStep(boolean updateTime) |
java.lang.String |
toString() |
getNetwork, readData, writeDatacheckData, 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, 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, eUnseteAdapters, eDeliver, eNotify, eSetDeliverprotected static final double TOTAL_SIMU_TIME_SEC_EDEFAULT
Total Simu Time Sec' attribute.
getTotalSimuTimeSec(),
Constant Field Valuesprotected double totalSimuTimeSec
Total Simu Time Sec' attribute.
getTotalSimuTimeSec()protected static final double SIMU_STEP_SEC_EDEFAULT
Simu Step Sec' attribute.
getSimuStepSec(),
Constant Field Valuesprotected double simuStepSec
Simu Step Sec' attribute.
getSimuStepSec()protected static final DynamicSimuMethod SIMU_METHOD_EDEFAULT
Simu Method' attribute.
getSimuMethod()protected DynamicSimuMethod simuMethod
Simu Method' attribute.
getSimuMethod()protected static final int OUTPUT_PER_STEPS_EDEFAULT
Output Per Steps' attribute.
getOutputPerSteps(),
Constant Field Valuesprotected int outputPerSteps
Output Per Steps' attribute.
getOutputPerSteps()protected static final boolean OUTPUT_FILTERED_EDEFAULT
Output Filtered' attribute.
isOutputFiltered(),
Constant Field Valuesprotected boolean outputFiltered
Output Filtered' attribute.
isOutputFiltered()protected static final java.lang.String[] OUTPUT_VAR_ID_LIST_EDEFAULT
Output Var Id List' attribute.
getOutputVarIdList()protected java.lang.String[] outputVarIdList
Output Var Id List' attribute.
getOutputVarIdList()protected static final boolean DISABLE_DYNAMIC_EVENT_EDEFAULT
Disable Dynamic Event' attribute.
isDisableDynamicEvent(),
Constant Field Valuesprotected boolean disableDynamicEvent
Disable Dynamic Event' attribute.
isDisableDynamicEvent()protected Machine refMachine
Ref Machine' reference.
getRefMachine()protected LoadflowAlgorithm aclfAlgorithm
Aclf Algorithm' containment reference.
getAclfAlgorithm()protected static final IDStabSimuOutputHandler SIMU_OUTPUT_HANDLER_EDEFAULT
Simu Output Handler' attribute.
getSimuOutputHandler()protected IDStabSimuOutputHandler simuOutputHandler
Simu Output Handler' attribute.
getSimuOutputHandler()protected static final IDStabSimuOutputHandler SCRIPT_OUTPUT_HANDLER_EDEFAULT
Script Output Handler' attribute.
getScriptOutputHandler()protected IDStabSimuOutputHandler scriptOutputHandler
Script Output Handler' attribute.
getScriptOutputHandler()protected static final IpssMsgListener DYNAMIC_EVENT_HANDLER_EDEFAULT
Dynamic Event Handler' attribute.
getDynamicEventHandler()protected IpssMsgListener dynamicEventHandler
Dynamic Event Handler' attribute.
getDynamicEventHandler()public boolean checkData(DataCheckConfiguration config)
checkData in interface NameTagcheckData in class NameTagImplconfig - data check configuration
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass in class NetworkRefImpl<BaseDStabNetwork<?,?>>public void setNetwork(BaseDStabNetwork<?,?> net)
setNetwork in interface NetworkRef<BaseDStabNetwork<?,?>>setNetwork in class NetworkRefImpl<BaseDStabNetwork<?,?>>net - the new value of the 'Network' reference.NetworkRef.getNetwork()public double getTotalSimuTimeSec()
getTotalSimuTimeSec in interface DynamicSimuAlgorithmDynamicSimuAlgorithm.setTotalSimuTimeSec(double),
DstabAlgorithmPackage.getDynamicSimuAlgorithm_TotalSimuTimeSec()public void setTotalSimuTimeSec(double newTotalSimuTimeSec)
setTotalSimuTimeSec in interface DynamicSimuAlgorithmnewTotalSimuTimeSec - the new value of the 'Total Simu Time Sec' attribute.DynamicSimuAlgorithm.getTotalSimuTimeSec()public double getSimuStepSec()
getSimuStepSec in interface DynamicSimuAlgorithmDynamicSimuAlgorithm.setSimuStepSec(double),
DstabAlgorithmPackage.getDynamicSimuAlgorithm_SimuStepSec()public void setSimuStepSec(double newSimuStepSec)
setSimuStepSec in interface DynamicSimuAlgorithmnewSimuStepSec - the new value of the 'Simu Step Sec' attribute.DynamicSimuAlgorithm.getSimuStepSec()public DynamicSimuMethod getSimuMethod()
getSimuMethod in interface DynamicSimuAlgorithmDynamicSimuMethod,
DynamicSimuAlgorithm.setSimuMethod(DynamicSimuMethod),
DstabAlgorithmPackage.getDynamicSimuAlgorithm_SimuMethod()public void setSimuMethod(DynamicSimuMethod newSimuMethod)
setSimuMethod in interface DynamicSimuAlgorithmnewSimuMethod - the new value of the 'Simu Method' attribute.DynamicSimuMethod,
DynamicSimuAlgorithm.getSimuMethod()public int getOutputPerSteps()
getOutputPerSteps in interface DynamicSimuAlgorithmDynamicSimuAlgorithm.setOutputPerSteps(int),
DstabAlgorithmPackage.getDynamicSimuAlgorithm_OutputPerSteps()public void setOutputPerSteps(int newOutputPerSteps)
setOutputPerSteps in interface DynamicSimuAlgorithmnewOutputPerSteps - the new value of the 'Output Per Steps' attribute.DynamicSimuAlgorithm.getOutputPerSteps()public boolean isOutputFiltered()
isOutputFiltered in interface DynamicSimuAlgorithmDynamicSimuAlgorithm.setOutputFiltered(boolean),
DstabAlgorithmPackage.getDynamicSimuAlgorithm_OutputFiltered()public void setOutputFiltered(boolean newOutputFiltered)
setOutputFiltered in interface DynamicSimuAlgorithmnewOutputFiltered - the new value of the 'Output Filtered' attribute.DynamicSimuAlgorithm.isOutputFiltered()public java.lang.String[] getOutputVarIdList()
getOutputVarIdList in interface DynamicSimuAlgorithmDynamicSimuAlgorithm.setOutputVarIdList(String[]),
DstabAlgorithmPackage.getDynamicSimuAlgorithm_OutputVarIdList()public void setOutputVarIdList(java.lang.String[] newOutputVarIdList)
setOutputVarIdList in interface DynamicSimuAlgorithmnewOutputVarIdList - the new value of the 'Output Var Id List' attribute.DynamicSimuAlgorithm.getOutputVarIdList()public IDStabSimuOutputHandler getSimuOutputHandler()
getSimuOutputHandler in interface DynamicSimuAlgorithmDynamicSimuAlgorithm.setSimuOutputHandler(IDStabSimuOutputHandler),
DstabAlgorithmPackage.getDynamicSimuAlgorithm_SimuOutputHandler()public void setSimuOutputHandler(IDStabSimuOutputHandler newSimuOutputHandler)
setSimuOutputHandler in interface DynamicSimuAlgorithmnewSimuOutputHandler - the new value of the 'Simu Output Handler' attribute.DynamicSimuAlgorithm.getSimuOutputHandler()public IDStabSimuOutputHandler getScriptOutputHandler()
getScriptOutputHandler in interface DynamicSimuAlgorithmDynamicSimuAlgorithm.setScriptOutputHandler(IDStabSimuOutputHandler),
DstabAlgorithmPackage.getDynamicSimuAlgorithm_ScriptOutputHandler()public void setScriptOutputHandler(IDStabSimuOutputHandler newScriptOutputHandler)
setScriptOutputHandler in interface DynamicSimuAlgorithmnewScriptOutputHandler - the new value of the 'Script Output Handler' attribute.DynamicSimuAlgorithm.getScriptOutputHandler()public IpssMsgListener getDynamicEventHandler()
getDynamicEventHandler in interface DynamicSimuAlgorithmDynamicSimuAlgorithm.setDynamicEventHandler(IpssMsgListener),
DstabAlgorithmPackage.getDynamicSimuAlgorithm_DynamicEventHandler()public void setDynamicEventHandler(IpssMsgListener newDynamicEventHandler)
setDynamicEventHandler in interface DynamicSimuAlgorithmnewDynamicEventHandler - the new value of the 'Dynamic Event Handler' attribute.DynamicSimuAlgorithm.getDynamicEventHandler()public boolean isDisableDynamicEvent()
isDisableDynamicEvent in interface DynamicSimuAlgorithmDynamicSimuAlgorithm.setDisableDynamicEvent(boolean),
DstabAlgorithmPackage.getDynamicSimuAlgorithm_DisableDynamicEvent()public void setDisableDynamicEvent(boolean newDisableDynamicEvent)
setDisableDynamicEvent in interface DynamicSimuAlgorithmnewDisableDynamicEvent - the new value of the 'Disable Dynamic Event' attribute.DynamicSimuAlgorithm.isDisableDynamicEvent()public Machine getRefMachine()
getRefMachine in interface DynamicSimuAlgorithmDynamicSimuAlgorithm.setRefMachine(Machine),
DstabAlgorithmPackage.getDynamicSimuAlgorithm_RefMachine()public void setRefMachine(Machine newRefMachine)
setRefMachine in interface DynamicSimuAlgorithmnewRefMachine - the new value of the 'Ref Machine' reference.DynamicSimuAlgorithm.getRefMachine()public LoadflowAlgorithm getAclfAlgorithm()
getAclfAlgorithm in interface DynamicSimuAlgorithmDynamicSimuAlgorithm.setAclfAlgorithm(LoadflowAlgorithm),
DstabAlgorithmPackage.getDynamicSimuAlgorithm_AclfAlgorithm()public org.eclipse.emf.common.notify.NotificationChain basicSetAclfAlgorithm(LoadflowAlgorithm newAclfAlgorithm, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setAclfAlgorithm(LoadflowAlgorithm newAclfAlgorithm)
setAclfAlgorithm in interface DynamicSimuAlgorithmnewAclfAlgorithm - the new value of the 'Aclf Algorithm' containment reference.DynamicSimuAlgorithm.getAclfAlgorithm()public void setSolver(IDStabSolver newSolver)
DynamicSimuAlgorithmsetSolver in interface DynamicSimuAlgorithmpublic boolean performSimulation()
performSimulation in interface DynamicSimuAlgorithmpublic boolean performSimulationTo(double toTimeSec)
performSimulationTo in interface DynamicSimuAlgorithmpublic boolean initialization()
initialization in interface DynamicSimuAlgorithmpublic boolean solveDEqnStep(boolean updateTime)
solveDEqnStep in interface DynamicSimuAlgorithmpublic double getSimuTime()
getSimuTime in interface DynamicSimuAlgorithmpublic void setSimuTime(double t)
setSimuTime in interface DynamicSimuAlgorithmpublic 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<BaseDStabNetwork<?,?>>public void eSet(int featureID,
java.lang.Object newValue)
eSet in interface org.eclipse.emf.ecore.InternalEObjecteSet in class NetworkRefImpl<BaseDStabNetwork<?,?>>public void eUnset(int featureID)
eUnset in interface org.eclipse.emf.ecore.InternalEObjecteUnset in class NetworkRefImpl<BaseDStabNetwork<?,?>>public boolean eIsSet(int featureID)
eIsSet in interface org.eclipse.emf.ecore.InternalEObjecteIsSet in class NetworkRefImpl<BaseDStabNetwork<?,?>>public java.lang.String toString()
toString in class NameTagImplpublic int getOutPutPerSteps()
getOutPutPerSteps in interface DynamicSimuAlgorithmpublic void setOutPutPerSteps(int outputPerSteps)
setOutPutPerSteps in interface DynamicSimuAlgorithmpublic boolean createBusFault(java.lang.String faultBusId,
double startTime,
double durationTime,
SimpleFaultCode faultCode,
org.apache.commons.math3.complex.Complex Zlg,
org.apache.commons.math3.complex.Complex Zll)
DynamicSimuAlgorithmcreateBusFault in interface DynamicSimuAlgorithmZlg - : line to ground impedanceZll - : line to line impedancepublic boolean createBranchFault(java.lang.String fromBusId,
java.lang.String toBusId,
java.lang.String circuitId,
double startTime,
double fromClearTime,
double toClearTime,
SimpleFaultCode faultCode,
org.apache.commons.math3.complex.Complex zLG,
org.apache.commons.math3.complex.Complex zLL)
createBranchFault in interface DynamicSimuAlgorithm