powsybl / powsybl-core

A framework to build power system oriented software
https://www.powsybl.org
Mozilla Public License 2.0
123 stars 39 forks source link

Network's properties should have different types #1105

Open miovd opened 4 years ago

miovd commented 4 years ago
miovd commented 4 years ago

Regarding the API, getStringProperty(), getDoubleProperty(), getBooleanProperty() and getIntProperty() would replace getProperty() in Identifiable interface. Furthermore, getOptionalStringProperty(), etc. could be implemented as well.

Regarding IIDM-XML serialization, a new required type field would be added in property element to specify which type a property is e.g.

<property name="isExample" type="boolean" value="true"/>