| Simulink® Verification and Validation™ | ![]() |
The ModelAdvisor.Group class defines a group that appears as a folder in the Model Advisor tree. Use groups to consolidate checks by functionality or usage.
group_obj = ModelAdvisor.Group(group_ID)
A variable representing the group object you create.
A string that uniquely identifies the group. The value of group_ID must remain constant.
| Name | Description |
|---|---|
| addGroup | Add subgroup to group |
| addTask | Add task to group |
Add subgroup to group
group_obj.addGroup(child_obj)
A variable representing the group object.
The unique identifying string that represents the ModelAdvisor.Group object of the subgroup.
The addGroup method adds a new subfolder, identified by child_obj, to the folder specified by the group object.
Add task to group
group_obj.addTask(task_obj)
A variable representing the group object.
The unique identifying string that represents the ModelAdvisor.Task object.
The addTask method adds a new check, identified by task_obj, to the folder specified by the group object.
Note The following example is a fragment of code from the sl_customization.m file for the demo model slvnvdemo_mdladv. The example does not execute as shown without the additional content found in the sl_customization.m file. |
See Demo and Code Example for more information.
MAG = ModelAdvisor.Group('com.mathworks.sample.GroupSample');
MAG.DisplayName='My Group';
MAG.addTask(MAT1);
MAG.addTask(MAT2);
MAG.addTask(MAT3);
mdladvRoot.publish(MAG); % publish under Model Advisor Task Manager![]() | ModelAdvisor.FactoryGroup | ModelAdvisor.Image | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |