BorderDirection.java

/*
 * Copyright (c) 2024, 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;

import java.util.Objects;

/**
 * Border direction description POJO
 *
 * @author Vincent Bochet {@literal <vincent.bochet@rte-france.com>}
 */
public record BorderDirection(String from, String to, boolean isAhc) {
    public BorderDirection(String from, String to, boolean isAhc) {
        this.from = Objects.requireNonNull(from, "BorderDirection creation does not allow null attribute 'from'");
        this.to = Objects.requireNonNull(to, "BorderDirection creation does not allow null attribute 'to'");
        this.isAhc = isAhc;
    }
}