Quantcast

Documentation Center

  • Trial Software
  • Product Updates

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?