sync.pds.solver.OneWeightFunctions Maven / Gradle / Ivy
/**
* ***************************************************************************** Copyright (c) 2018
* Fraunhofer IEM, Paderborn, Germany. This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
*
Contributors: Johannes Spaeth - initial API and implementation
* *****************************************************************************
*/
package sync.pds.solver;
import sync.pds.solver.nodes.Node;
import wpds.impl.Weight;
public class OneWeightFunctions
implements WeightFunctions {
private W one;
public OneWeightFunctions(W one) {
this.one = one;
}
@Override
public W push(Node curr, Node succ, Field field) {
return one;
}
@Override
public W normal(Node curr, Node succ) {
return one;
}
@Override
public W pop(Node curr) {
return one;
}
@Override
public W getOne() {
return one;
}
}
;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy