Clamp#

class hybrid_aif.composition.Clamp[source]#

Bases: NamedTuple

A control node no planner chooses and no link drives, clamped at a constant.

The average under a distribution is taken once, at merge time, with a fixed vector: the static case of a node consumed as a probability vector. The per-tick consumption is the planner’s contraction (take_controls()). Design: nesting-and-coupling.md N8.

node: str#

A discrete control node, by name ("world.u_location").

level: int | Categorical | Array#

An int level (a delta: slices every reading state factor’s control axis, pinning the dynamics) or a Categorical or probability vector over the node’s levels (averages every reading state factor’s table over the axis; uniform means no one is steering).

static __new__(_cls, node, level)#

Create new instance of Clamp(node, level)