Adding accessing methods

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

Adding accessing methods

Alexandre Bergel
hi!

What about adding in FAMIXClass:
withAllSubclasses, allSubclasses, superclasses, withAllSuperclasses,  
allSuperclasses

FAMIXClass should be somewhat polymorphic to Behavior.
That would be useful... I can do it.

Any opinion?

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





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

Re: Adding accessing methods

Stéphane Ducasse
I'm for especially since we would like to be able to have pharo objects as metamodel instead of FAMIX.

Stef
On Apr 23, 2010, at 8:05 PM, Alexandre Bergel wrote:

> hi!
>
> What about adding in FAMIXClass:
> withAllSubclasses, allSubclasses, superclasses, withAllSuperclasses, allSuperclasses
>
> FAMIXClass should be somewhat polymorphic to Behavior.
> That would be useful... I can do it.
>
> Any opinion?
>
> Cheers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


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

Re: Adding accessing methods

Alexandre Bergel
> I'm for especially since we would like to be able to have pharo  
> objects as metamodel instead of FAMIX.

Indeed!!!
I would like to have numberOfMethods, numberOfLinesOfCode,  
numberOfAttributes defined in Behavior.
Stef, does this make sense? Shall I produce a slice and put it  
PharoInbox?

Alexandre


>
> Stef
> On Apr 23, 2010, at 8:05 PM, Alexandre Bergel wrote:
>
>> hi!
>>
>> What about adding in FAMIXClass:
>> withAllSubclasses, allSubclasses, superclasses,  
>> withAllSuperclasses, allSuperclasses
>>
>> FAMIXClass should be somewhat polymorphic to Behavior.
>> That would be useful... I can do it.
>>
>> Any opinion?
>>
>> Cheers,
>> Alexandre
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





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

Re: Adding accessing methods

Stéphane Ducasse

On Apr 23, 2010, at 10:50 PM, Alexandre Bergel wrote:

>> I'm for especially since we would like to be able to have pharo objects as metamodel instead of FAMIX.
>
> Indeed!!!
> I would like to have numberOfMethods, numberOfLinesOfCode, numberOfAttributes defined in Behavior.

the problems is that numberOfAttributes is not the right vocabulary.
Did you check for the other ones if there is not already an equivalent?

Stef

> Stef, does this make sense? Shall I produce a slice and put it PharoInbox?
>
> Alexandre
>
>
>>
>> Stef
>> On Apr 23, 2010, at 8:05 PM, Alexandre Bergel wrote:
>>
>>> hi!
>>>
>>> What about adding in FAMIXClass:
>>> withAllSubclasses, allSubclasses, superclasses, withAllSuperclasses, allSuperclasses
>>>
>>> FAMIXClass should be somewhat polymorphic to Behavior.
>>> That would be useful... I can do it.
>>>
>>> Any opinion?
>>>
>>> Cheers,
>>> Alexandre
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


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

Re: Adding accessing methods

Alexandre Bergel
>> I would like to have numberOfMethods,
>> , numberOfAttributes defined in Behavior.
>
> the problems is that numberOfAttributes is not the right vocabulary.
> Did you check for the other ones if there is not already an  
> equivalent?

Behavior>>instSize returns the number of named variables, tacking  
class inheritance into account.
ClassDescription>>numberOfMethods returns the number of local (ie not  
defined in a trait) methods

Behavior has nothing close to FAMIXClass>>numberOfLinesOfCode.

Cheers,
Alexandre


>
> Stef
>
>> Stef, does this make sense? Shall I produce a slice and put it  
>> PharoInbox?
>>
>> Alexandre
>>
>>
>>>
>>> Stef
>>> On Apr 23, 2010, at 8:05 PM, Alexandre Bergel wrote:
>>>
>>>> hi!
>>>>
>>>> What about adding in FAMIXClass:
>>>> withAllSubclasses, allSubclasses, superclasses,  
>>>> withAllSuperclasses, allSuperclasses
>>>>
>>>> FAMIXClass should be somewhat polymorphic to Behavior.
>>>> That would be useful... I can do it.
>>>>
>>>> Any opinion?
>>>>
>>>> Cheers,
>>>> Alexandre
>>>> --
>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>> Alexandre Bergel  http://www.bergel.eu
>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





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

Re: Adding accessing methods

Stéphane Ducasse
I thought that CompiledMethod has something because marcus use it to compute some stats now
rationalizing would be good.

so propose something on pharo and
numberOfInstanceVariables would be better

On Apr 24, 2010, at 10:53 PM, Alexandre Bergel wrote:

>>> I would like to have numberOfMethods,
>>> , numberOfAttributes defined in Behavior.
>>
>> the problems is that numberOfAttributes is not the right vocabulary.
>> Did you check for the other ones if there is not already an equivalent?
>
> Behavior>>instSize returns the number of named variables, tacking class inheritance into account.
> ClassDescription>>numberOfMethods returns the number of local (ie not defined in a trait) methods
>
> Behavior has nothing close to FAMIXClass>>numberOfLinesOfCode.
>
> Cheers,
> Alexandre
>
>
>>
>> Stef
>>
>>> Stef, does this make sense? Shall I produce a slice and put it PharoInbox?
>>>
>>> Alexandre
>>>
>>>
>>>>
>>>> Stef
>>>> On Apr 23, 2010, at 8:05 PM, Alexandre Bergel wrote:
>>>>
>>>>> hi!
>>>>>
>>>>> What about adding in FAMIXClass:
>>>>> withAllSubclasses, allSubclasses, superclasses, withAllSuperclasses, allSuperclasses
>>>>>
>>>>> FAMIXClass should be somewhat polymorphic to Behavior.
>>>>> That would be useful... I can do it.
>>>>>
>>>>> Any opinion?
>>>>>
>>>>> Cheers,
>>>>> Alexandre
>>>>> --
>>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>>> Alexandre Bergel  http://www.bergel.eu
>>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Moose-dev mailing list
>>>>> [hidden email]
>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> [hidden email]
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel  http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> [hidden email]
>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> [hidden email]
>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev


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