All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.btrplace.scheduler.choco.view.AliasedCumulatives Maven / Gradle / Ivy

Go to download

Implementation of the VM scheduler that use the Constraint Programming solver CHOCO to compute solutions.

The newest version!
/*
 * Copyright  2022 The BtrPlace Authors. All rights reserved.
 * Use of this source code is governed by a LGPL-style
 * license that can be found in the LICENSE.txt file.
 */

package org.btrplace.scheduler.choco.view;

/**
 * An interface to specify a cumulatives constraint when a resource is shared among
 * multiple nodes.
 *
 * @author Fabien Hermenier
 */
public interface AliasedCumulatives extends ChocoView {

    /**
     * The view identifier.
     */
    String VIEW_ID = "choco.aliasedCumulatives";

    /**
     * Add a new dimension.
     *
     * @param c     the capacity of the resource
     * @param cUse  the current usage for each VM
     * @param dUse  the current demand for each VM
     * @param alias the indexes of the nodes that share the resource
     */
    void addDim(int c, int[] cUse, int[] dUse, int[] alias);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy