model pool dictionaries in FAMIX

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

model pool dictionaries in FAMIX

Fabrizio Perin-3
Hi,
Which would be the best way to model in FAMIX connections caused by poolDictionaries?
For example:
ArrayedCollection subclass: #Text
               instanceVariableNames: 'string runs'
               classVariableNames: ''
               poolDictionaries: ’TextConstants’
               category: 'Collections−Text'
 
Text can access the class TextConstants becuse specified in its pool dictionary. where should I store the information that TextConstants  is in the pool dictionary of Text?
 
Thanks and cheers,
Fabrizio

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: model pool dictionaries in FAMIX

stephane ducasse

> Hi,
> Which would be the best way to model in FAMIX connections caused by poolDictionaries?
> For example:
> ArrayedCollection subclass: #Text
>                instanceVariableNames: 'string runs'
>                classVariableNames: ''
>                poolDictionaries: ’TextConstants’
>                category: 'Collections−Text'
>  
> Text can access the class TextConstants becuse specified in its pool dictionary. where should I store the information that TextConstants  is in the pool dictionary of Text?

I do not remember how I dealt with that.


I would model them as in Pharo where a pool Dictionary is a class and its key are class variables.
This way we do not introduce anything special.

So I would model
        TextConstant as a class and
  the keys of the dictionary as variables with "global" scope of TextConstants

Tell me if it makes sense


Stef


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: model pool dictionaries in FAMIX

Fabrizio Perin-3
2013/2/28 stephane ducasse <[hidden email]>

> Hi,
> Which would be the best way to model in FAMIX connections caused by poolDictionaries?
> For example:
> ArrayedCollection subclass: #Text
>                instanceVariableNames: 'string runs'
>                classVariableNames: ''
>                poolDictionaries: ’TextConstants’
>                category: 'Collections−Text'
>
> Text can access the class TextConstants becuse specified in its pool dictionary. where should I store the information that TextConstants  is in the pool dictionary of Text?

I do not remember how I dealt with that.


I would model them as in Pharo where a pool Dictionary is a class and its key are class variables.
This way we do not introduce anything special.

So I would model
        TextConstant as a class and
        the keys of the dictionary as variables with "global" scope of TextConstants

Tell me if it makes sense
 
Hi Stef,
this would be fine but what about the relationship between Text and TextConstants given by the fact that TextConstants is in the poolDictionary of Text?
 
This "static scope" information would be interesting to record.
It is not a containment it is more like visibility. Is there such a thing model in the FAMIXClass hierachy already?
 
Cheers,
Fabrizio

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev