Changeset c89524b in Lumiera

Timestamp:
2026-10-21T23:58:18Z (3 weeks ago)
Author:
Ichthyostega <prg@…>
Branches:
dev/play
Children:
2830da7
Parents:
865bb08
git-author:
Ichthyostega <prg@…> (20/10/26 23:18:32)
git-committer:
Ichthyostega <prg@…> (21/10/26 23:58:18)
Message:

Parameters: clarify the foundations of creating a ParamSource

The basic shape of the implementation can be derived by reasoning:
Starting from the observation that the resulting Provision must be compatible,
it becomes clear that

  • the ParamSource must expose a ParamType (which reflects the type and scale of the result)
  • the consumer can then detect if a connection is possible, based on ID matches
  • the Scale::join() operation needs both the source and the target Scale
  • so a reference to both must be embedded by reference into a closure
  • and this implies that ParamSource itself has to store a generic invocable
  • furthermore, in case an adaptaion is necessary, this can be implemented by function composition
  • thus the adaptation can be offered as a chainable builder on the simple ParamSource, and will move the original functor into the new ParamSource, which is also outfitted with a suitable Scale that performs the actual adaptation and transformations.
(No files)

Note: See TracChangeset for help on using the changeset viewer.