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

javax.constraints.impl.search.StrategyLogVar Maven / Gradle / Ivy

Go to download

JCP Standard JSR331 “Java Constraint Programming API”. It is used for Modeling and Solving Constraint Satisfaction and Optimization Problems using Java and off-the-shelf Constraint/Linear Solvers

The newest version!
package javax.constraints.impl.search;

import java.util.Calendar;

import javax.constraints.Var;

public class StrategyLogVar extends AbstractSearchStrategy {
	String text;
	Var var;
	
	public StrategyLogVar(String text, Var var) {
		super(var.getProblem().getSolver());
		this.text = text;
		this.var = var;
		setType(SearchStrategyType.CUSTOM);
	}
	
	public boolean run() {
		getProblem().log(text + var + ". " + Calendar.getInstance().getTime());
		return true;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy