Main Content

本页的翻译已过时。点击此处可查看最新英文版本。

创建模型顾问检查

定义自定义检查并提供修复操作

您可以使用模型顾问 API 来创建模型顾问检查。您可以通过自定义检查来指定模型顾问要审核的条件和配置设置。有关工作流,请参阅定义您自己的自定义模型顾问检查

全部展开

Advisor.authoring.CustomCheckDefine custom configuration parameter check
Advisor.authoring.DataFileInteract with data file for model configuration checks
ModelAdvisor.ActionAdd actions to custom checks
ModelAdvisor.CheckCreate custom Model Advisor checks
ModelAdvisor.PreferencesSet Model Advisor window preferences by specifying which folders and tabs to display
ModelAdvisor.InputParameterAdd input parameters to custom checks
ModelAdvisor.ListViewParameter(To be removed) Add list view parameters to custom checks
ModelAdvisor.RootIdentify root node
ModelAdvisor.FormatTemplateTemplate for formatting Model Advisor analysis results
ModelAdvisor.ImageInclude image in Model Advisor output
ModelAdvisor.LineBreakInsert line break
ModelAdvisor.ListCreate list class
ModelAdvisor.ParagraphCreate and format paragraph
ModelAdvisor.TableCreate table for Model Advisor results
ModelAdvisor.TextCreate Model Advisor text output
ModelAdvisor.ResultDetailDefines result detail objects
Advisor.authoring.PositiveBlockParameterConstraintCreate a Model Advisor constraint to check for supported block parameter values
Advisor.authoring.NegativeBlockParameterConstraintCreate a Model Advisor constraint to check for unsupported block parameter values
Advisor.authoring.PositiveModelParameterConstraintCreate a Model Advisor constraint to check for supported model parameter values
Advisor.authoring.NegativeModelParameterConstraintCreate a Model Advisor constraint to check for unsupported model parameter values
Advisor.authoring.PositiveBlockTypeConstraintCreate a Model Advisor constraint to check for supported block types
Advisor.authoring.NegativeBlockTypeConstraintCreate a Model Advisor constraint to check for unsupported blocks
Advisor.authoring.CompositeConstraintCreate a Model Advisor constraint that checks for multiple constraints

函数

全部展开

Advisor.authoring.generateConfigurationParameterDataFileGenerate XML data file for custom configuration parameter check
Advisor.authoring.generateBlockConstraintsDataFile(Not recommended) Generate XML data file for custom check for block constraints
Advisor.authoring.createBlockConstraintCheckCreate Model Advisor check with block constraints
addPreRequisiteConstraintIDCheck a prerequisite constraint object before the actual constraint object

主题

定义您自己的自定义模型顾问检查

创建一项自定义检查,它指定一组条件和模型配置设置,供模型顾问审核。

根据您使用模型顾问指定的条件检查模型

创建一个简单的没有修复操作的通过/失败检查和一个信息型检查。

修复模型以符合您使用模型顾问指定的条件

创建一个通过/失败检查,该检查按模块或子系统对结果进行分组,并提供修复操作。

为模型配置参数创建模型顾问检查

要验证模型的配置参数,请创建一项配置参数检查。

Define the Compile Option for Custom Model Advisor Checks

To use Model Advisor custom checks to evaluate generated code, specify the compile option for each check.

Exclude Blocks From Custom Checks

This example shows how to exclude blocks from custom checks.

针对支持或不支持的模块和参数定义模型顾问检查

创建用来指定模块和模型参数约束的模型顾问检查。