core.forcing.ResolvedSegment

core.forcing.ResolvedSegment(kind, t0, tf, y0, yf, eval_mode, params)

Immutable record describing one compiled segment of a ForcingSequence.

Users do not construct this directly.

Attributes

kind : str

Element kind ('hold', 'ramp', 'harmonic', 'func').

t0, tf : float

Absolute start and end times in model time units.

y0, yf : float

Forcing value at t0 and tf.

eval_mode : str

Evaluation rule ('constant', 'linear', 'cosine', 'harmonic', 'func').

params : dict

Mode-specific evaluation parameters (e.g. amplitude, omega, callable).