UIOptions modelRelay needs to support value transformation

Description

The UIOptions modelRelay component performs a direct relay between changes to one model and another. It does not support any transformations of values (reversible or irreversible). The UIO modelRelay should allow integrators to specify a function that can be used to transform model values.

The VideoPlayer requires at least an irreversible transformation for language preferences: The VideoPlayer model stores language settings as an index into an array of tracks, but the UIO Preferences are stored as a language code.

The VideoPlayer originally contained its on private modelRelay (which I believe is the basis for the UIO modelRelay). This original VideoPlayer relay did support transformations, and that code could serve as the inspiration for modifying the UIO modelRelay.

Environment

None

Activity

Show:

Justin Obara June 26, 2015 at 1:51 PM

Reopening to change the fix version to 1.9

Cindy Li March 19, 2014 at 7:58 PM

The new model relay system implemented by Antranig already supports model transformations. This new system has made into the project master branch.

The next step is to upgrade the preferences framework, and video player, to make use of the new system.

Anastasia Cheetham May 29, 2013 at 5:57 PM

I had a chat with Antranig about this in the channel today (http://wiki.fluidproject.org/display/fluid/fluid-work+IRC+Logs-2013-05-29). He feels that the framework is not yet ready to support the kind of model relay transformation functionality that is provided by the VideoPlayer's private modelRelay, and that we shouldn't try to upgrade the UIO model relay until after Kasper's done some more work on the model transformation stuff, and we have some more converstaions about this.

So for now, the VideoPlayer will continue to use its own private modelRelay.

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created May 23, 2013 at 7:38 PM
Updated June 26, 2015 at 2:02 PM
Resolved June 26, 2015 at 2:02 PM