Hi everybody, when working with the FAMIX meta model, one must implement the previous, next, from and to methods for each class extending FAMIXAssosiation. What is the diffence between previous/from and next/to? if I make MyFamixClass>>from ^previous the same information is displayed twice in the Moose panel (because both methods are annotated with the MSEProperty in the superclass) Who can one avoid that? Regards Abdelghani |
Hi!
I have never used the previous and next. No idea whether this is used or not. What are you trying to achieve? Cheers, Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
|
In reply to this post by abdelghani ALIDRA
Hi, from/to are derived properties and they should describe the association. For example: FAMIXAccess>> from ^ self accessor FAMIXAccess>> to ^ self variable next/previous denote the position of the association in the code with respect to the other associations. For example, imagine this Pharo code: self doSomething. self doSomethingElse. you will get two FAMIXInvocations, and these can be linked through the previous property (next is derived). Does this make sense? Btw, these questions are better suited for the Moose mailing list: Cheers, Doru On Mon, Jun 22, 2015 at 5:06 PM, abdelghani ALIDRA <[hidden email]> wrote:
|
Thank you Tudor, Yes, it makes sence. Then I suppose that I just return nil if I dont want to display the previous and next information. Regards De : Tudor Girba <[hidden email]> À : abdelghani ALIDRA <[hidden email]>; Any question about pharo is welcome <[hidden email]> Envoyé le : Lundi 22 juin 2015 21h25 Objet : Re: [Pharo-users] Moose Hi, from/to are derived properties and they should describe the association. For example: FAMIXAccess>> from ^ self accessor FAMIXAccess>> to ^ self variable next/previous denote the position of the association in the code with respect to the other associations. For example, imagine this Pharo code: self doSomething. self doSomethingElse. you will get two FAMIXInvocations, and these can be linked through the previous property (next is derived). Does this make sense? Btw, these questions are better suited for the Moose mailing list: Cheers, Doru On Mon, Jun 22, 2015 at 5:06 PM, abdelghani ALIDRA <[hidden email]> wrote:
|
You do not have to return anything if you do not have any information. FAMIXAssociation already does that job for you. Doru On Tue, Jun 23, 2015 at 11:42 AM, abdelghani ALIDRA <[hidden email]> wrote:
|
Ok. Thanks a lot. Abdelghani De : Tudor Girba <[hidden email]> À : abdelghani ALIDRA <[hidden email]> Cc : Any question about pharo is welcome <[hidden email]> Envoyé le : Mardi 23 juin 2015 13h51 Objet : Re: [Pharo-users] Moose You do not have to return anything if you do not have any information. FAMIXAssociation already does that job for you. Doru On Tue, Jun 23, 2015 at 11:42 AM, abdelghani ALIDRA <[hidden email]> wrote:
|
In reply to this post by abdelghani ALIDRA
Hi Actually I am not using a specifc tool to generate feature models. For the moment, I am using XML Files to express features because tools like SPLOT use such format so it would be easy to export it into Moose. It would be nice to have the Frascati feature model file, just to test some new metrics and visualisations and better understand the code :) Abdelghani De : Alexandre Bergel <[hidden email]> À : abdelghani ALIDRA <[hidden email]> Envoyé le : Mercredi 24 juin 2015 17h03 Objet : Re: [Pharo-users] Moose Hi! No, we do not have a particular description of the text file. This was made in a very ad-hoc way, and very close to Familiar. Since I guess you are using your own platform to express features and variability, I guess this text description is not that useful for you. Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
|
Free forum by Nabble | Edit this page |