主要内容

本页采用了机器翻译。点击此处可查看最新英文版本。

自定义过程模型

使用过程模型为开发和验证活动定义可重复的过程

当团队拥有用于本地预鉴定和 CI 编译的标准过程时,您可以有效地强制实现规范以及更轻松地进行协作。借助 CI Support Package for Simulink 支持包,您可以使用过程模型文件为您的团队定义一致的过程。该支持包中有一个默认过程模型,该模型具有用于自动执行常见开发和验证活动的内置任务。

此过程模型使用任务来表示过程中的步骤,使用查询来自动查找相关工件。您可以通过以下方式自定义过程:添加和删除任务,重新配置任务行为,指定任务间的关系,以及使用查询查找特定工件集。您可以使用内置的任务和查询,也可以创建自己的自定义任务和查询。准备好为团队部署过程时,可以使用过程顾问runprocess 函数在过程中运行任务。

要开始使用此默认过程模型,请参阅Modify Default Process Model to Fit Your Process。有关任务和查询如何定义过程的信息,请参阅Overview of Process Model

全部展开

padv.builtin.task.AnalyzeModelCodeTask for checking coding standards or proving code quality with Polyspace
padv.builtin.task.CollectMetricsTask for collecting model design and testing metrics
padv.builtin.task.DetectDesignErrorsTask for detecting design errors with Simulink Design Verifier
padv.builtin.task.FindClonesTask for detecting identical modeling patterns using Clone Detector
padv.builtin.task.GenerateCodeTask for generating code with Embedded Coder
padv.builtin.task.GenerateModelComparisonTask for generating model comparison report
padv.builtin.task.GenerateRequirementsReportTask for generating requirements report for each requirement set
padv.builtin.task.GenerateSDDReportTask for generating a System Design Description (SDD) report
padv.builtin.task.GenerateSimulinkWebViewTask for creating web views for models
padv.builtin.task.MergeTestResultsTask for generating consolidated test results report and merged coverage reports
padv.builtin.task.RunBuildToolTask for executing MATLAB build tool plan (自 R2023b 起)
padv.builtin.task.RunCodeInspectionTask for inspecting generated model code using Simulink Code Inspector
padv.builtin.task.RunModelStandardsTask for checking modeling standards with Model Advisor
padv.builtin.task.RunTestsPerModelTask for running test cases associated with each model using Simulink Test
padv.builtin.task.RunTestsPerTestCaseTask for running each test case using Simulink Test

迭代查询

padv.builtin.query.FindArtifactsQuery for finding artifacts
padv.builtin.query.FindCodeForModelQuery for finding generated code files and buildInfo.mat for model
padv.builtin.query.FindDesignModelsQuery for finding units and components
padv.builtin.query.FindFileWithAddressQuery for finding file with address
padv.builtin.query.FindFilesWithLabelQuery for finding files with project label
padv.builtin.query.FindMAJustificationFileForModelQuery for finding Model Advisor justification file for model (自 R2023a 起)
padv.builtin.query.FindModelsQuery for finding models
padv.builtin.query.FindModelsWithLabelQuery for finding models with project label
padv.builtin.query.FindModelsWithTestCasesQuery for finding models that have test cases
padv.builtin.query.FindProjectFileQuery for finding project file
padv.builtin.query.FindRefModelsQuery for finding referenced models
padv.builtin.query.FindRequirementsQuery for finding requirements
padv.builtin.query.FindRequirementsForModelQuery for finding requirements for model
padv.builtin.query.FindTestCasesForModelQuery for finding test cases for model
padv.builtin.query.FindTopModelsQuery for finding top models
padv.builtin.query.FindUnitsQuery for finding units

常规查询

padv.builtin.query.FindBuildfileQuery for finding build file for MATLAB build tool
padv.builtin.query.FindExternalCodeCacheQuery for finding external code cache files in project folder
padv.builtin.query.GetDependentArtifactsQuery for getting dependent artifacts
padv.builtin.query.GetInputsOfBuildToolTasksQuery for getting inputs of MATLAB build tool tasks (自 R2023b 起)
padv.builtin.query.GetIterationArtifactQuery for getting current task iteration artifact
padv.builtin.query.GetOutputsOfDependentTaskQuery for getting outputs from predecessor task
padv.buildtool.tasks.RunProcessTaskTask for running Process Advisor process (自 R2023a 起)
padv.ArtifactStore artifact information
padv.AssessmentDefine formal assessments for task inputs and outputs
padv.ProcessGroup tasks and subprocesses in process model
padv.ProcessModelDefine tasks and process for project
padv.QuerySelect set of artifacts from project
padv.SubprocessGroup of tasks and subprocesses in process
padv.TaskSingle step in process
padv.TaskContextAccess additional information about task execution context
padv.TaskResultCreate and access results from task
padv.TaskToolTool to help organize and complete task activities in Process Advisor (自 R2023b 起)
padv.BuildResultResult from build system build
padv.ProjectSettingsBuild system settings for project
padv.UserSettingsBuild system settings for user

函数

全部展开

addInputQueriesAdd input artifacts as inputs to task
addTaskAdd task instance to process model
addTaskToolAdd tool to help organize and complete task activities
dependsOnCreate dependency between tasks
runsAfterSpecify preferred execution order for tasks
createprocessCreate process model
getprocessGet process model object for process model in project
runprocessGenerate and run pipeline of tasks by using build system
padv.util.ArtifactAddressAddress for artifact in project
padv.util.closeModelsLoadedByTaskClose models loaded by task
padv.util.DictionaryCacheManage data dictionary cache in MATLAB
padv.util.forceReanalyzeProjectReanalyze project and log analysis events
padv.util.getCurrentProjectGet current project and persist project instance
padv.util.getModelNameFind name of model that contains artifact
padv.util.getProjectReferencesGet list of project references
padv.util.getTestCaseIDFind ID for test case that contains artifact
padv.util.initSessionDataDictionaryCacheInitialize persistent instance of data dictionary cache manager
padv.util.MbtHelperFind input and output files for MATLAB build tasks (自 R2023b 起)
padv.util.mergeArtifactDatabasesMerge artifact database files (自 R2023b 起)
padv.util.openTestCaseOpen test case artifact
padv.util.refreshProcessModelRefresh process model data
padv.util.saveArtifactDatabaseSave copy of artifact database file (自 R2023b 起)
padv.util.setUserTaskResultSet results for user task
padv.util.unpackExternalCodeCacheUnpack code generation target from Simulink cache files

主题

定义过程

故障排除和测试过程