InterPSS-Project / ipss-plugin

InterPSS plugin projects
8 stars 11 forks source link

Exporting .odm file using API #16

Closed Alessio88 closed 9 years ago

Alessio88 commented 9 years ago

Dear all,

using Java I have imported a network model from an .odm file, then I have modified it by adding and removing some buses and branches, now I need to export the .odm file of the new network in order to use it in another application.
I would like to know if there is a java method for exporting an .odm file from an AclfNetwork object.

Thank you in advance.

jinjingfarm commented 9 years ago

InterPSS currently has two approaches to exchange data, in addition to its API, 1) ODM; and 2) JSON bean. For ODM, the exchange is only one way ODM -> InterPSS, while for JSON bean, the exchange is two-way JSON Bean <-> InterPSS. The exchange is implemented in the following place:

https://github.com/InterPSS-Project/ipss-plugin/tree/master/ipss.plugin.core/src/org/interpss/mapper

It might be helpful if you can explain your usage scenario to help us to understand the requirement.

Alessio88 commented 9 years ago

Sorry, maybe I was not clear enough. I have created an AclfNetwork object in my Java application from a .odm file by using IpssAdapter. Now I have modified the AclfNetwork object creating a new bus. I would like to export my AclfNetwork object in another .odm file different from the previous one.