- 易迪拓培训,专注于微波、射频、天线设计工程师的培养
HFSS15: Validate
List
IPropertyList propList,
List
• 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