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.Task | Define custom tasks |
Methods
setCheck | Specify check used in task |
Properties
Description | Description of task |
DisplayName | Name of task |
Enable | Indicate if user can enable and disable task |
ID | Identifier for task |
LicenseName | Product license names required to display and run task |
MAObj | Model Advisor object |
Value | Status of task |
Visible | Indicate 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');