jopt.csp.variable
Interface CspVariableFactory


public interface CspVariableFactory

Interface of object that is used to generate instances of csp variables


Method Summary
 CspBooleanVariable booleanVar(java.lang.String name)
          Creates a boolean variable
 CspBooleanVariable booleanVar(java.lang.String name, CspBooleanExpr expr)
          Creates an instance of a CspBooleanVariable object based on an expression.
 CspBooleanVariable booleanVar(java.lang.String name, CspConstraint constraint)
          Creates a boolean variable that wraps a constraint
 CspDoubleVariable doubleVar(java.lang.String name, CspDoubleCast expr)
          Creates an instance of a CspDoubleVariable object based on an expression.
 CspDoubleVariable doubleVar(java.lang.String name, CspDoubleVariable var)
          Creates an instance of a CspDoubleVariable object
 CspDoubleVariable doubleVar(java.lang.String name, double min, double max)
          Creates an instance of a CspDoubleVariable object; uses an interval domain by default
 CspFloatVariable floatVar(java.lang.String name, CspFloatCast expr)
          Creates an instance of a CspFloatVariable object based on an expression.
 CspFloatVariable floatVar(java.lang.String name, CspFloatVariable var)
          Creates an instance of a CspFloatVariable object
 CspFloatVariable floatVar(java.lang.String name, float min, float max)
          Creates an instance of a CspFloatVariable object; uses an interval-based domain by default
 CspGenericBooleanExpr genericBoolean(java.lang.String name, CspGenericIndex[] indices, CspBooleanExpr[] expressions)
          Produces a generic variable that wraps a set of expressions
 CspGenericBooleanExpr genericBoolean(java.lang.String name, CspGenericIndex[] indices, CspConstraint constraint)
          Produces a generic variable that wraps a constraint
 CspGenericBooleanExpr genericBoolean(java.lang.String name, CspGenericIndex index, CspBooleanExpr[] expressions)
          Produces a generic variable that wraps a set of expressions
 CspGenericBooleanExpr genericBoolean(java.lang.String name, CspGenericIndex index, CspConstraint constraint)
          Produces a generic variable that wraps a constraint
 CspGenericBooleanConstant genericBooleanConst(java.lang.String name, CspGenericIndex[] indices, boolean[] nodes)
          Creates a generic boolean constant
 CspGenericBooleanConstant genericBooleanConst(java.lang.String name, CspGenericIndex index, boolean[] nodes)
          Creates a generic boolean constant
 CspGenericDoubleExpr genericDouble(java.lang.String name, CspGenericIndex[] indices, CspDoubleVariable[] variables)
          Produces a generic variable that wraps a set of nodes
 CspGenericDoubleExpr genericDouble(java.lang.String name, CspGenericIndex[] indices, int min, int max)
          Produces a generic variable that wraps a set of nodes
 CspGenericDoubleExpr genericDouble(java.lang.String name, CspGenericIndex index, CspDoubleVariable[] variables)
          Produces a generic variable that wraps a set of nodes
 CspGenericDoubleExpr genericDouble(java.lang.String name, CspGenericIndex index, int min, int max)
          Produces a generic variable that wraps a set of nodes
 CspGenericDoubleConstant genericDoubleConst(java.lang.String name, CspGenericIndex[] indices, double[] nodes)
          Creates a generic double constant
 CspGenericDoubleConstant genericDoubleConst(java.lang.String name, CspGenericIndex[] indices, java.lang.Double[] nodes)
          Creates a generic double constant
 CspGenericDoubleConstant genericDoubleConst(java.lang.String name, CspGenericIndex index, double[] nodes)
          Creates a generic double constant
 CspGenericDoubleConstant genericDoubleConst(java.lang.String name, CspGenericIndex index, java.lang.Double[] nodes)
          Creates a generic double constant
 CspGenericFloatExpr genericFloat(java.lang.String name, CspGenericIndex[] indices, CspFloatVariable[] variables)
          Produces a generic variable that wraps a set of nodes
 CspGenericFloatExpr genericFloat(java.lang.String name, CspGenericIndex[] indices, int min, int max)
          Produces a generic variable that wraps a set of nodes
 CspGenericFloatExpr genericFloat(java.lang.String name, CspGenericIndex index, CspFloatVariable[] variables)
          Produces a generic variable that wraps a set of nodes
 CspGenericFloatExpr genericFloat(java.lang.String name, CspGenericIndex index, int min, int max)
          Produces a generic variable that wraps a set of nodes
 CspGenericFloatConstant genericFloatConst(java.lang.String name, CspGenericIndex[] indices, float[] nodes)
          Creates a generic float constant
 CspGenericFloatConstant genericFloatConst(java.lang.String name, CspGenericIndex[] indices, java.lang.Float[] nodes)
          Creates a generic float constant
 CspGenericFloatConstant genericFloatConst(java.lang.String name, CspGenericIndex index, float[] nodes)
          Creates a generic float constant
 CspGenericFloatConstant genericFloatConst(java.lang.String name, CspGenericIndex index, java.lang.Float[] nodes)
          Creates a generic float constant
 CspGenericIndex genericIndex(java.lang.String name, int size)
          Creates a generic index for use with generic variables
 CspGenericIntExpr genericInt(java.lang.String name, CspGenericIndex[] indices, CspIntVariable[] variables)
          Produces a generic variable that wraps a set of nodes
 CspGenericIntExpr genericInt(java.lang.String name, CspGenericIndex[] indices, int min, int max)
          Produces a generic variable that wraps a set of nodes
 CspGenericIntExpr genericInt(java.lang.String name, CspGenericIndex index, CspIntVariable[] variables)
          Produces a generic variable that wraps a set of nodes
 CspGenericIntExpr genericInt(java.lang.String name, CspGenericIndex index, int min, int max)
          Produces a generic variable that wraps a set of nodes
 CspGenericIntConstant genericIntConst(java.lang.String name, CspGenericIndex[] indices, int[] nodes)
          Creates a generic int constant
 CspGenericIntConstant genericIntConst(java.lang.String name, CspGenericIndex[] indices, java.lang.Integer[] nodes)
          Creates a generic int constant
 CspGenericIntConstant genericIntConst(java.lang.String name, CspGenericIndex index, int[] nodes)
          Creates a generic int constant
 CspGenericIntConstant genericIntConst(java.lang.String name, CspGenericIndex index, java.lang.Integer[] nodes)
          Creates a generic int constant
 CspGenericLongExpr genericLong(java.lang.String name, CspGenericIndex[] indices, CspLongVariable[] variables)
          Produces a generic variable that wraps a set of nodes
 CspGenericLongExpr genericLong(java.lang.String name, CspGenericIndex[] indices, int min, int max)
          Produces a generic variable that wraps a set of nodes
 CspGenericLongExpr genericLong(java.lang.String name, CspGenericIndex index, CspLongVariable[] variables)
          Produces a generic variable that wraps a set of nodes
 CspGenericLongExpr genericLong(java.lang.String name, CspGenericIndex index, int min, int max)
          Produces a generic variable that wraps a set of nodes
 CspGenericLongConstant genericLongConst(java.lang.String name, CspGenericIndex[] indices, long[] nodes)
          Creates a generic long constant
 CspGenericLongConstant genericLongConst(java.lang.String name, CspGenericIndex[] indices, java.lang.Long[] nodes)
          Creates a generic long constant
 CspGenericLongConstant genericLongConst(java.lang.String name, CspGenericIndex index, long[] nodes)
          Creates a generic long constant
 CspGenericLongConstant genericLongConst(java.lang.String name, CspGenericIndex index, java.lang.Long[] nodes)
          Creates a generic long constant
 double getDefaultPrecision()
          Returns the default precision used when creating real variables
 CspMath getMath()
          Returns a variable math object for advanced math operations
 CspSetConstraints getSetConstraints()
          Returns an object used to create constraints on sets
 CspIntSetVariable intSetVar(java.lang.String name, int min, int max)
          Creates an instance of a CspIntSetVariable object
 CspIntVariable intVar(java.lang.String name, CspIntExpr expr)
          Creates an instance of a CspIntVariable object based on an expression.
 CspIntVariable intVar(java.lang.String name, CspIntVariable var)
          Creates an instance of a CspIntVariable object
 CspIntVariable intVar(java.lang.String name, int min, int max)
          Creates an instance of a CspIntVariable object; uses an interval-based domain by default
 CspIntVariable intVar(java.lang.String name, int min, int max, boolean sparse)
          Creates an instance of a CspIntVariable object
 CspIntVariable intVar(java.lang.String name, IntSparseSet vals)
          Creates an instance of a CspIntVariable object; uses an interval domain by default
 CspLongVariable longVar(java.lang.String name, CspLongCast expr)
          Creates an instance of a CspLongVariable object based on an expression.
 CspLongVariable longVar(java.lang.String name, CspLongVariable var)
          Creates an instance of a CspLongVariable object
 CspLongVariable longVar(java.lang.String name, long min, long max)
          Creates an instance of a CspLongVariable object; uses an interval-based domain by default
 CspLongVariable longVar(java.lang.String name, long min, long max, boolean sparse)
          Creates an instance of a CspLongVariable object
 void setDefaultPrecision(double p)
          Sets the default precision used when creating real variables
 

Method Detail

setDefaultPrecision

public void setDefaultPrecision(double p)
Sets the default precision used when creating real variables

Parameters:
p - value representing the minimum guaranteed precision

getDefaultPrecision

public double getDefaultPrecision()
Returns the default precision used when creating real variables

Returns:
value representing the minimum guaranteed precision

getMath

public CspMath getMath()
Returns a variable math object for advanced math operations

Returns:
CspMath object

getSetConstraints

public CspSetConstraints getSetConstraints()
Returns an object used to create constraints on sets

Returns:
CspSetConstraints object used to create constraint on sets

intVar

public CspIntVariable intVar(java.lang.String name,
                             int min,
                             int max)
Creates an instance of a CspIntVariable object; uses an interval-based domain by default

Parameters:
name - Unique name assigned to variable
min - Lower bound for variable's domain
max - Upper bound for variable's domain
Returns:
CspIntVariable object populated by vals between min and max

intVar

public CspIntVariable intVar(java.lang.String name,
                             IntSparseSet vals)
Creates an instance of a CspIntVariable object; uses an interval domain by default

Parameters:
name - Unique name assigned to variable
vals - Set of sparse values for variable's domain

intVar

public CspIntVariable intVar(java.lang.String name,
                             int min,
                             int max,
                             boolean sparse)
Creates an instance of a CspIntVariable object

Parameters:
name - Unique name assigned to variable
min - Lower bound for variable's domain
max - Upper bound for variable's domain
sparse - Specifies the use of a sparse- or interval-based domain
Returns:
CspIntVariable object populated by vals between min and max

intVar

public CspIntVariable intVar(java.lang.String name,
                             CspIntVariable var)
Creates an instance of a CspIntVariable object

Parameters:
name - Unique name assigned to variable
var - Existing variable with a domain to clone
Returns:
CspIntVariable object populated by vals in var

intVar

public CspIntVariable intVar(java.lang.String name,
                             CspIntExpr expr)
Creates an instance of a CspIntVariable object based on an expression. The expression is constrained to be equal to the new variable.

Parameters:
name - Unique name assigned to variable
expr - Expression that variable is based upon
Returns:
CspIntVariable object constrained to be equal to expr

longVar

public CspLongVariable longVar(java.lang.String name,
                               long min,
                               long max)
Creates an instance of a CspLongVariable object; uses an interval-based domain by default

Parameters:
name - Unique name assigned to variable
min - Lower bound for variable's domain
max - Upper bound for variable's domain
Returns:
CspLongVariable object populated by vals between min and max

longVar

public CspLongVariable longVar(java.lang.String name,
                               long min,
                               long max,
                               boolean sparse)
Creates an instance of a CspLongVariable object

Parameters:
name - Unique name assigned to variable
min - Lower bound for variable's domain
max - Upper bound for variable's domain
sparse - Specifies the use of a sparse- or interval-based domain
Returns:
CspLongVariable object populated by vals between min and max

longVar

public CspLongVariable longVar(java.lang.String name,
                               CspLongVariable var)
Creates an instance of a CspLongVariable object

Parameters:
name - Unique name assigned to variable
var - Existing variable with a domain to clone
Returns:
CspLongVariable object populated by vals from the domain of var

longVar

public CspLongVariable longVar(java.lang.String name,
                               CspLongCast expr)
Creates an instance of a CspLongVariable object based on an expression. The expression is constrained to be equal to the new variable.

Parameters:
name - Unique name assigned to variable
expr - Expression that variable is based upon
Returns:
CspLongVariable object constrainted to be equal to expr

floatVar

public CspFloatVariable floatVar(java.lang.String name,
                                 float min,
                                 float max)
Creates an instance of a CspFloatVariable object; uses an interval-based domain by default

Parameters:
name - Unique name assigned to variable
min - Lower bound for variable's domain
max - Upper bound for variable's domain
Returns:
CspFloatVariable object populated by vals between min and max

floatVar

public CspFloatVariable floatVar(java.lang.String name,
                                 CspFloatVariable var)
Creates an instance of a CspFloatVariable object

Parameters:
name - Unique name assigned to variable
var - Existing variable with a domain to clone
Returns:
CspFloatVariable object populated by vals contained in var's domain

floatVar

public CspFloatVariable floatVar(java.lang.String name,
                                 CspFloatCast expr)
Creates an instance of a CspFloatVariable object based on an expression. The expression is constrained to be equal to the new variable.

Parameters:
name - Unique name assigned to variable
expr - Expression that variable is based upon
Returns:
CspFloatVariable object constrained to be equal to expr

doubleVar

public CspDoubleVariable doubleVar(java.lang.String name,
                                   double min,
                                   double max)
Creates an instance of a CspDoubleVariable object; uses an interval domain by default

Parameters:
name - Unique name assigned to variable
min - Lower bound for variable's domain
max - Upper bound for variable's domain
Returns:
CspDoubleVariable object populated by vals between min and max

doubleVar

public CspDoubleVariable doubleVar(java.lang.String name,
                                   CspDoubleVariable var)
Creates an instance of a CspDoubleVariable object

Parameters:
name - Unique name assigned to variable
var - Existing variable with a domain to clone
Returns:
CspDoubleVariable object populated by vals from the domain of var

doubleVar

public CspDoubleVariable doubleVar(java.lang.String name,
                                   CspDoubleCast expr)
Creates an instance of a CspDoubleVariable object based on an expression. The expression is constrained to be equal to the new variable.

Parameters:
name - Unique name assigned to variable
expr - Expression that variable is based upon
Returns:
CspDoubleVariable object constrainted to be equal to expr

intSetVar

public CspIntSetVariable intSetVar(java.lang.String name,
                                   int min,
                                   int max)
Creates an instance of a CspIntSetVariable object

Parameters:
name - Unique name assigned to variable
min - Lower bound for variable's domain
max - Upper bound for variable's domain
Returns:
CspIntSetVariable object populated by vals

genericIndex

public CspGenericIndex genericIndex(java.lang.String name,
                                    int size)
Creates a generic index for use with generic variables

Parameters:
name - Unique name assigned to index
size - Total number of variables that will be used with index
Returns:
generic index with given name and size

genericInt

public CspGenericIntExpr genericInt(java.lang.String name,
                                    CspGenericIndex index,
                                    CspIntVariable[] variables)
Produces a generic variable that wraps a set of nodes

Parameters:
name - Unique name assigned to variable
index - Index variable is based upon
variables - Array of variables generic variable wraps
Returns:
generic expression indexed over index, containing all variables

genericInt

public CspGenericIntExpr genericInt(java.lang.String name,
                                    CspGenericIndex[] indices,
                                    CspIntVariable[] variables)
Produces a generic variable that wraps a set of nodes

Parameters:
name - Unique name assigned to variable
indices - Array of indices variable is indexed upon
variables - Array of variables generic variable wraps
Returns:
generic expression indexed over indices, containing all variables

genericInt

public CspGenericIntExpr genericInt(java.lang.String name,
                                    CspGenericIndex index,
                                    int min,
                                    int max)
Produces a generic variable that wraps a set of nodes

Parameters:
name - Unique name assigned to variable
index - Index variable is based upon
min - Minimum value of domain of internal variables
max - Maximum value of domain of internal variables
Returns:
generic expression indexed over index and wrapping variableswith given min and max

genericInt

public CspGenericIntExpr genericInt(java.lang.String name,
                                    CspGenericIndex[] indices,
                                    int min,
                                    int max)
Produces a generic variable that wraps a set of nodes

Parameters:
name - Unique name assigned to variable
indices - Array of indices variable is indexed upon
min - Minimum value of domain of internal variables
max - Maximum value of domain of internal variables
Returns:
generic expression indexed over indices and wrapping variableswith given min and max

genericLong

public CspGenericLongExpr genericLong(java.lang.String name,
                                      CspGenericIndex index,
                                      CspLongVariable[] variables)
Produces a generic variable that wraps a set of nodes

Parameters:
name - Unique name assigned to variable
index - Index variable is based upon
variables - Array of variables generic variable wraps
Returns:
generic expression indexed over index and wrapping variables

genericLong

public CspGenericLongExpr genericLong(java.lang.String name,
                                      CspGenericIndex[] indices,
                                      CspLongVariable[] variables)
Produces a generic variable that wraps a set of nodes

Parameters:
name - Unique name assigned to variable
indices - Array of indices variable is indexed upon
variables - Array of variables generic variable wraps
Returns:
generic expression indexed over indices and wrapping variables

genericLong

public CspGenericLongExpr genericLong(java.lang.String name,
                                      CspGenericIndex index,
                                      int min,
                                      int max)
Produces a generic variable that wraps a set of nodes

Parameters:
name - Unique name assigned to variable
index - Index variable is based upon
min - Minimum value of domain of internal variables
max - Maximum value of domain of internal variables
Returns:
generic expression indexed over index and wrapping variableswith given min and max

genericLong

public CspGenericLongExpr genericLong(java.lang.String name,
                                      CspGenericIndex[] indices,
                                      int min,
                                      int max)
Produces a generic variable that wraps a set of nodes

Parameters:
name - Unique name assigned to variable
indices - Array of indices variable is indexed upon
min - Minimum value of domain of internal variables
max - Maximum value of domain of internal variables
Returns:
generic expression indexed over indices and wrapping variableswith given min and max

genericFloat

public CspGenericFloatExpr genericFloat(java.lang.String name,
                                        CspGenericIndex index,
                                        CspFloatVariable[] variables)
Produces a generic variable that wraps a set of nodes

Parameters:
name - Unique name assigned to variable
index - Index variable is based upon
variables - Array of variables generic variable wraps
Returns:
generic expression indexed over index and wrapping variables

genericFloat

public CspGenericFloatExpr genericFloat(java.lang.String name,
                                        CspGenericIndex[] indices,
                                        CspFloatVariable[] variables)
Produces a generic variable that wraps a set of nodes

Parameters:
name - Unique name assigned to variable
indices - Array of indices variable is indexed upon
variables - Array of variables generic variable wraps
Returns:
generic expression indexed over indices and wrapping variables

genericFloat

public CspGenericFloatExpr genericFloat(java.lang.String name,
                                        CspGenericIndex index,
                                        int min,
                                        int max)
Produces a generic variable that wraps a set of nodes

Parameters:
name - Unique name assigned to variable
index - Index variable is based upon
min - Minimum value of domain of internal variables
max - Maximum value of domain of internal variables
Returns:
generic expression indexed over index and wrapping variables with given min and max

genericFloat

public CspGenericFloatExpr genericFloat(java.lang.String name,
                                        CspGenericIndex[] indices,
                                        int min,
                                        int max)
Produces a generic variable that wraps a set of nodes

Parameters:
name - Unique name assigned to variable
indices - Array of indices variable is indexed upon
min - Minimum value of domain of internal variables
max - Maximum value of domain of internal variables
Returns:
generic expression indexed over indices and wrapping variables with given min and max

genericDouble

public CspGenericDoubleExpr genericDouble(java.lang.String name,
                                          CspGenericIndex index,
                                          CspDoubleVariable[] variables)
Produces a generic variable that wraps a set of nodes

Parameters:
name - Unique name assigned to variable
index - Index variable is based upon
variables - Array of variables generic variable wraps
Returns:
generic expression indexed over index and wrapping variables

genericDouble

public CspGenericDoubleExpr genericDouble(java.lang.String name,
                                          CspGenericIndex[] indices,
                                          CspDoubleVariable[] variables)
Produces a generic variable that wraps a set of nodes

Parameters:
name - Unique name assigned to variable
indices - Array of indices variable is indexed upon
variables - Array of variables generic variable wraps
Returns:
generic expression indexed over indices and wrapping variables

genericDouble

public CspGenericDoubleExpr genericDouble(java.lang.String name,
                                          CspGenericIndex index,
                                          int min,
                                          int max)
Produces a generic variable that wraps a set of nodes

Parameters:
name - Unique name assigned to variable
index - Index variable is based upon
min - Minimum value of domain of internal variables
max - Maximum value of domain of internal variables
Returns:
generic expression indexed over index and wrapping variables with min and max

genericDouble

public CspGenericDoubleExpr genericDouble(java.lang.String name,
                                          CspGenericIndex[] indices,
                                          int min,
                                          int max)
Produces a generic variable that wraps a set of nodes

Parameters:
name - Unique name assigned to variable
indices - Array of indices variable is indexed upon
min - Minimum value of domain of internal variables
max - Maximum value of domain of internal variables
Returns:
generic expression indexed over indices and wrapping variables with min and max

genericBoolean

public CspGenericBooleanExpr genericBoolean(java.lang.String name,
                                            CspGenericIndex[] indices,
                                            CspBooleanExpr[] expressions)
Produces a generic variable that wraps a set of expressions

Parameters:
name - Unique name assigned to variable
indices - Array of indices variable is indexed upon
expressions - Array of expressions that the generic expression wraps
Returns:
generic boolean expression indexed over indices and wrapping expressions

genericBoolean

public CspGenericBooleanExpr genericBoolean(java.lang.String name,
                                            CspGenericIndex index,
                                            CspBooleanExpr[] expressions)
Produces a generic variable that wraps a set of expressions

Parameters:
name - Unique name assigned to variable
index - Index variable is indexed upon
expressions - Array of expressions that the generic expression wraps
Returns:
generic boolean expression indexed over index and wrapping expressions

genericBoolean

public CspGenericBooleanExpr genericBoolean(java.lang.String name,
                                            CspGenericIndex[] indices,
                                            CspConstraint constraint)
Produces a generic variable that wraps a constraint

Parameters:
name - Unique name assigned to variable
indices - Array of indices variable is indexed upon
constraint - Constraint that wrapped by the generic expression
Returns:
generic boolean expression indexed over indices and wrapping constraint

genericBoolean

public CspGenericBooleanExpr genericBoolean(java.lang.String name,
                                            CspGenericIndex index,
                                            CspConstraint constraint)
Produces a generic variable that wraps a constraint

Parameters:
name - Unique name assigned to variable
index - Index variable is indexed upon
constraint - Constraint that wrapped by the generic expression
Returns:
generic boolean expression indexed over index and wrapping constraint

booleanVar

public CspBooleanVariable booleanVar(java.lang.String name,
                                     CspConstraint constraint)
Creates a boolean variable that wraps a constraint

Parameters:
name - Name of the new variable
constraint - Constraint that boolean variable will represent
Returns:
Boolean variable to be used in boolean expressions wrapping constraint

booleanVar

public CspBooleanVariable booleanVar(java.lang.String name,
                                     CspBooleanExpr expr)
Creates an instance of a CspBooleanVariable object based on an expression. The expression is constrained to be equal to the new variable.

Parameters:
name - Unique name assigned to variable
expr - Expression that variable is based upon
Returns:
Boolean variable to be used in boolean expressions wrapping expr

booleanVar

public CspBooleanVariable booleanVar(java.lang.String name)
Creates a boolean variable

Parameters:
name - Name of the new variable
Returns:
Boolean variable to be used in boolean expressions

genericIntConst

public CspGenericIntConstant genericIntConst(java.lang.String name,
                                             CspGenericIndex[] indices,
                                             java.lang.Integer[] nodes)
Creates a generic int constant

Parameters:
name - Name of the new constant
indices - Array of indices variable is indexed upon
nodes - Array of Integer objects containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericIntConst

public CspGenericIntConstant genericIntConst(java.lang.String name,
                                             CspGenericIndex[] indices,
                                             int[] nodes)
Creates a generic int constant

Parameters:
name - Name of the new constant
indices - Array of indices variable is indexed upon
nodes - Array of ints containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericDoubleConst

public CspGenericDoubleConstant genericDoubleConst(java.lang.String name,
                                                   CspGenericIndex[] indices,
                                                   java.lang.Double[] nodes)
Creates a generic double constant

Parameters:
name - Name of the new constant
indices - Array of indices variable is indexed upon
nodes - Array of Double objects containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericDoubleConst

public CspGenericDoubleConstant genericDoubleConst(java.lang.String name,
                                                   CspGenericIndex[] indices,
                                                   double[] nodes)
Creates a generic double constant

Parameters:
name - Name of the new constant
indices - Array of indices variable is indexed upon
nodes - Array of doubles containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericFloatConst

public CspGenericFloatConstant genericFloatConst(java.lang.String name,
                                                 CspGenericIndex[] indices,
                                                 java.lang.Float[] nodes)
Creates a generic float constant

Parameters:
name - Name of the new constant
indices - Array of indices variable is indexed upon
nodes - Array of Float objects containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericFloatConst

public CspGenericFloatConstant genericFloatConst(java.lang.String name,
                                                 CspGenericIndex[] indices,
                                                 float[] nodes)
Creates a generic float constant

Parameters:
name - Name of the new constant
indices - Array of indices variable is indexed upon
nodes - Array of floats containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericLongConst

public CspGenericLongConstant genericLongConst(java.lang.String name,
                                               CspGenericIndex[] indices,
                                               java.lang.Long[] nodes)
Creates a generic long constant

Parameters:
name - Name of the new constant
indices - Array of indices variable is indexed upon
nodes - Array of Long objects containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericLongConst

public CspGenericLongConstant genericLongConst(java.lang.String name,
                                               CspGenericIndex[] indices,
                                               long[] nodes)
Creates a generic long constant

Parameters:
name - Name of the new constant
indices - Array of indices variable is indexed upon
nodes - Array of longs containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericBooleanConst

public CspGenericBooleanConstant genericBooleanConst(java.lang.String name,
                                                     CspGenericIndex[] indices,
                                                     boolean[] nodes)
Creates a generic boolean constant

Parameters:
name - Name of the new constant
indices - Array of booleans constant is indexed upon
nodes - Array of longs containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericIntConst

public CspGenericIntConstant genericIntConst(java.lang.String name,
                                             CspGenericIndex index,
                                             java.lang.Integer[] nodes)
Creates a generic int constant

Parameters:
name - Name of the new constant
index - Index variable is indexed upon
nodes - Array of Integer objects containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericIntConst

public CspGenericIntConstant genericIntConst(java.lang.String name,
                                             CspGenericIndex index,
                                             int[] nodes)
Creates a generic int constant

Parameters:
name - Name of the new constant
index - Index variable is indexed upon
nodes - Array of ints containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericDoubleConst

public CspGenericDoubleConstant genericDoubleConst(java.lang.String name,
                                                   CspGenericIndex index,
                                                   java.lang.Double[] nodes)
Creates a generic double constant

Parameters:
name - Name of the new constant
index - Index variable is indexed upon
nodes - Array of Double objects containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericDoubleConst

public CspGenericDoubleConstant genericDoubleConst(java.lang.String name,
                                                   CspGenericIndex index,
                                                   double[] nodes)
Creates a generic double constant

Parameters:
name - Name of the new constant
index - Index variable is indexed upon
nodes - Array of doubles containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericFloatConst

public CspGenericFloatConstant genericFloatConst(java.lang.String name,
                                                 CspGenericIndex index,
                                                 java.lang.Float[] nodes)
Creates a generic float constant

Parameters:
name - Name of the new constant
index - Index variable is indexed upon
nodes - Array of Float objects containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericFloatConst

public CspGenericFloatConstant genericFloatConst(java.lang.String name,
                                                 CspGenericIndex index,
                                                 float[] nodes)
Creates a generic float constant

Parameters:
name - Name of the new constant
index - Index variable is indexed upon
nodes - Array of floats containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericLongConst

public CspGenericLongConstant genericLongConst(java.lang.String name,
                                               CspGenericIndex index,
                                               java.lang.Long[] nodes)
Creates a generic long constant

Parameters:
name - Name of the new constant
index - Index variable is indexed upon
nodes - Array of Long objects containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericLongConst

public CspGenericLongConstant genericLongConst(java.lang.String name,
                                               CspGenericIndex index,
                                               long[] nodes)
Creates a generic long constant

Parameters:
name - Name of the new constant
index - Index variable is indexed upon
nodes - Array of longs containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions

genericBooleanConst

public CspGenericBooleanConstant genericBooleanConst(java.lang.String name,
                                                     CspGenericIndex index,
                                                     boolean[] nodes)
Creates a generic boolean constant

Parameters:
name - Name of the new constant
index - Index variable is indexed upon
nodes - Array of longs containing the values for the constants
Returns:
CspGenericIntConstant to be used in Generic expressions