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.

addTask

Class: ModelAdvisor.Procedure
Package: ModelAdvisor

Add task to procedure

Syntax

addTask(procedure_obj, task_obj)

Description

addTask(procedure_obj, task_obj) adds a task, specified by task_obj, to procedure_obj.procedure_obj is an instantiation of the ModelAdvisor.Procedure class.

Examples

Add three tasks to MAP.

MAP = ModelAdvisor.Procedure('com.mathworks.sample.ProcedureSample');

MAT1=ModelAdvisor.Task('com.mathworks.sample.task1');
MAT2=ModelAdvisor.Task('com.mathworks.sample.task2');
MAT3=ModelAdvisor.Task('com.mathworks.sample.task3');

addTask(MAP, MAT1);
addTask(MAP, MAT2);
addTask(MAP, MAT3);
Was this topic helpful?