beansdoc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
beansdoc [2011/01/05 11:48]
hourdin Counter doc
beansdoc [2011/01/05 12:02]
hourdin Threshold doc
Line 67: Line 67:
  
 ==== Threshold ==== ==== Threshold ====
 +
 +This bean allows to filter a //string// event flow containing decimal numbers according to a minimal or maximal value of the decimal number. For example, it can allow events to be relayed only when the value in the string is higher than "​17.2"​.
 +  * **set_Value(**//​string//​**)**:​ input method of the bean, receiving the string containing the decimal number.
 +  * **^CeilledValue**:​ the //string//: event emitted when the input value (of set_Value()) was higher than the threshold, or lower if the bean is inverted (Inverted property set to //true//).
 +  * **^ThresholdReachedBool**:​ a //boolean// event sent when the input values cross the threshold level, up or down. The value of the event is //true// when the value is above and //false// when value is below the threshold. This behavior is inverted when the bean is inverted (Inverted property set to //true//).
 +  * The **ThresholdValue** property parametrizes the value of the threshold that evaluates incoming events.
  
 ==== ValueFormatter ==== ==== ValueFormatter ====
  • beansdoc.txt
  • Last modified: 2011/06/21 18:08
  • by hourdin