com.powsybl.loadflow.AbstractNoSpecificParametersLoadFlowProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powsybl-loadflow-api Show documentation
Show all versions of powsybl-loadflow-api Show documentation
An API and a tool to run load-flow computations
/**
* Copyright (c) 2023, 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.loadflow;
import com.powsybl.commons.config.PlatformConfig;
import com.powsybl.commons.extensions.Extension;
import com.powsybl.commons.extensions.ExtensionJsonSerializer;
import com.powsybl.commons.parameters.Parameter;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Optional;
/**
* @author Geoffroy Jamgotchian
*/
public abstract class AbstractNoSpecificParametersLoadFlowProvider implements LoadFlowProvider {
@Override
public Optional>> getSpecificParametersClass() {
return Optional.empty();
}
@Override
public Optional getSpecificParametersSerializer() {
return Optional.empty();
}
@Override
public Optional> loadSpecificParameters(PlatformConfig config) {
return Optional.empty();
}
@Override
public Optional> loadSpecificParameters(Map properties) {
return Optional.empty();
}
@Override
public Map createMapFromSpecificParameters(Extension extension) {
return Collections.emptyMap();
}
@Override
public void updateSpecificParameters(Extension extension, Map properties) {
// nothing to do
}
@Override
public List getSpecificParameters() {
return Collections.emptyList();
}
}