Optional Functions in IDO Extension Abstract Class (2D and Circuit)

The following functions, while a part of the IUDOExtension abstract class, have meaningful default implementations and are therefore optional. However, they can be overridden to take advantage of advanced functionality.

Validate(List<string> errorStringList,

Related Topics:

user-defined Outputs: Python Script API

Validate(List<string> errorStringList...) (2D and Circuit)

Syntax:

Validate(List<string> errorStringList,

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 of UDSProbeParams objects.
  • propList – IPropertyList object.
  • userSelectionForDynamicProbes – C# list of UDSProbeParams 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