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

com.powsybl.cgmes.conversion.CgmesModelExtensionAdderImpl Maven / Gradle / Ivy

There is a newer version: 6.6.0
Show newest version
/**
 * Copyright (c) 2020, 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.cgmes.conversion;

import com.powsybl.cgmes.model.CgmesModel;
import com.powsybl.commons.extensions.AbstractExtensionAdder;
import com.powsybl.iidm.network.Network;

/**
 * @author Jérémy LABOUS 
 */
public class CgmesModelExtensionAdderImpl extends AbstractExtensionAdder
        implements CgmesModelExtensionAdder {

    private CgmesModel cgmes;

    protected CgmesModelExtensionAdderImpl(Network extendable) {
        super(extendable);
    }

    @Override
    protected CgmesModelExtension createExtension(Network extendable) {
        return new CgmesModelExtensionImpl(cgmes);
    }

    @Override
    public CgmesModelExtensionAdder withModel(CgmesModel cgmes) {
        this.cgmes = cgmes;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy