src/filament/update_fila_mono_state.jl

MEDYAN.update_fila_mono_state!

update_fila_mono_state!(c::Context, p::FilaMonoIdx, state::Union{Symbol,MonomerState,Nothing})

Update a monomer state.

If state is nothing or a zero (0x00) MonomerState, the monomer is left unchanged.

MEDYAN.update_fila_mono_states!

update_fila_mono_states!(
    c::Context,
    center_monomer::FilaMonoIdx,
    states::AbstractVector{<:Union{Symbol,MonomerState,Nothing}},
    center::Integer,
)

Update consecutive monomer states around center_monomer.

states is ordered from the filament’s minus end toward its plus end, and states[center] is applied to center_monomer.

A nothing or zero (0x00) entry leaves the corresponding monomer unchanged (the monomer must still lie on the filament).