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

com.powsybl.psse.model.pf.io.PowerFlowData 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/.
 * SPDX-License-Identifier: MPL-2.0
 */
package com.powsybl.psse.model.pf.io;

import com.powsybl.commons.datasource.DataSource;
import com.powsybl.commons.datasource.ReadOnlyDataSource;
import com.powsybl.psse.model.io.Context;
import com.powsybl.psse.model.pf.PssePowerFlowModel;
import com.powsybl.psse.model.PsseVersion;

import java.io.IOException;

/**
 * @author Luma Zamarreño {@literal }
 * @author José Antonio Marqués {@literal }
 */
public interface PowerFlowData {

    boolean isValidFile(ReadOnlyDataSource dataSource, String extension) throws IOException;

    PsseVersion readVersion(ReadOnlyDataSource dataSource, String extension) throws IOException;

    PssePowerFlowModel read(ReadOnlyDataSource dataSource, String ext, Context context) throws IOException;

    void write(PssePowerFlowModel model, Context context, DataSource dataSource) throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy