public abstract class AbstractAnnotateController extends MachineControllerImpl
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| Constructor and Description |
|---|
AbstractAnnotateController()
constructor
|
AbstractAnnotateController(java.lang.String id,
java.lang.String name,
java.lang.String caty)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
eulerStep(boolean step1,
double dt,
Machine mach)
solve diff eqn.
|
abstract AnController |
getAnController() |
ICMLControlBlock |
getControlBlockField(java.lang.String fieldName)
Retrieve controller control block field by fieldName
|
AbstractChildAnnotateController |
getControllerField(java.lang.String fieldName)
Retrieve child controller field
|
double |
getDoubleField(java.lang.String fieldName)
Retrieve controller field parameter by fieldName
|
java.lang.Object |
getEditPanel()
Get the editor panel for controller data editing
|
abstract java.lang.reflect.Field |
getField(java.lang.String fieldName) |
abstract java.lang.Object |
getFieldObject(java.lang.reflect.Field field) |
double |
getFieldVaule(java.lang.String fieldName)
Get controller field value (u, y or state).
|
java.util.List<BaseFieldAnWrapper<? extends ICMLBlock>> |
getFieldWrapperList()
controller field list
|
ICMLFunctionExpression |
getFunctionExpressionField(java.lang.String fieldName)
Retrieve controller function expression field by fieldName
|
ICMLFunction |
getFunctionField(java.lang.String fieldName)
Retrieve controller function field by fieldName
|
int |
getIntField(java.lang.String fieldName)
Retrieve controller field parameter by fieldName
|
ICMLLookupTableFunction |
getLookupTableFunctionField(java.lang.String fieldName)
Retrieve controller lookup table function field by fieldName
|
double |
getOutput() |
double |
getOutput(Machine mach) |
double |
getRefPoint()
get controller reference point value
|
java.util.Hashtable<java.lang.String,java.lang.Object> |
getStates(Machine mach,
java.lang.Object ref) |
java.util.Hashtable<java.lang.String,java.lang.Object> |
getStates(java.lang.Object ref) |
ICMLStaticBlock |
getStaticBlockField(java.lang.String fieldName)
Retrieve controller static block field by fieldName
|
boolean |
initStates(BaseDStabBus<?,?> abus) |
boolean |
initStates(BaseDStabBus<?,?> abus,
Machine mach)
Init the controller states
|
boolean |
nextStep(double dt,
DynamicSimuMethod method) |
boolean |
nextStep(double dt,
DynamicSimuMethod method,
Machine mach)
Perform one step diff eqn calculation
|
void |
setRefPoint(double x) |
java.lang.String |
toString() |
basicSetMachine, eBasicRemoveFromContainerFeature, eGet, eInverseAdd, eInverseRemove, eIsSet, eSet, eUnset, getCategory, getDataClass, getDStabBus, getMachine, getOutput, getType, initStates, initStates, readData, setCategory, setMachine, setType, writeDatagetOutputList, getOutputObject, getScripts, nextStepElectrical, nextStepMechanical, setScripts, updateAttributescheckData, 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, 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, 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, waitgetScripts, setScriptscheckData, checkData, copy, copyRef, getDesc, getId, getName, getNumber, isActive, isStatus, setDesc, setId, setName, setNumber, setStatusgetOutputList, getOutputObject, nextStepElectrical, nextStepMechanical, updateAttributeseAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetpublic AbstractAnnotateController()
public AbstractAnnotateController(java.lang.String id,
java.lang.String name,
java.lang.String caty)
id - controller idname - controller namecaty - controller category, for display info onlypublic abstract AnController getAnController()
public abstract java.lang.Object getFieldObject(java.lang.reflect.Field field)
throws java.lang.Exception
java.lang.Exceptionpublic abstract java.lang.reflect.Field getField(java.lang.String fieldName)
throws java.lang.Exception
java.lang.Exceptionpublic double getDoubleField(java.lang.String fieldName)
throws InterpssException
fieldName - parameter name, for example, "this.ka"java.lang.ExceptionInterpssExceptionpublic int getIntField(java.lang.String fieldName)
throws InterpssException
fieldName - parameter name "this.ka"java.lang.ExceptionInterpssExceptionpublic ICMLFunction getFunctionField(java.lang.String fieldName) throws InterpssException
fieldName - field name "seFunc"java.lang.ExceptionInterpssExceptionpublic ICMLLookupTableFunction getLookupTableFunctionField(java.lang.String fieldName) throws InterpssException
fieldName - field namejava.lang.ExceptionInterpssExceptionpublic ICMLFunctionExpression getFunctionExpressionField(java.lang.String fieldName) throws InterpssException
fieldName - field namejava.lang.ExceptionInterpssExceptionpublic ICMLStaticBlock getStaticBlockField(java.lang.String fieldName) throws InterpssException
fieldName - field name "gainBlock"java.lang.ExceptionInterpssExceptionpublic ICMLControlBlock getControlBlockField(java.lang.String fieldName) throws InterpssException
fieldName - field name "delayBlock"java.lang.ExceptionInterpssExceptionpublic AbstractChildAnnotateController getControllerField(java.lang.String fieldName) throws InterpssException
fieldName - java.lang.ExceptionInterpssExceptionpublic double getFieldVaule(java.lang.String fieldName)
throws InterpssException
fieldName, - fieldName format : InterpssExceptionpublic java.util.List<BaseFieldAnWrapper<? extends ICMLBlock>> getFieldWrapperList()
public boolean initStates(BaseDStabBus<?,?> abus, Machine mach)
initStates in interface IDynamicSimulationinitStates in class DynamicDeviceImplmsg - the SessionMsg objectpublic boolean initStates(BaseDStabBus<?,?> abus)
DynamicDeviceImplinitStates in interface IDynamicSimulationinitStates in class DynamicDeviceImplpublic boolean nextStep(double dt,
DynamicSimuMethod method,
Machine mach)
nextStep in interface IDynamicSimulationnextStep in class DynamicDeviceImpldt - simulation time intervalmethod - d-eqn solution methodmsg - the IPSSMsgHub object, for communication with the outside worldpublic boolean nextStep(double dt,
DynamicSimuMethod method)
DynamicDeviceImplnextStep in interface IDynamicSimulationnextStep in class DynamicDeviceImpldt - the time step for solving the differential eqn.
public double getOutput(Machine mach)
DynamicDeviceImplgetOutput in interface IDynamicSimulationgetOutput in class DynamicDeviceImplpublic double getOutput()
DynamicDeviceImplgetOutput in interface IDynamicSimulationgetOutput in class DynamicDeviceImplpublic java.util.Hashtable<java.lang.String,java.lang.Object> getStates(Machine mach, java.lang.Object ref)
MachineControllerImplgetStates in interface IDynamicSimulationgetStates in class MachineControllerImplpublic java.util.Hashtable<java.lang.String,java.lang.Object> getStates(java.lang.Object ref)
MachineControllerImplgetStates in interface IDynamicSimulationgetStates in class MachineControllerImplpublic java.lang.Object getEditPanel()
getEditPanel in interface MachineControllergetEditPanel in class MachineControllerImplpublic void setRefPoint(double x)
MachineControllerImplsetRefPoint in interface MachineControllersetRefPoint in class MachineControllerImplpublic double getRefPoint()
public boolean eulerStep(boolean step1,
double dt,
Machine mach)
step1 - dt - mach - public java.lang.String toString()
MachineControllerImpltoString in class MachineControllerImpl