The interface IpfcRelationFunctionListener provides the method signatures to implement a custom relation function.
Methods Introduced:
|
|
IpfcRelationFunctionListener.CheckArguments |
|
|
IpfcRelationFunctionListener.AssignValue |
|
|
IpfcRelationFunctionListener.EvaluateFunction |
The method IpfcRelationFunctionListener.CheckArguments checks the validity of the arguments passed to the custom function. This listener method takes the following input arguments:
|
• |
The owner of the relation being evaluated |
|
• |
The custom function name |
|
• |
A sequence of arguments passed to the custom function |
If the implementation of this method determines that the arguments are not valid for the custom function, then the listener
method returns false. Otherwise, it returns true.
The method IpfcRelationFunctionListener.EvaluateFunction evaluates a custom relation function invoked on the right hand side of a relation. This listener method takes the following
input arguments:
|
• |
The owner of the relation being evaluated |
|
• |
The custom function name |
|
• |
A sequence of arguments passed to the custom function |
You must return the computed result of the custom relation function.
The method IpfcRelationFunctionListener.AssignValue evaluates a custom relation function invoked on the left hand side of a relation. It allows you to initialize properties
to be stored and used by your application. This listener method takes the following input arguments:
|
• |
The owner of the relation being evaluated |
|
• |
The custom function name |
|
• |
A sequence of arguments passed to the custom function |
|
• |
The value obtained by Creo Parametric from evaluating the right hand side of the relation |