choco.kernel.model.variables
Class ConstantFactory

java.lang.Object
  extended by choco.kernel.model.variables.ConstantFactory

public final class ConstantFactory
extends Object


Field Summary
protected static Logger LOGGER
           
 
Constructor Summary
protected ConstantFactory()
           
 
Method Summary
static RealConstantVariable getConstant(double value)
          Create if necessary and return the RealConstantVariable that corresponds to the value
static IntegerConstantVariable getConstant(int value)
          Create if necessary and return the IntegerConstantVariable that corresponds to the value
static SetConstantVariable getConstant(int[] values)
          Create if necessary and return the SetConstantVariable that corresponds to arrays of value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected static final Logger LOGGER
Constructor Detail

ConstantFactory

protected ConstantFactory()
Method Detail

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.