IJobManagerValidateJobDefinition Method |
Validates all job elements of the given JobDefinition.
Namespace: RAYLASE.Marker.JobAssembly: RAYLASE.Marker.Job (in RAYLASE.Marker.Job.dll) Version: 2.19.0
Syntax(HashSet<JobValidatorCategory> Categories, string Error) ValidateJobDefinition(
JobDefinition jobDefinition,
WorkspaceConfiguration workspaceConfiguration,
JobValidatorCategory validationCategories,
bool isVerbose,
Dictionary<string, dmat4> processTranformationMap = null
)
Parameters
- jobDefinition JobDefinition
- JobDefinition to check.
- workspaceConfiguration WorkspaceConfiguration
- The WorkspaceConfiguration for retrieving
the offsets of the scanfields.
- validationCategories JobValidatorCategory
- The category or categories in which the
job should be validated. Combine the needed categories by a logical or.
- isVerbose Boolean
- If true some numerical data is added to the output strings.
- processTranformationMap DictionaryString, dmat4 (Optional)
- If null, for all geometry validations the
current process transformations of the scanners will be used. Otherwise, the process transformations that
are provided in this dictionary are used instead. An entry consists of the scanner's
short label and the process transformation, which will be used for the checks.
A scanner's process transformation will only be changed
if there is an entry with the same name in the dictionary.
The scanners' original process transformations will not be changed.
The replacement will be used only for the validation.
Return Value
ValueTupleHashSetJobValidatorCategory,
StringA tuple consisting out of a set of categories ("Geometry",
"Laser", "Scanner" and/or "Ramping") the found errors are sorted in,
and an error string with formatted error messages. The HashSet and
the error string are empty if no errors are found.
RemarksA JobDefinition can be validated in one category or a combination of
categories as defined in
JobValidatorCategory.
See Also