org.btrplace.scheduler.runner.disjoint.model.IterateProcedure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of split Show documentation
Show all versions of split Show documentation
Instance solvers that split a single problem into smaller parts
to solve them in parallel.
/*
* Copyright (c) 2016 University Nice Sophia Antipolis
*
* This file is part of btrplace.
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*/
package org.btrplace.scheduler.runner.disjoint.model;
import org.btrplace.model.Element;
/**
* A procedure to use on a set of contiguous elements that
* belong to the same partition.
*
* @author Fabien Hermenier
*/
@FunctionalInterface
public interface IterateProcedure {
/**
* The method to execute.
*
* @param index the splittable set to rely on
* @param key the partition key
* @param from the value lower bound
* @param to the value upper bound (exclusive)
*/
boolean extract(SplittableElementSet index, int key, int from, int to);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy