com.powsybl.flow_decomposition.xnec_provider.XnecProviderAllBranches 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/.
*/
package com.powsybl.flow_decomposition.xnec_provider;
import com.powsybl.contingency.Contingency;
import com.powsybl.flow_decomposition.XnecProvider;
import com.powsybl.iidm.network.Branch;
import com.powsybl.iidm.network.Network;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
/**
* @author Hugo Schindler {@literal }
*/
public class XnecProviderAllBranches implements XnecProvider {
@Override
public Set getNetworkElements(Network network) {
return network.getBranchStream().collect(Collectors.toSet());
}
@Override
public Set getNetworkElements(String contingencyId, Network network) {
return Collections.emptySet();
}
@Override
public Map> getNetworkElementsPerContingency(Network network) {
return Collections.emptyMap();
}
@Override
public List getContingencies(Network network) {
return Collections.emptyList();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy