Status: New Owner: ---- Labels: Type-Enhancement Priority-Medium Component-Roassal Milestone-5.0
New issue 1003 by tu...@tudorgirba.com: The treemap builder should offer a default weight of 1 http://code.google.com/p/moose-technology/issues/detail?id=1003
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.
Comment #1 on issue 1003 by tu...@tudorgirba.com: The treemap builder should offer a default weight of 1 http://code.google.com/p/moose-technology/issues/detail?id=1003
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
Updates: Status: WontFix
Comment #2 on issue 1003 by tu...@tudorgirba.com: The treemap builder should offer a default weight of 1 https://code.google.com/p/moose-technology/issues/detail?id=1003
Roassal1 is no longer supported