MEDYAN.add_fila_type!

Tuple{MEDYAN.SysDef}

add_fila_type!(s::SysDef; name::Symbol, mono_states::Vector{Symbol}, param::FilamentMechParams)

Add a new filament type to the system definition.

Arguments

  • s::SysDef: The system definition to modify.
  • name::Symbol: The name of the new filament type.
  • mono_states::Vector{Symbol}: Vector of monomer state names for this filament type. Must not be empty.
  • param::FilamentMechParams: The filament mechanical parameters.

Returns

The modified SysDef.

Throws

  • Error if a filament type with the given name already exists.
  • Error if mono_states is empty.