com.powsybl.sld.cgmes.layout.CgmesZoneLayoutFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powsybl-single-line-diagram-cgmes-layout Show documentation
Show all versions of powsybl-single-line-diagram-cgmes-layout Show documentation
Single line diagram layout based on CGMES-DL
/**
* Copyright (c) 2019, 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.sld.cgmes.layout;
import com.powsybl.iidm.network.Network;
import com.powsybl.sld.layout.Layout;
import com.powsybl.sld.layout.SubstationLayoutFactory;
import com.powsybl.sld.layout.VoltageLevelLayoutFactory;
import com.powsybl.sld.layout.ZoneLayoutFactory;
import com.powsybl.sld.layout.pathfinding.ZoneLayoutPathFinderFactory;
import com.powsybl.sld.model.graphs.ZoneGraph;
import java.util.Objects;
/**
* @author Christian Biasuzzi {@literal }
*/
public class CgmesZoneLayoutFactory implements ZoneLayoutFactory {
private final Network network;
public CgmesZoneLayoutFactory(Network network) {
this.network = Objects.requireNonNull(network);
}
@Override
public Layout create(ZoneGraph graph, ZoneLayoutPathFinderFactory pathFinderFactory, SubstationLayoutFactory sLayoutFactory, VoltageLevelLayoutFactory vLayoutFactory) {
return new CgmesZoneLayout(graph, network);
}
}