src/filament/sites.jl

MEDYAN.AnyState

AnyState()

Singleton type used in match in def_fila_reaction! and def_fila_tip_reaction! to match any MonomerState.

Use the exported constant anystate instead of constructing directly.

MEDYAN.anystate

const anystate = AnyState()

A special value in match in def_fila_reaction! and def_fila_tip_reaction! to match any MonomerState.

MEDYAN.FilamentSiteMask

Filament site that matches monomer states using per-position bitmasks.

Each position in the pattern has a StateBitMask specifying which MonomerState values are acceptable at that position. A monomer sequence matches (site count = 1.0) when every position’s state is contained in the corresponding bitmask.

  • center::Int64: index of center monomer in masks
  • masks::Vector{NTuple{4, UInt64}}: bitmask per position, ordered from minus end toward plus end