| Contents | Index |
setJobSchedulerData(sched, job, userdata)
sched | Scheduler object identifying the generic third-party scheduler running the job. |
job | Job object identifying the job for which to store data. |
userdata | Information to store for this job. |
setJobSchedulerData(sched, job, userdata) stores data for the job job that is running under the generic scheduler sched. You can later retrieve the information with the function getJobSchedulerData. For example, it might be useful to store the third-party scheduler's external ID for this job, so that the function specified in GetJobStateFcn can later query the scheduler about the state of the job. Or the stored data might be an array with the scheduler's ID for each task in the job.
You should call the function setJobSchedulerData in the submit function (identified by the SubmitFcn property) and call getJobSchedulerData in any of the functions identified by the properties GetJobStateFcn, DestroyJobFcn, DestroyTaskFcn, CancelJobFcn, or CancelTaskFcn.
For more information and examples on using these functions and properties, see Manage Jobs with Generic Scheduler.

See how to solve large problems with minimal effort and reduce simulation time.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |