Class ImportedCase

  • All Implemented Interfaces:
    ProjectCase

    public class ImportedCase
    extends ProjectFile
    implements ProjectCase
    A type of ProjectFile which represents a Network imported to the project, and provides methods to get the Network object or query it with a script.
    Author:
    Geoffroy Jamgotchian
    • Constructor Detail

      • ImportedCase

        public ImportedCase​(ProjectFileCreationContext context,
                            com.powsybl.iidm.network.ImportersLoader importersLoader)
    • Method Detail

      • getDataSource

        public com.powsybl.commons.datasource.ReadOnlyDataSource getDataSource()
      • getParameters

        public Properties getParameters()
      • getImporter

        public com.powsybl.iidm.network.Importer getImporter()
      • getNetwork

        public com.powsybl.iidm.network.Network getNetwork()
        Specified by:
        getNetwork in interface ProjectCase
      • getNetwork

        public com.powsybl.iidm.network.Network getNetwork​(List<com.powsybl.iidm.network.NetworkListener> listeners)
        Description copied from interface: ProjectCase
        Get the network and add a listeners on it in order to listen changes due to virtual case script application. The listeners will not be removed from the network at the end of the network loading, so the user of this method must make sure to handle it on its own. The contract of being notified may not be honored by all implementations (see remote service cache : listeners will not be added to the network). The user must check with the cache implementation he will use.
        Specified by:
        getNetwork in interface ProjectCase