Skip to content

The treemap builder should offer a default weight of 1 #1003

Closed

Description

@seandenigris

Originally reported on Google Code with 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.

Reported by tudor@tudorgirba.com on 2013-11-15 05:25:25

Activity

  1. seandenigris commented on Aug 3, 2015

    @seandenigris
    ContributorAuthor
    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

  2. seandenigris commented on Aug 3, 2015

    @seandenigris
    ContributorAuthor
    Roassal1 is no longer supported
    

    Reported by tudor@tudorgirba.com on 2014-11-13 21:41:21

    • Status changed: WontFix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions