Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • RailTopoModel RailTopoModel
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • railML.orgrailML.org
  • RailTopoModelRailTopoModel
  • Issues
  • #24
Closed
Open
Issue created Nov 07, 2024 by TT Coordination@coordination.TTMaintainer

Make ElementCollection independent of NetworkResource

While modelling 1.5 in RTM I noticed that the ElementCollection is derived NetworkResource and was wondering why that is? All contents of such collection are derived from NetworkResource, so why does the collection itself also need to inherit from this? It gains a validity, a name and the ability to be added to a LevelNetwork, all of which do not really make sense to me. The collection is used to aggregate things together. Why would such aggregation collection need a name when all contained elements as well as the LevelNetwork the contained elements belong to have a name. Same goes for the validity. The aggregation is unlikely to change over time unless the contained elements change. But if they do, this can be expressed via their validity. I would propose to remove the generalization and have ElementCollection not inherit from any base class. After all it is only a collection class.

Assignee
Assign to
Time tracking

railML.org e.V. (Registry of Associations: VR 5750) Phone: +49 351 47582911 Altplauen 19h; 01187 Dresden; Germany