All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.powsybl.loadflow.AbstractNoSpecificParametersLoadFlowProvider Maven / Gradle / Ivy

There is a newer version: 6.5.1
Show newest version
/**
 * 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/.
 */
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy