Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

[11:45:42 CDT(-0500)] <anastasiac> Hey, Bosmon, are you there?

[12:03:54 CDT(-0500)] <Bosmon> hi anastasiac

[12:04:30 CDT(-0500)] <anastasiac> Hi, Bosmon. I'm wondering if you have a few minutes to chat about model transformation

[12:04:43 CDT(-0500)] <Bosmon> sure

[12:04:51 CDT(-0500)] <anastasiac> I'm trying to update the UIO model relay in a way that would be useful for the video player

[12:06:08 CDT(-0500)] <anastasiac> hm

[12:06:43 CDT(-0500)] <anastasiac> I have a question about what can be put in to the rules for a transformation

[12:07:04 CDT(-0500)] <anastasiac> I can specify any function, not just one of the pre-packaged transformations

[12:07:19 CDT(-0500)] <anastasiac> and the rule object is passed as an argument to that transformation function, is that right?

[12:07:26 CDT(-0500)] <Bosmon> anastasiac - a function without a recognised grade will be interpreted as a "standardTransformFunction"

[12:07:45 CDT(-0500)] <anastasiac> the functions must be free functions, right?

[12:08:00 CDT(-0500)] <Bosmon> anastasiac - no, a bare function will simply receive the input object from the current transformation

[12:08:25 CDT(-0500)] <anastasiac> can the transformation be something other than a free function? e.g. a method on a component?

[12:08:37 CDT(-0500)] <Bosmon> anastasiac - there is currently no integration between Model Transformations and IoC, correct

[12:08:48 CDT(-0500)] <Bosmon> So there is no ability to specify anything other than a free function as a transform function

[12:09:39 CDT(-0500)] <anastasiac> so if my transformation needs information from a component, I need to choose a transformation grade that results in the rule object being passed to the function?

[12:10:08 CDT(-0500)] <anastasiac> ok, here's the use case:

[12:10:27 CDT(-0500)] <anastasiac> UIEnhancer stores language preferences as a language code, e.g. "en"

[12:10:42 CDT(-0500)] <anastasiac> the video player stores the language preference as an index into the array of tracks

[12:11:04 CDT(-0500)] <anastasiac> so the transformation function needs to search through the array of tracks for (the first) one that has the specified language code

[12:11:24 CDT(-0500)] <anastasiac> so the question is: how to get the array of tracks to the transformation function?

[12:11:54 CDT(-0500)] <anastasiac> does that make any sense, Bosmon? sorry, I'm feeling rather inarticulate today

  • No labels