The AccumBooleanGen Generator generates the cumulative sum of the referenced value based on the Boolean reset value.
Example 1: Accumulate Generated Numbers with Reset at Randomly Generated Boolean True
For this example, the AccumBooleanGen Generator will be linked with two other Generators:
- RandomGen Generator - Generates the random number value to be accumulated when Boolean is false.
- BooleanValueGen Generator - Generates the random Boolean value that determines when accumulation resets (true/false).
- reference - References linked RandomGen Generator
- reset - References linked BooleanValueGen Generator
RandomGen Generator Configuration:
BooleanValueGen Generator Configuration:
As shown below, when the Boolean Value is "true," the accumulation resets, and the initialValue is present as the generatedValue.
When several False values are present, the intialValue will be accumulated until a Boolean "true" is reached.