com.powsybl.flow_decomposition.NetworkStateManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powsybl-flow-decomposition Show documentation
Show all versions of powsybl-flow-decomposition Show documentation
Implementation of ACER methodology for flow decomposition
The newest version!
/*
* Copyright (c) 2022, RTE (http://www.rte-france.com)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
* SPDX-License-Identifier: MPL-2.0
*/
package com.powsybl.flow_decomposition;
import com.powsybl.iidm.network.Network;
/**
* This class handles the creation, management and destruction of network states based on a xnec provider
*
* @author Hugo Schindler {@literal }
*/
class NetworkStateManager {
private final Network network;
private final VariantManager variantManager;
public NetworkStateManager(Network network, XnecProvider xnecProvider) {
this.network = network;
this.variantManager = new VariantManager(network, xnecProvider);
variantManager.createAVariantPerContingency(network);
}
public void setNetworkVariant(String contingencyId) {
variantManager.setNetworkVariant(network, contingencyId);
}
public void deleteAllContingencyVariants() {
variantManager.deleteAllContingencyVariants(network);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy