Skip to content

HasValueChanged

16.1

Inheritance 4 ancestors · 50 siblings

Class Documentation

Edit documentation

A bool driver that is true when the value of LogicDriver has changed since the previous evaluation.

On each evaluation the driver reads LogicDriver as a four-component vector and compares it with the value it stored at the previous evaluation. It returns true when any component differs by more than 0.00001. It then stores the new value. The first evaluation stores the value and returns false.

So the driver is true for one evaluation per change. To hold the result for a time, put it in a FixedDurationTriggeredBoolDriver or a DelayedBoolMaterialDriver.

Properties

LogicDriver

Pointer<ILogicDriver> = null
Edit documentation

The value to watch. Any kind of driver works. It must be set: the client does not check for a missing operand.