You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, the weight block has to be specified. Instead, we should have a default weight
of 1. Furthermore, right now, if the weight returns 0 (like above), we get a ZeroDivide.
Zero should be handled without an error.
Reported by tudor@tudorgirba.com on 2013-11-15 05:25:25
The text was updated successfully, but these errors were encountered:
Also, the weight should ideally be aggregated from leaf nodes. For example, the code
below makes packages have only 1 weight, and thus the classes appear tiny and empty
packages appear as large as non empty ones. If we would have a way to specify aggregation,
we would be better off.
| builder rawView packages |
builder := ROTreeMapBuilder new.
rawView := ROView new.
packages := self mooseModel allNamespaces.
builder weightBlock: [ :el | (el isKindOf: FAMIXType) ifTrue: [ el numberOfMethods
+ 1] ifFalse: [ 1 ] ].
builder nodes: (packages), (self).
builder nestingFromAssociations:
(builder nodes collect: [ :each |
each parentScope -> each ]).
builder drawOn: rawView.
rawView open
Reported by tudor@tudorgirba.com on 2013-11-15 07:16:11
Originally reported on Google Code with ID 1003
Reported by
tudor@tudorgirba.com
on 2013-11-15 05:25:25The text was updated successfully, but these errors were encountered: