# Model exploration and traversing facilities
module model_utils
-import modelbuilder
+import model
redef class MConcern
end
redef class MProject
- redef fun concern_rank do
+ redef fun concern_rank is cached do
var max = 0
for mgroup in mgroups do
var mmax = mgroup.concern_rank
return res
end
- redef fun concern_rank do
+ redef fun concern_rank is cached do
var max = 0
for mmodule in collect_mmodules do
var mmax = mmodule.concern_rank
return res
end
- redef fun concern_rank do
+ redef fun concern_rank is cached do
var max = 0
for p in in_importation.direct_greaters do
var pmax = p.concern_rank