MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / OnThreshold

Struct OnThreshold

go/engine/node/trigger/threshold.go:28–38  ·  view source on GitHub ↗

OnThreshold fires when a watched numeric variable crosses a threshold.

Source from the content-addressed store, hash-verified

26const crossingOutID = "output"
27
28// OnThreshold fires when a watched numeric variable crosses a threshold.
29type OnThreshold struct {
30 engine.TriggerNode
31 variable workflowapi.Reference
32 threshold float64
33 direction Direction
34 deadband float64 // Hysteresis, signal must move past threshold±deadband to flip side.
35 binding *workflowapi.OutputBinding
36 updates <-chan expr.Value
37 wasAbove bool
38 seeded bool
39}
40
41func NewOnThreshold(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected