LinkTwoWay¶
- class glue.core.link_helpers.LinkTwoWay(cid1=None, cid2=None, forwards=None, backwards=None, **kwargs)[source]¶
Bases:
MultiLink
Return two links that connect input ComponentIDs in both directions
- Parameters:
- cid1glue.core.component_id.ComponentID
The first ComponentID to link
- cid2glue.core.component_id.ComponentID
The second ComponentID to link
- forwardsfunction
Function which maps cid1 to cid2 (e.g.
cid2=f(cid1)
)- backwardsfunction
Function which maps cid2 to cid1 (e.g.
cid1=f(cid2)
)