OpenDOF Project
boolean DOFOperationControl_SetHeuristic ( DOFOperationControl  self,
uint16  heuristic 
)

Enable randomized acceptance of the operation.

Rather than being exact, this parameter causes a heuristic algorithm on the responder where each picks a random number and compares it to the percentage. If their number is less than or equal to the percentage then they will take action and respond.

Since each responder determines whether to take action based solely on the percentage and the random number, this method does not cause any network synchronization of responders. It has an effect on both the total number of responders that take action and on the total response count.

Parameters
selfThe operationControl. This must not be NULL.
heuristicA heuristic, representing a percentage of receivers that should take action based on the request. The valid range is from 0, representing 0% (or none), to 32767, representing 100% (or all). The default is 32767 (all).
Returns
TRUE if the heuristic was set, FALSE otherwise.
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22