ModelAdvisor.Group - Define custom groups

Class Description

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.

Syntax

group_obj = ModelAdvisor.Group(group_ID)

Arguments

group_obj

A variable representing the group object you create.

group_ID

A string that uniquely identifies the group. The value of group_ID must remain constant.

Method Summary

NameDescription
addGroupAdd subgroup to group
addTaskAdd task to group

Methods

addGroup

Purpose

Add subgroup to group

Syntax

group_obj.addGroup(child_obj)

Arguments

group_obj

A variable representing the group object.

child_obj

The unique identifying string that represents the ModelAdvisor.Group object of the subgroup.

Description

The addGroup method adds a new subfolder, identified by child_obj, to the folder specified by the group object.

addTask

Purpose

Add task to group

Syntax

group_obj.addTask(task_obj)

Arguments

group_obj

A variable representing the group object.

task_obj

The unique identifying string that represents the ModelAdvisor.Task object.

Description

The addTask method adds a new check, identified by task_obj, to the folder specified by the group object.

See Also

ModelAdvisor.Task

Example

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

See Also

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS