Job class(JMAG-Designer) is used when selecting multiple studies to run analyses.
The class can be created from Study or AnalysisGroup class.
.
More...
Public Member Functions | |
| void | ExportJobSystemFiles (String &xmlPath, bool allCase=false) |
| Exports the JMAG JobSystem execution file. More... | |
| bool | IsCanceled () |
| Returns True if the job is canceled. More... | |
| bool | IsFinished () |
| Returns True if the job has finished. More... | |
| bool | IsValid () |
| Returns True if an object is valid. More... | |
| void | SetSubValue (int index, String &name, Variant &value) |
| Specifies a property value for SubJob. More... | |
| void | SetTargetStudyList (StringList &var) |
| Specifies the study list to run. More... | |
| void | SetValue (String &name, Variant &value) |
| Specifies the value of a property. More... | |
| void | Submit (bool allCase=false) |
| Runs jobs. More... | |
| void | WaitForFinished () |
| Waits for the job to finish running. | |
Job class(JMAG-Designer) is used when selecting multiple studies to run analyses.
The class can be created from Study or AnalysisGroup class.
.
Example of creating the class object:
For more information about the properties for this command, see Properties Used for the Job Settings .
| void Job::ExportJobSystemFiles | ( | String & | xmlPath, |
| bool | allCase = false |
||
| ) |
Exports the JMAG JobSystem execution file.
| xmlPath | XML file name |
| allCase | Run type (True: all cases/False: current case) |
| bool Job::IsCanceled | ( | ) |
Returns True if the job is canceled.
| bool Job::IsFinished | ( | ) |
Returns True if the job has finished.
| bool Job::IsValid | ( | ) |
Returns True if an object is valid.
| void Job::SetSubValue | ( | int | index, |
| String & | name, | ||
| Variant & | value | ||
| ) |
Specifies a property value for SubJob.
| index | SubJob index |
| name | Property name. See Properties Used for the Job Settings . |
| value | Property value |
SubJob is created by direct coupled analysis.
For example, if two magnetic field analysis input files are specified for one thermal analysis input file as a coupled pair, “Job” and “SubJob” will be created.
| void Job::SetTargetStudyList | ( | StringList & | var | ) |
Specifies the study list to run.
| ver | List of names or indexes of studies |
| void Job::SetValue | ( | String & | name, |
| Variant & | value | ||
| ) |
Specifies the value of a property.
| name | Property name. See Properties Used for the Job Settings . |
| value | Property value |
| void Job::Submit | ( | bool | allCase = false | ) |
Runs jobs.
| allCase | Run type (True: runs analysis for all cases/False: runs analysis for current case) |