blob: 4fd97fe288ce7eb1f3e874d1163f57b657f0f8e3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2018 Agence spatiale canadienne / Canadian Space Agency
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Pierre Allard,
* Regent L'Archeveque,
* Sebastien Gemme - initial API and implementation
*
* SPDX-License-Identifier: EPL-1.0
*
*******************************************************************************/
package org.eclipse.apogy.addons.mobility.pathplanners.graph.impl;
import org.eclipse.apogy.addons.mobility.pathplanners.graph.ApogyAddonsMobilityPathplannersGraphFactory;
import org.eclipse.apogy.addons.mobility.pathplanners.graph.MobilityEdge;
import org.eclipse.apogy.common.geometry.data3d.CartesianPolygon;
public class MobilityEdgeFactoryCustomImpl extends MobilityEdgeFactoryImpl {
@Override
public MobilityEdge createEdge(CartesianPolygon source, CartesianPolygon destination) {
MobilityEdge edge = ApogyAddonsMobilityPathplannersGraphFactory.eINSTANCE.createMobilityEdge();
edge.setFrom(source);
edge.setTo(destination);
edge.getCostFunctions().addAll(this.getCostFunctions());
return edge;
}
} // MobilityEdgeFactoryImpl