Skip to content

Replace universal Reference type with specific <Element-type>Reference types #110

Open
@tclose

Description

I have found that using a general reference type to refer to any type of (document-level) object makes the design of libraries to implement the specification more complex as it is often required to open up references as they are added and check what type they are. Therefore I think it would be simpler if there was a specific reference type for each element that can be referred to i.e.:

  • DynamicsReference
  • DynamicsPropertiesReference
  • DynamicsStateReference
  • ConnectionRuleReference
  • ConnectionRulePropertiesReference
  • RandomDistributionReference
  • RandomDistributionReference
  • PopulationReference
  • ProjectionReference
  • SelectionReference
  • NetworkReference

and if #109 is accepted

  • UnitReference
  • DimensionReference

This would also make the serialised files more easy to visually parse, especially for elements such as the Network class where populations and projections are mixed in together, and would simplify the specification where they appear (and allow it to be represented in XML schema).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions