powsybl / powsybl-open-rao

A toolbox based on powsybl framework dedicated to power systems coordinated capacity calculation and security analysis projects
Mozilla Public License 2.0
17 stars 6 forks source link

Enrich basic CracCreationContext implementation #1082

Closed pet-mit closed 2 months ago

pet-mit commented 4 months ago

Describe the current behavior

Crac importers (ex-creators) have some specific code to handle basic information about the context of importing Crac objects. Code can be made common. For instance, ElementaryCreationContext does not have a "nativeObjectId" and a "createdObjectId". Crac creators all have to add this info.

Describe the expected behavior

Create basics implementations of CracCreationContext that are more re-usable.

Describe the motivation

Cleaner code, easier development of new Crac importers

Extra Information

No response

bqth29 commented 3 months ago

@pet-mit do you think it would make sense to add List<String> getCreatedObjectsIds() in the interface to handle the case where native object can create several objects in the CRAC?

pet-mit commented 3 months ago

@pet-mit do you think it would make sense to add List<String> getCreatedObjectsIds() in the interface to handle the case where native object can create several objects in the CRAC?

yes, why not !