Validate Detailed Compatibility

An opening ID is an entry point used to customize business logic. The Validate Detailed Compatibility opening id is available in the Mechanical interface and functional surface design resources set and it is used to check factors other than the type of the two interfaces.

Note: For more information about customization by business rules, see Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked when a mechanical interface is being used.

This opening ID is used to declare if a mechanical interface based on a Template is valid.

This opening ID is used to check if two mechanical interfaces are compatible.

  • To ensure a connection two checks are performed using two rules, both the checks need to declare the mechanical interface as valid. If the first mechanical interface is valid then the secon interface in the connection is checked.
  • The Validate Detailed Compatibility rule is dedicated for parameters for detailed compatibility. There parameters can be displayed using the Mechanical Interface Attributes Display command.

Input Objects

Input objects must be of the following types:

  • ThisObject: VPMPort
  • Parameters corresponds to the context object. Contains attributes to write the rule.
  • Validation: True or False

Sample

The following sample is useful for checking factors other than the type of the two interfaces. A leader can customize the detailed compatibility rules.

/* Parameter definition */
let SICompatibility(Integer)

let Undefined = 0
let Compatible = 1
let NotCompatible = 2

/* Parameter check */
set SICompatibility = Compatible

/* Return code */
if (SICompatibility == Undefined) 
{
  Validation = True
  Parameters.SetAttributeInteger("SICompatibility",SICompatibility)
  Parameters.Message = "NotDefined"
}
else if(SICompatibility == Compatible) 
{
  Validation = True
  Parameters.SetAttributeInteger("SICompatibility",SICompatibility)
  Parameters.Message = "OK" 
}
else if(SICompatibility == NotCompatible) 
{
  Validation = False
  Parameters.SetAttributeInteger("SICompatibility",SICompatibility)
  Parameters.Message = "KO" 
}