{"action":"created","issue":{"url":"https://api.github.com/repos/openego/dingo/issues/23","repository_url":"https://api.github.com/repos/openego/dingo","labels_url":"https://api.github.com/repos/openego/dingo/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/openego/dingo/issues/23/comments","events_url":"https://api.github.com/repos/openego/dingo/issues/23/events","html_url":"https://github.com/openego/dingo/issues/23","id":157464876,"number":23,"title":"using parent's class attribute within subclasses - how to ensure distinct attribute types?","user":{"login":"nesnoj","id":15910173,"avatar_url":"https://avatars.githubusercontent.com/u/15910173?v=3","gravatar_id":"","url":"https://api.github.com/users/nesnoj","html_url":"https://github.com/nesnoj","followers_url":"https://api.github.com/users/nesnoj/followers","following_url":"https://api.github.com/users/nesnoj/following{/other_user}","gists_url":"https://api.github.com/users/nesnoj/gists{/gist_id}","starred_url":"https://api.github.com/users/nesnoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nesnoj/subscriptions","organizations_url":"https://api.github.com/users/nesnoj/orgs","repos_url":"https://api.github.com/users/nesnoj/repos","events_url":"https://api.github.com/users/nesnoj/events{/privacy}","received_events_url":"https://api.github.com/users/nesnoj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openego/dingo/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"MGlauer","id":7835111,"avatar_url":"https://avatars.githubusercontent.com/u/7835111?v=3","gravatar_id":"","url":"https://api.github.com/users/MGlauer","html_url":"https://github.com/MGlauer","followers_url":"https://api.github.com/users/MGlauer/followers","following_url":"https://api.github.com/users/MGlauer/following{/other_user}","gists_url":"https://api.github.com/users/MGlauer/gists{/gist_id}","starred_url":"https://api.github.com/users/MGlauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MGlauer/subscriptions","organizations_url":"https://api.github.com/users/MGlauer/orgs","repos_url":"https://api.github.com/users/MGlauer/repos","events_url":"https://api.github.com/users/MGlauer/events{/privacy}","received_events_url":"https://api.github.com/users/MGlauer/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-05-30T09:25:16Z","updated_at":"2016-05-30T09:28:47Z","closed_at":null,"body":"Supposed I got a class `Grid` with an attribute `Region` and two child classes `MVGrid` and `LVGrid`. The child classes store different types in the inherited attribute, more precisely `MVGrid.Region = some MVRegion object` and  `LVGrid.Region = some LVRegion object`. Thus the attribute has no distinct type (and makes it hard to draw in UML class diagram).\r\n\r\nTo avoid this ambiguity I'd remove this attribute in parent class and add it to `MVGrid` as well as to `LVGrid`. Is there are better way to handle this?"},"comment":{"url":"https://api.github.com/repos/openego/dingo/issues/comments/222452266","html_url":"https://github.com/openego/dingo/issues/23#issuecomment-222452266","issue_url":"https://api.github.com/repos/openego/dingo/issues/23","id":222452266,"user":{"login":"nesnoj","id":15910173,"avatar_url":"https://avatars.githubusercontent.com/u/15910173?v=3","gravatar_id":"","url":"https://api.github.com/users/nesnoj","html_url":"https://github.com/nesnoj","followers_url":"https://api.github.com/users/nesnoj/followers","following_url":"https://api.github.com/users/nesnoj/following{/other_user}","gists_url":"https://api.github.com/users/nesnoj/gists{/gist_id}","starred_url":"https://api.github.com/users/nesnoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nesnoj/subscriptions","organizations_url":"https://api.github.com/users/nesnoj/orgs","repos_url":"https://api.github.com/users/nesnoj/repos","events_url":"https://api.github.com/users/nesnoj/events{/privacy}","received_events_url":"https://api.github.com/users/nesnoj/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T09:28:47Z","updated_at":"2016-05-30T09:28:47Z","body":"addition: in UML class diagram I could associate the parent class `Region` as attribute but since the attribute contains an instance of a subclass of `Region` it's not correct, is it?"}}
{"actor":{"display_login":"nesnoj"}}