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

com.powsybl.openrao.virtualhubs.networkextension.AssignedVirtualHubAdderImpl Maven / Gradle / Ivy

/*
 * 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 https://mozilla.org/MPL/2.0/.
 */
package com.powsybl.openrao.virtualhubs.networkextension;

import com.powsybl.commons.extensions.AbstractExtensionAdder;
import com.powsybl.iidm.network.Injection;

/**
 * @author Baptiste Seguinot {@literal }
 */
public class AssignedVirtualHubAdderImpl> extends AbstractExtensionAdder> implements AssignedVirtualHubAdder {

    private String code;
    private String eic;
    private boolean isMcParticipant;
    private String nodeName;
    private String relatedMa;

    public AssignedVirtualHubAdderImpl(T extendable) {
        super(extendable);
    }

    public AssignedVirtualHubAdder withCode(String code) {
        this.code = code;
        return this;
    }

    public AssignedVirtualHubAdder withEic(String eic) {
        this.eic = eic;
        return this;
    }

    public AssignedVirtualHubAdder withMcParticipant(boolean isMcParticipant) {
        this.isMcParticipant = isMcParticipant;
        return this;
    }

    public AssignedVirtualHubAdder withNodeName(String nodeName) {
        this.nodeName = nodeName;
        return this;
    }

    public AssignedVirtualHubAdder withRelatedMa(String relatedMa) {
        this.relatedMa = relatedMa;
        return this;
    }

    @Override
    public AssignedVirtualHubImpl createExtension(T extendable) {
        return new AssignedVirtualHubImpl<>(code, eic, isMcParticipant, nodeName, relatedMa);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy