public class AnControllerHelper
extends java.lang.Object
| Constructor and Description |
|---|
AnControllerHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
assignInitOrder(java.util.List<BaseFieldAnWrapper<? extends ICMLBlock>> fieldWrapperList)
Recursively assign controller field init order number
|
static boolean |
assignInitOrderChildController(AbstractChildAnnotateController.Direction direction,
java.util.List<BaseFieldAnWrapper<? extends ICMLBlock>> fieldWrapperList)
assign inti order number to child controller
|
static java.lang.Object |
getBlock(java.lang.String blockName,
java.util.List<BaseFieldAnWrapper<? extends ICMLBlock>> fieldWrapperList)
Get ControlBlock (DelayControlBlock ...
|
static BaseFieldAnWrapper<? extends ICMLBlock> |
getBlockFieldWrapper(java.lang.String blockName,
java.util.List<BaseFieldAnWrapper<? extends ICMLBlock>> fieldWrapperList)
Get ControlBlockField or StaticBlockField identified by the blockName
|
static double |
getControlBlockState(java.lang.String blockName,
java.util.List<BaseFieldAnWrapper<? extends ICMLBlock>> fieldWrapperList)
Get control block state
|
static int |
getHighestInitOrder(java.util.List<BaseFieldAnWrapper<? extends ICMLBlock>> fieldWrapperList)
Get the highest init order number
|
static int |
getLowestInitOrder(java.util.List<BaseFieldAnWrapper<? extends ICMLBlock>> fieldWrapperList)
Get the lowest init order number
|
static double[] |
getMaxDblAry(ICMLLimitExpression limitExp,
AbstractAnnotateController controller)
Calculate variable values for expression evaluation of the MaxExpression of a delay control block
|
static double[] |
getMinDblAry(ICMLLimitExpression limitExp,
AbstractAnnotateController controller)
Calculate variable values for expression evaluation of the MinExpression of a delay control block
|
static boolean |
initFeedbackBlock(java.lang.String fieldName,
AbstractAnnotateController controller)
Recursively init feedback blocks with the fieldName as the input
|
static boolean |
initField(BlockFieldAnWrapper<? extends ICMLBlock> fieldWrapper,
AbstractAnnotateController controller,
boolean afterRefPoint)
initialize controller field.
|
public static boolean initField(BlockFieldAnWrapper<? extends ICMLBlock> fieldWrapper, AbstractAnnotateController controller, boolean afterRefPoint) throws InterpssException
fieldWrapper - field to be initcontroller - parent controllerafterRefPoint - before or after RefPointInterpssExceptionpublic static boolean assignInitOrder(java.util.List<BaseFieldAnWrapper<? extends ICMLBlock>> fieldWrapperList)
fieldWrapperList - controller field listmsg - public static boolean assignInitOrderChildController(AbstractChildAnnotateController.Direction direction, java.util.List<BaseFieldAnWrapper<? extends ICMLBlock>> fieldWrapperList)
direction - fieldWrapperList - public static int getHighestInitOrder(java.util.List<BaseFieldAnWrapper<? extends ICMLBlock>> fieldWrapperList)
fieldWrapperList - controller field listpublic static int getLowestInitOrder(java.util.List<BaseFieldAnWrapper<? extends ICMLBlock>> fieldWrapperList)
fieldWrapperList - controller field listpublic static boolean initFeedbackBlock(java.lang.String fieldName,
AbstractAnnotateController controller)
fieldName - input block field namecontroller - parent controller objectmsg - public static double[] getMaxDblAry(ICMLLimitExpression limitExp, AbstractAnnotateController controller) throws InterpssException
limitExp - the delay block objectcontroller - the parent controllerjava.lang.ExceptionInterpssExceptionpublic static double[] getMinDblAry(ICMLLimitExpression limitExp, AbstractAnnotateController controller) throws InterpssException
limitExp - the delay block objectcontroller - the parent controllerjava.lang.ExceptionInterpssExceptionpublic static java.lang.Object getBlock(java.lang.String blockName,
java.util.List<BaseFieldAnWrapper<? extends ICMLBlock>> fieldWrapperList)
blockName - format: this.delayBlock.u0 or delayBlockpublic static BaseFieldAnWrapper<? extends ICMLBlock> getBlockFieldWrapper(java.lang.String blockName, java.util.List<BaseFieldAnWrapper<? extends ICMLBlock>> fieldWrapperList)
blockName - format: this.delayBlock.u0 or delayBlockpublic static double getControlBlockState(java.lang.String blockName,
java.util.List<BaseFieldAnWrapper<? extends ICMLBlock>> fieldWrapperList)
blockName -