-
Notifications
You must be signed in to change notification settings - Fork 0
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
Enforce unique MacroStaticReference for each dynamic model #112
Comments
The benefit of current approach is that, when adding a new model, everything is done in the same new class. We could enforce by design that uniqueness by delegating this role to a |
Similar issue exists for |
…cRef (#112) By design, all instances of one class derived from AbstractBlackBoxModelWithStaticRef implements getMacroStaticReference, and gives a unique MacroStaticReference according to the implementation of the target class. Note: still need to clean some class dependencies (see the modification in AbstractNetworkBlackBoxModel). It shouldn't be implemented. Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
…cRef (#112) By design, all instances of one class derived from AbstractBlackBoxModelWithStaticRef implements getMacroStaticReference, and gives a unique MacroStaticReference according to the implementation of the target class. Note: still need to clean some class dependencies (see the modification in AbstractNetworkBlackBoxModel). It shouldn't be implemented in classes that doesn't support varmappings. Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
…cRef (#112) By design, all instances of one class derived from AbstractBlackBoxModelWithStaticRef implements getMacroStaticReference, and gives a unique MacroStaticReference according to the implementation of the target class. Note: still need to clean some class dependencies (see the modification in AbstractNetworkBlackBoxModel). It shouldn't be implemented in classes that doesn't support varmappings. Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
…cRef (#112) By design, all instances of one class derived from AbstractBlackBoxModelWithStaticRef implements getMacroStaticReference, and gives a unique MacroStaticReference according to the implementation of the target class. Note: still need to clean some class dependencies (see the modification in AbstractNetworkBlackBoxModel). It shouldn't be implemented in classes that doesn't support varmappings. Signed-off-by: BAUDRIER Dimitri <dimitri.baudrier@rte-france.com>
Won't fix |
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
Nothing ensures that a model has the same MacroStaticReference for all of his instances. Only one is kept for all instances when dyd is written, as it is indexed in the corresponding map by the lib name.
What is the expected behavior?
One model has the same MacroStaticReference for all of his instances
What is the motivation / use case for changing the behavior?
Having by design a unique MacroStaticReference for each dynamic model
The text was updated successfully, but these errors were encountered: