add allUsing:

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

add allUsing:

VERHAEGHE Benoit
Hi all,

We have added the method "allUsing:".
It takes a Trait as a parameter and will return all the entities in your model that use the trait.

Example:
mooseModel allUsing: FamixTClass
will return all the FamixJavaClass and FamixJavaInnerClass (if FamixJavaInnerClass --|> FamixJavaClass)

It will be the main method if you want to query your model with abstract entities.

Benoît

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

Re: add allUsing:

Tudor Girba-2
Hi,

Interesting. Is this added on the instance side or MooseModel?

Cheers,
Tudor


> On Aug 5, 2019, at 11:00 AM, Benoît Verhaeghe <[hidden email]> wrote:
>
> Hi all,
>
> We have added the method "allUsing:".
> It takes a Trait as a parameter and will return all the entities in your model that use the trait.
>
> Example:
> mooseModel allUsing: FamixTClass
> will return all the FamixJavaClass and FamixJavaInnerClass (if FamixJavaInnerClass --|> FamixJavaClass)
>
> It will be the main method if you want to query your model with abstract entities.
>
> Benoît
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev

--
feenk.com

"We can create beautiful models in a vacuum.
But, to get them effective we have to deal with the inconvenience of reality."

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

Re: add allUsing:

VERHAEGHE Benoit
Hi, 

It is added on instance side of MooseAbstractGroup, as #allWithSubTypesOf: and, #allWithType:

Cheers,
Benoit


Le lun. 5 août 2019 à 11:06, Tudor Girba <[hidden email]> a écrit :
Hi,

Interesting. Is this added on the instance side or MooseModel?

Cheers,
Tudor


> On Aug 5, 2019, at 11:00 AM, Benoît Verhaeghe <[hidden email]> wrote:
>
> Hi all,
>
> We have added the method "allUsing:".
> It takes a Trait as a parameter and will return all the entities in your model that use the trait.
>
> Example:
> mooseModel allUsing: FamixTClass
> will return all the FamixJavaClass and FamixJavaInnerClass (if FamixJavaInnerClass --|> FamixJavaClass)
>
> It will be the main method if you want to query your model with abstract entities.
>
> Benoît
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev

--
feenk.com

"We can create beautiful models in a vacuum.
But, to get them effective we have to deal with the inconvenience of reality."

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

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