io.gitlab.chaver.mining.patterns.measure.compute.IntMeasureComputer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of data-mining Show documentation
Show all versions of data-mining Show documentation
Data mining with Choco solver
/*
* This file is part of io.gitlab.chaver:data-mining (https://gitlab.com/chaver/data-mining)
*
* Copyright (c) 2022, IMT Atlantique
*
* Licensed under the MIT license.
*
* See LICENSE file in the project root for full license information.
*/
package io.gitlab.chaver.mining.patterns.measure.compute;
import io.gitlab.chaver.mining.patterns.io.Database;
import org.chocosolver.memory.IStateInt;
import org.chocosolver.solver.Model;
public abstract class IntMeasureComputer extends MeasureComputer {
protected IStateInt value;
public IntMeasureComputer(Database database, Model model) {
super(database);
this.value = model.getEnvironment().makeInt(getInitValue());
}
public abstract int getInitValue();
}