Interface ProjectCase

  • All Known Implementing Classes:
    ImportedCase, VirtualCase

    public interface ProjectCase
    Common interface for project files able to provide a Network.
    Author:
    Geoffroy Jamgotchian
    • Method Detail

      • getNetwork

        com.powsybl.iidm.network.Network getNetwork()
      • getNetwork

        com.powsybl.iidm.network.Network getNetwork​(List<com.powsybl.iidm.network.NetworkListener> listeners)
        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.
      • invalidateNetworkCache

        void invalidateNetworkCache()