Quantcast

Adaptive Magritte Trait

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Adaptive Magritte Trait

Tapple Gao
Quoting from http://sdmeta.gforge.inria.fr/Teaching/Lille/0910-MetaModelisation/07-08-Cours43-DescribedBy-Reng07aMagritte.pdf section 4.1:

The Adaptive- Model has two instance variables, the first being used to refer to the descriptions of the instance and the other one to keep a list of the actual values of the model. Transforming the class of the adaptive model into a Trait [18] allows us turn any existing class into an adaptive model and to combine the descriptions defined in the class with the ones provided by the instance.

I cannot find this trait. Does it exist in magritte? I see MAAdaptiveModel, but I am indeed trying to add adaptivity to a class, and am struggling with it
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.list.inf.unibe.ch/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Adaptive Magritte Trait

Tapple Gao
Well, I think I at least figured out how to implement it. My issue was how to detect whether a given description is a regular one, or an adaptive one, in the implementation of #readUsing:. However, I then remembered that PRComponent already needs to do this, and so I looked at it’s code. It does
(self basicMagritteDescription includes: aDescription)

That still leaves the question though, does this trait version of MAAdaptiveModel exist?

> On 11 Sep 2016, at 19:19, Tapple Gao <[hidden email]> wrote:
>
> Quoting from http://sdmeta.gforge.inria.fr/Teaching/Lille/0910-MetaModelisation/07-08-Cours43-DescribedBy-Reng07aMagritte.pdf section 4.1:
>
> The Adaptive- Model has two instance variables, the first being used to refer to the descriptions of the instance and the other one to keep a list of the actual values of the model. Transforming the class of the adaptive model into a Trait [18] allows us turn any existing class into an adaptive model and to combine the descriptions defined in the class with the ones provided by the instance.
>
> I cannot find this trait. Does it exist in magritte? I see MAAdaptiveModel, but I am indeed trying to add adaptivity to a class, and am struggling with it

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.list.inf.unibe.ch/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Adaptive Magritte Trait

Reza Razavi

I'd recommend checking http://scg.unibe.ch/archive/masters/Reng06a.pdf

Otherwise, MAAdaptiveModel appears having conceptual links with Adaptive Object-Models:

Cheers,
Reza

On 11/09/16 19:49, Tapple Gao wrote:
Well, I think I at least figured out how to implement it. My issue was how to detect whether a given description is a regular one, or an adaptive one, in the implementation of #readUsing:. However, I then remembered that PRComponent already needs to do this, and so I looked at it’s code. It does
(self basicMagritteDescription includes: aDescription)

That still leaves the question though, does this trait version of MAAdaptiveModel exist?

On 11 Sep 2016, at 19:19, Tapple Gao [hidden email] wrote:

Quoting from http://sdmeta.gforge.inria.fr/Teaching/Lille/0910-MetaModelisation/07-08-Cours43-DescribedBy-Reng07aMagritte.pdf section 4.1:

The Adaptive- Model has two instance variables, the first being used to refer to the descriptions of the instance and the other one to keep a list of the actual values of the model. Transforming the class of the adaptive model into a Trait [18] allows us turn any existing class into an adaptive model and to combine the descriptions defined in the class with the ones provided by the instance.

I cannot find this trait. Does it exist in magritte? I see MAAdaptiveModel, but I am indeed trying to add adaptivity to a class, and am struggling with it
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.list.inf.unibe.ch/listinfo/smallwiki


_______________________________________________
Magritte, Pier and Related Tools ...
https://www.list.inf.unibe.ch/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Adaptive Magritte Trait

DiegoLont
In reply to this post by Tapple Gao
Hi,

I have not read the article, but from what you describe I think Magritte already has an adaptive model, although it is not very explicit.

All objects can be asked for a magritte description on demand, and based on this description the components are generated. The components usually use a cache for the values, where the values are read from and stored into when the user makes changes. So, the components have a reference the description of the model and to the actual values of the model.

Regards,
Diego


> On 11 Sep 2016, at 19:49, Tapple Gao <[hidden email]> wrote:
>
> Well, I think I at least figured out how to implement it. My issue was how to detect whether a given description is a regular one, or an adaptive one, in the implementation of #readUsing:. However, I then remembered that PRComponent already needs to do this, and so I looked at it’s code. It does
> (self basicMagritteDescription includes: aDescription)
>
> That still leaves the question though, does this trait version of MAAdaptiveModel exist?
>
>> On 11 Sep 2016, at 19:19, Tapple Gao <[hidden email]> wrote:
>>
>> Quoting from http://sdmeta.gforge.inria.fr/Teaching/Lille/0910-MetaModelisation/07-08-Cours43-DescribedBy-Reng07aMagritte.pdf section 4.1:
>>
>> The Adaptive- Model has two instance variables, the first being used to refer to the descriptions of the instance and the other one to keep a list of the actual values of the model. Transforming the class of the adaptive model into a Trait [18] allows us turn any existing class into an adaptive model and to combine the descriptions defined in the class with the ones provided by the instance.
>>
>> I cannot find this trait. Does it exist in magritte? I see MAAdaptiveModel, but I am indeed trying to add adaptivity to a class, and am struggling with it
>
> _______________________________________________
> Magritte, Pier and Related Tools ...
> https://www.list.inf.unibe.ch/listinfo/smallwiki

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.list.inf.unibe.ch/listinfo/smallwiki
Loading...