ModelAdvisor.FactoryGroup - Define group in By Task folder

Class Description

The ModelAdvisor.FactoryGroup class defines a new subfolder to add to the By Task folder.

Syntax

fg_obj = ModelAdvisor.FactoryGroup(fg_ID)

Arguments

fg_obj

A variable representing the factory group object you are creating.

fg_ID

A unique string that identifies the group. The value of fg_ID must remain constant.

Method Summary

NameDescription
addCheckAdd check to group

Methods

addCheck

Purpose

Add check to group

Syntax

fg_obj.addCheck(check_ID)

Arguments

fg_obj

A variable representing the factory group object.

check_ID

The unique identification string representing the check to add.

Description

The addCheck method adds checks, identified by check_ID, to the folder specified by the group object.

See Also

ModelAdvisor.Check

Example

See Demo and Code Example for more information.

function defineModelAdvisorTasks
mdladvRoot = ModelAdvisor.Root;

% --- sample factory group
rec = ModelAdvisor.FactoryGroup('com.mathworks.sample.factorygroup');
rec.DisplayName='Demo Factory Group';
rec.Description='Demo Factory Group';
rec.addCheck('com.mathworks.sample.Check1');
rec.addCheck('com.mathworks.sample.Check2');
rec.addCheck('com.mathworks.sample.Check3');
mdladvRoot.publish(rec); % publish inside By Task

See Also

  


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