Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tclose opened this issue Jul 30, 2017 · 0 comments
Open

Comments

@tclose
Copy link
Contributor

tclose commented Jul 30, 2017

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).

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

No branches or pull requests

1 participant