Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

register

Class: ModelAdvisor.Root
Package: ModelAdvisor

Register object in Model Advisor root

Syntax

register(MAobj, obj)

Description

register(MAobj, obj) registers the object, obj, in the root object MAobj.

In the Model Advisor memory, the register method registers the following types of objects:

  • ModelAdvisor.Check

  • ModelAdvisor.FactoryGroup

  • ModelAdvisor.Group

  • ModelAdvisor.Procedure

  • ModelAdvisor.Task

The register method places objects in the Model Advisor memory that you use in other functions. The register method does not place objects in the Model Advisor tree.

Examples

mdladvRoot = ModelAdvisor.Root;

MAT1 = ModelAdvisor.Task('com.mathworks.sample.TaskSample1');
MAT1.DisplayName='Example task with input parameter and auto-fix ability';
MAT1.setCheck('com.mathworks.sample.Check1');
mdladvRoot.register(MAT1);

MAT2 = ModelAdvisor.Task('com.mathworks.sample.TaskSample2');
MAT2.DisplayName='Example task 2';
MAT2.setCheck('com.mathworks.sample.Check2');
mdladvRoot.register(MAT2);

MAT3 = ModelAdvisor.Task('com.mathworks.sample.TaskSample3');
MAT3.DisplayName='Example task 3';
MAT3.setCheck('com.mathworks.sample.Check3');
mdladvRoot.register(MAT3)
Was this topic helpful?