Closed Anaphory closed 8 years ago
Thanks for catching this. This kind of problem has happened before. I plan to eventually write a nice class called NameManager or something, where you can request an id for something (e.g. NameManager.getNewID("tree") for a
However, because I want to get 1.0.0 out the door soon, for now I've just put the model name in front of the current IDs, with a colon separator, which should fix this specific issue. Can you try your configuration file again to make sure this works?
Instead of only allocating the provision of IDs, you could have a class that assembles the DAG of references, and writes it out as xml in a (later possibly optimized) manner. This would also be able to check that all referenced IDs exist and enforce some consistency in how dependencies are specfied, as opposed to the 145 different ways beast2 permits it.
To my surprise, I was bit by this again yesterday when I edited tests/configs/covarion.conf to use multiple models! Apparently I didn't do a through enough job last time. However, it now works, as guaranteed by the passing tests, so I'm closing this.
Defining two different covarion models in my configuration file, I get
IDs should always also contain the model name, I guess.