com.powsybl.openreac.parameters.input.algo.OpenReacAlgoParamImpl Maven / Gradle / Ivy
The 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.openreac.parameters.input.algo;
import java.util.Objects;
/**
* @author Geoffroy Jamgotchian {@literal }
*/
public class OpenReacAlgoParamImpl implements OpenReacAlgoParam {
private final String name;
private final String value;
public OpenReacAlgoParamImpl(String name, String value) {
this.name = Objects.requireNonNull(name);
this.value = Objects.requireNonNull(value);
}
@Override
public String getName() {
return name;
}
@Override
public String getValue() {
return value;
}
}