Main Content

ModelAdvisor.Task Class

Namespace: ModelAdvisor
Superclasses:

Define custom tasks

Description

The ModelAdvisor.Task class is a wrapper for a check so that you can access the check with the Model Advisor.

You can use one ModelAdvisor.Check object in multiple ModelAdvisor.Task objects, allowing you to place the same check in multiple locations in the Model Advisor tree. For example, the check Check for implicit signal resolution is displayed in the By Product > Simulink folder and in the By Task > Model Referencing folder in the Model Advisor tree.

When adding checks as tasks, the Model Advisor uses the task properties instead of the check properties, except for Visible and LicenseName.

Construction

ModelAdvisor.TaskDefine custom tasks

Methods

setCheckSpecify check used in task

Properties

DescriptionDescription of task
DisplayNameName of task
EnableIndicate if user can enable and disable task
IDIdentifier for task
LicenseNameProduct license names required to display and run task
MAObjModel Advisor object
ValueStatus of task
VisibleIndicate to display or hide task

Copy Semantics

Handle. To learn how this affects your use of the class, see Copying Objects in the MATLAB® Programming Fundamentals documentation.

Examples

MAT1 = ModelAdvisor.Task('com.mathworks.sample.TaskSample1');
MAT2 = ModelAdvisor.Task('com.mathworks.sample.TaskSample2');
MAT3 = ModelAdvisor.Task('com.mathworks.sample.TaskSample3');