Validate(errorStringList,probeList,propList, dynamicProbes)
List<UDSProbeParams> udsProbParams,
IPropertyList propList,
List<UDSProbeParams> userSelectionForDynamicProbes)
- Purpose: This method is used to validate the user choices. The values of the properties entered, the probes etc. can be checked for suitability.
- Parameters:
udsProbParams
- C# list ofUDSProbeParams
objects.propList
–IPropertyList
object.userSelectionForDynamicProbes
- C# list ofUDSProbeParams
objects.errorStringList
- C# list of python strings. Output parameter. Should be set only if validation failed; ignored if validation is successful. One error string should be set per each validation error.- Returns:
True
on validation success,False
on failure. - Default implementation: always returns true.
Example:
def Validate(self, errorStringList,probeList,propList, dynamicProbes):
if probeList == None or probeList.Count == 0:
errorStringList.Add("Empty probe list")
return False
return True