Automaton icon indicating copy to clipboard operation
Automaton copied to clipboard

Atm_comparator - catchUp vs skip

Open bapowell opened this issue 3 years ago • 1 comments

The Atm_comparator docs indicate that only by using catchUp=true in threshold() will it result in multiple callback calls. In my testing the value of catchUp doesn't matter. It always issues multiple callbacks when crossing multiple threshold values.

Then I noticed an undocumented "skip()" method in Atm_comparator.cpp. That one does the trick. It seems to do the same as what catchUp=false was intended to accomplish.

bapowell avatar Jan 21 '22 18:01 bapowell

Thanks, I'll have a look at it. I believe the catchUp() method was added by another contributor.

tinkerspy avatar Jan 30 '22 15:01 tinkerspy