choco.kernel.model.variables
Class ConstantFactory
java.lang.Object
choco.kernel.model.variables.ConstantFactory
public final class ConstantFactory
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
protected static final Logger LOGGER
ConstantFactory
protected ConstantFactory()
getConstant
public static IntegerConstantVariable getConstant(int value)
- Create if necessary and return the IntegerConstantVariable that
corresponds to the value
- Parameters:
value
- int constant value
- Returns:
- IntegerConstantVariable
getConstant
public static SetConstantVariable getConstant(int[] values)
- Create if necessary and return the SetConstantVariable that
corresponds to arrays of value
- Parameters:
values
- set constant values
- Returns:
- SetConstantVariable
getConstant
public static RealConstantVariable getConstant(double value)
- Create if necessary and return the RealConstantVariable that
corresponds to the value
- Parameters:
value
- double real value
- Returns:
- RealConstantVariable
Copyright © 2012. All Rights Reserved.