Ok. Thanks a lot.

Abdelghani


De : Tudor Girba <tudor@tudorgirba.com>
�� : abdelghani ALIDRA <alidrandco@yahoo.fr>
Cc : Any question about pharo is welcome <pharo-users@lists.pharo.org>
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 <alidrandco@yahoo.fr> 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 <tudor@tudorgirba.com>
�� : abdelghani ALIDRA <alidrandco@yahoo.fr>; Any question about pharo is welcome <pharo-users@lists.pharo.org>
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 <alidrandco@yahoo.fr> wrote:
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



--

"Every thing has its own flow"





--

"Every thing has its own flow"