-
Notifications
You must be signed in to change notification settings - Fork 39
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
Export Network properties in XML #864
Conversation
1a76a22
to
89b2d06
Compare
Signed-off-by: Mathieu BAGUE <mathieu.bague@rte-france.com>
89b2d06
to
be110bd
Compare
@@ -20,6 +20,7 @@ | |||
<xs:element name="network"> | |||
<xs:complexType> | |||
<xs:sequence> | |||
<xs:element name="property" type="iidm:Property" minOccurs="0" maxOccurs="unbounded" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like in the Java model, we also could have network inherit from identifiable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not possible to set the network name in the Java model (through factory), so if I make an inheritance in the XSD, there is something to fix in the Java API too. Do you want I change this too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The network factory would not be the best place for setting an optional attribute like name but it is surprising that there is no setName method in Identiable
interface and that nobody has ever ask for it.
We can keep it as it is and see later, it is really a minor design issue.
Signed-off-by: Mathieu BAGUE <mathieu.bague@rte-france.com>
Please check if the PR fulfills these requirements (please use
'[x]'
to check the checkboxes, or submit the PR and then click the checkboxes)Does this PR already have an issue describing the problem ? If so, link to this issue using
'#XXX'
and skip the restThis PR is link to this topic
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix?
What is the current behavior? (You can also link to an open issue here)
If a network has properties, when exporting to XML, these properties are lost.
What is the new behavior (if this is a feature change)?
The properties are read/write by the XML formatter.
Does this PR introduce a breaking change or deprecate an API? If yes, check the following:
Other information:
(if any of the questions/checkboxes don't apply, please delete them entirely)