Coupler Chains #3479
Replies: 5 comments 1 reply
-
I don't think that sentence follows from the previous ones. Nor do I think it is true, depending on what you mean by "associated". |
Beta Was this translation helpful? Give feedback.
-
Would it not be clearer to join |
Beta Was this translation helpful? Give feedback.
-
I assume you mean 8 possible chains for 3 couplers? |
Beta Was this translation helpful? Give feedback.
-
Why is that a problem? That seems just a restatement of what we mean to apply a series of mappings in a sequence. |
Beta Was this translation helpful? Give feedback.
-
|
Another issue to keep in mind is that there are (potentially) 2 different use cases for expressions. In ExtData we want to export an expression that involves other export items of the same state. In History we want to import items that are exported from multiple other locations. So the write-up above is more akin to the History use case. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Coupler Chains
Each Coupler C has an ImportState SI and an ExportState SE. I refer to the Fields in those States as Import I and Export Fields E, respectively. Though nothing precludes multiple Fields in the ExportState, I'm considering each ExportState as the value of a mapping M that maps all the Coupler Import Fields to a single Coupler Export Field. Therefore each Coupler can be identified with one or more mappings M1, M2, ..., that have the same Import Fields. For the remainder of this document, I will treat each Coupler as a single Export Field Coupler. This generalizes to the case of multiple Export Fields if the state of each Action is independent of the other Action states. Also, though a Coupler can have multiple Actions, for now I consider only Couplers with a single Action. This may not generalize to Couplers with multiple Actions.
All Couplers have a single Export Field, but I divide them into SingleImport Couplers C1 with a single Import Mapping M1 and MultiImport CN Couplers with multiple Imports MN for the sake of considering the complications introduced by multiple Import Fields. A Coupler with an AccumulatorAction is a SingleImport Coupler. Similarly, a Coupler with an ExpressionAction is a MultiImport Coupler. The case of these two Couplers motivates the analysis below.
Now, I focus on the mappings, M1 and MN. Suppose the Export Field of an Expression Coupler CX is used as the Import Field of an Accumulation Coupler CA. The mapping application would be a composition:
MA MX I1 I2 = (MA MX) (I1 I2)
M I means that M applies to an import field I. Mappings apply right to left. So the composite mapping is MC = MA MX
There are 8 possible chains of mappings (Couplers):
(1) is the simplest case with no complications. (2) and (4) are two possible chains for the case of an Expression Mapping followed by an Accumulator Mapping. (3) may be a simple case like (1).
The chaining problem is that if a SimpleImport Coupler comes in the chain immediately after a MulitImport Coupler, the combined Coupler is a MultiImport Coupler. Put another way, a composite mapping MC = M1 MN is in the set of MultiImport mappings M.
Beta Was this translation helpful? Give feedback.
All reactions