com.powsybl.psse.model.pf.io.PowerFlowData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powsybl-psse-model Show documentation
Show all versions of powsybl-psse-model Show documentation
PSS/E raw format data model
/**
* 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