MEDYAN.update_link!
Tuple{MEDYAN.Context, MEDYAN.Link}
Update the link.
Keyword Arguments
places=(): places or tags to attach to the link.Set an element to
nothingnot change the attached place. Set an element to a null place or tag to detach that place.state=(;): state properties to change.A
NamedTupleof changes. For example,state = (;k1 = 3.6, k7 = 2.0,)to changestate.k1to3.6andstate.k7to2.0.bond_states=(): bond state properties to change.A
Tupleof changes. If an element in the tuple isnothing, the corresponding bond state isn’t changed. For example,bond_states = (nothing, (;L0 = 3.6,))to changebond_states[2].L0to3.6.bond_enabled=(): bond enable flags to change.A
TupleofUnion{Bool, Nothing}. If an element in the tuple isnothing, the corresponding bond enable flag isn't changed. For example,bond_enabled = (nothing, true, false)` to not change bond 1, enable bond 2, and disable bond 3.reaction_enabled=(): reaction enable flags to change.A
TupleofNamedTupleof changes. If an element in the tuple isnothing, the corresponding reaction enable flags aren’t changed. For example,reaction_enabled = (nothing, (;a=true, b=false))to not change any reactions on place 1, enable reaction a on place 2, and disable reaction b on place 2.is_minimized::Bool=false: is the link marked as minimized.By default links are marked as minimized at the end of mechanics when updated.