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.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 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. |
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 |
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, writeData
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, 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
eAdapters, eDeliver, eNotify, eSetDeliver
protected 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 NameTag
checkData
in class NameTagImpl
config
- 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 DynamicSimuAlgorithm
DynamicSimuAlgorithm.setTotalSimuTimeSec(double)
,
DstabAlgorithmPackage.getDynamicSimuAlgorithm_TotalSimuTimeSec()
public void setTotalSimuTimeSec(double newTotalSimuTimeSec)
setTotalSimuTimeSec
in interface DynamicSimuAlgorithm
newTotalSimuTimeSec
- the new value of the 'Total Simu Time Sec' attribute.DynamicSimuAlgorithm.getTotalSimuTimeSec()
public double getSimuStepSec()
getSimuStepSec
in interface DynamicSimuAlgorithm
DynamicSimuAlgorithm.setSimuStepSec(double)
,
DstabAlgorithmPackage.getDynamicSimuAlgorithm_SimuStepSec()
public void setSimuStepSec(double newSimuStepSec)
setSimuStepSec
in interface DynamicSimuAlgorithm
newSimuStepSec
- the new value of the 'Simu Step Sec' attribute.DynamicSimuAlgorithm.getSimuStepSec()
public DynamicSimuMethod getSimuMethod()
getSimuMethod
in interface DynamicSimuAlgorithm
DynamicSimuMethod
,
DynamicSimuAlgorithm.setSimuMethod(DynamicSimuMethod)
,
DstabAlgorithmPackage.getDynamicSimuAlgorithm_SimuMethod()
public void setSimuMethod(DynamicSimuMethod newSimuMethod)
setSimuMethod
in interface DynamicSimuAlgorithm
newSimuMethod
- the new value of the 'Simu Method' attribute.DynamicSimuMethod
,
DynamicSimuAlgorithm.getSimuMethod()
public int getOutputPerSteps()
getOutputPerSteps
in interface DynamicSimuAlgorithm
DynamicSimuAlgorithm.setOutputPerSteps(int)
,
DstabAlgorithmPackage.getDynamicSimuAlgorithm_OutputPerSteps()
public void setOutputPerSteps(int newOutputPerSteps)
setOutputPerSteps
in interface DynamicSimuAlgorithm
newOutputPerSteps
- the new value of the 'Output Per Steps' attribute.DynamicSimuAlgorithm.getOutputPerSteps()
public boolean isOutputFiltered()
isOutputFiltered
in interface DynamicSimuAlgorithm
DynamicSimuAlgorithm.setOutputFiltered(boolean)
,
DstabAlgorithmPackage.getDynamicSimuAlgorithm_OutputFiltered()
public void setOutputFiltered(boolean newOutputFiltered)
setOutputFiltered
in interface DynamicSimuAlgorithm
newOutputFiltered
- the new value of the 'Output Filtered' attribute.DynamicSimuAlgorithm.isOutputFiltered()
public java.lang.String[] getOutputVarIdList()
getOutputVarIdList
in interface DynamicSimuAlgorithm
DynamicSimuAlgorithm.setOutputVarIdList(String[])
,
DstabAlgorithmPackage.getDynamicSimuAlgorithm_OutputVarIdList()
public void setOutputVarIdList(java.lang.String[] newOutputVarIdList)
setOutputVarIdList
in interface DynamicSimuAlgorithm
newOutputVarIdList
- the new value of the 'Output Var Id List' attribute.DynamicSimuAlgorithm.getOutputVarIdList()
public IDStabSimuOutputHandler getSimuOutputHandler()
getSimuOutputHandler
in interface DynamicSimuAlgorithm
DynamicSimuAlgorithm.setSimuOutputHandler(IDStabSimuOutputHandler)
,
DstabAlgorithmPackage.getDynamicSimuAlgorithm_SimuOutputHandler()
public void setSimuOutputHandler(IDStabSimuOutputHandler newSimuOutputHandler)
setSimuOutputHandler
in interface DynamicSimuAlgorithm
newSimuOutputHandler
- the new value of the 'Simu Output Handler' attribute.DynamicSimuAlgorithm.getSimuOutputHandler()
public IDStabSimuOutputHandler getScriptOutputHandler()
getScriptOutputHandler
in interface DynamicSimuAlgorithm
DynamicSimuAlgorithm.setScriptOutputHandler(IDStabSimuOutputHandler)
,
DstabAlgorithmPackage.getDynamicSimuAlgorithm_ScriptOutputHandler()
public void setScriptOutputHandler(IDStabSimuOutputHandler newScriptOutputHandler)
setScriptOutputHandler
in interface DynamicSimuAlgorithm
newScriptOutputHandler
- the new value of the 'Script Output Handler' attribute.DynamicSimuAlgorithm.getScriptOutputHandler()
public IpssMsgListener getDynamicEventHandler()
getDynamicEventHandler
in interface DynamicSimuAlgorithm
DynamicSimuAlgorithm.setDynamicEventHandler(IpssMsgListener)
,
DstabAlgorithmPackage.getDynamicSimuAlgorithm_DynamicEventHandler()
public void setDynamicEventHandler(IpssMsgListener newDynamicEventHandler)
setDynamicEventHandler
in interface DynamicSimuAlgorithm
newDynamicEventHandler
- the new value of the 'Dynamic Event Handler' attribute.DynamicSimuAlgorithm.getDynamicEventHandler()
public boolean isDisableDynamicEvent()
isDisableDynamicEvent
in interface DynamicSimuAlgorithm
DynamicSimuAlgorithm.setDisableDynamicEvent(boolean)
,
DstabAlgorithmPackage.getDynamicSimuAlgorithm_DisableDynamicEvent()
public void setDisableDynamicEvent(boolean newDisableDynamicEvent)
setDisableDynamicEvent
in interface DynamicSimuAlgorithm
newDisableDynamicEvent
- the new value of the 'Disable Dynamic Event' attribute.DynamicSimuAlgorithm.isDisableDynamicEvent()
public Machine getRefMachine()
getRefMachine
in interface DynamicSimuAlgorithm
DynamicSimuAlgorithm.setRefMachine(Machine)
,
DstabAlgorithmPackage.getDynamicSimuAlgorithm_RefMachine()
public void setRefMachine(Machine newRefMachine)
setRefMachine
in interface DynamicSimuAlgorithm
newRefMachine
- the new value of the 'Ref Machine' reference.DynamicSimuAlgorithm.getRefMachine()
public LoadflowAlgorithm getAclfAlgorithm()
getAclfAlgorithm
in interface DynamicSimuAlgorithm
DynamicSimuAlgorithm.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 DynamicSimuAlgorithm
newAclfAlgorithm
- the new value of the 'Aclf Algorithm' containment reference.DynamicSimuAlgorithm.getAclfAlgorithm()
public void setSolver(IDStabSolver newSolver)
DynamicSimuAlgorithm
setSolver
in interface DynamicSimuAlgorithm
public boolean performSimulation()
performSimulation
in interface DynamicSimuAlgorithm
public boolean performSimulationTo(double toTimeSec)
performSimulationTo
in interface DynamicSimuAlgorithm
public boolean initialization()
initialization
in interface DynamicSimuAlgorithm
public boolean solveDEqnStep(boolean updateTime)
solveDEqnStep
in interface DynamicSimuAlgorithm
public double getSimuTime()
getSimuTime
in interface DynamicSimuAlgorithm
public void setSimuTime(double t)
setSimuTime
in interface DynamicSimuAlgorithm
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<BaseDStabNetwork<?,?>>
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class NetworkRefImpl<BaseDStabNetwork<?,?>>
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class NetworkRefImpl<BaseDStabNetwork<?,?>>
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class NetworkRefImpl<BaseDStabNetwork<?,?>>
public java.lang.String toString()
toString
in class NameTagImpl
public int getOutPutPerSteps()
getOutPutPerSteps
in interface DynamicSimuAlgorithm
public void setOutPutPerSteps(int outputPerSteps)
setOutPutPerSteps
in interface DynamicSimuAlgorithm
public 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)
DynamicSimuAlgorithm
createBusFault
in interface DynamicSimuAlgorithm
Zlg
- : 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