Package com.powsybl.afs.ext.base
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(ProjectCaseListener l)
com.powsybl.iidm.network.Network
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.void
invalidateNetworkCache()
String
queryNetwork(ScriptType scriptType, String scriptContent)
void
removeListener(ProjectCaseListener l)
-
-
-
Method Detail
-
queryNetwork
String queryNetwork(ScriptType scriptType, String scriptContent)
-
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()
-
addListener
void addListener(ProjectCaseListener l)
-
removeListener
void removeListener(ProjectCaseListener l)
-
-