|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.csp.spi.arcalgorithm.variable.VarFactory
Implementation of CspVariables for creating implementations of variables
Constructor Summary | |
VarFactory()
|
Method Summary | |
jopt.csp.variable.CspBooleanExpr |
booleanExpr(java.lang.String name,
jopt.csp.variable.CspConstraint constraint)
Creates a boolean expression that wraps a constraint |
jopt.csp.variable.CspBooleanVariable |
booleanVar(java.lang.String name)
Creates a boolean variable |
jopt.csp.variable.CspBooleanVariable |
booleanVar(java.lang.String name,
jopt.csp.variable.CspBooleanExpr expr)
Creates an instance of a CspBooleanVariable object based on an expression. |
jopt.csp.variable.CspBooleanVariable |
booleanVar(java.lang.String name,
jopt.csp.variable.CspConstraint constraint)
Creates a boolean variable that wraps a constraint |
jopt.csp.variable.CspDoubleVariable |
doubleVar(java.lang.String name,
jopt.csp.variable.CspDoubleCast expr)
Creates an instance of a CspDoubleVariable object based on an expression. |
jopt.csp.variable.CspDoubleVariable |
doubleVar(java.lang.String name,
jopt.csp.variable.CspDoubleVariable var)
Creates an instance of a CspDoubleVariable object |
jopt.csp.variable.CspDoubleVariable |
doubleVar(java.lang.String name,
double min,
double max)
Creates an instance of a CspDoubleVariable object |
jopt.csp.variable.CspFloatVariable |
floatVar(java.lang.String name,
jopt.csp.variable.CspFloatCast expr)
Creates an instance of a CspFloatVariable object based on an expression. |
jopt.csp.variable.CspFloatVariable |
floatVar(java.lang.String name,
jopt.csp.variable.CspFloatVariable var)
Creates an instance of a CspFloatVariable object |
jopt.csp.variable.CspFloatVariable |
floatVar(java.lang.String name,
float min,
float max)
Creates an instance of a CspFloatVariable object |
jopt.csp.variable.CspGenericBooleanExpr |
genericBoolean(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
jopt.csp.variable.CspBooleanExpr[] expressions)
Produces a generic variable that wraps a set of expressions |
jopt.csp.variable.CspGenericBooleanExpr |
genericBoolean(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
jopt.csp.variable.CspConstraint constraint)
Produces a generic variable that wraps a constraint |
jopt.csp.variable.CspGenericBooleanExpr |
genericBoolean(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
jopt.csp.variable.CspBooleanExpr[] expressions)
Produces a generic variable that wraps a set of expressions |
jopt.csp.variable.CspGenericBooleanExpr |
genericBoolean(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
jopt.csp.variable.CspConstraint constraint)
Produces a generic variable that wraps a constraint |
jopt.csp.variable.CspGenericBooleanConstant |
genericBooleanConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
boolean[] nodes)
Creates a generic boolean constant |
jopt.csp.variable.CspGenericBooleanConstant |
genericBooleanConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
boolean[] nodes)
Creates a generic boolean constant |
jopt.csp.variable.CspGenericDoubleExpr |
genericDouble(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
jopt.csp.variable.CspDoubleVariable[] variables)
Produces a generic variable that wraps a set of nodes |
jopt.csp.variable.CspGenericDoubleExpr |
genericDouble(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
int min,
int max)
Produces a generic variable that wraps a set of nodes |
jopt.csp.variable.CspGenericDoubleExpr |
genericDouble(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
jopt.csp.variable.CspDoubleVariable[] variables)
Produces a generic variable that wraps a set of nodes |
jopt.csp.variable.CspGenericDoubleExpr |
genericDouble(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
int min,
int max)
Produces a generic variable that wraps a set of nodes |
jopt.csp.variable.CspGenericDoubleConstant |
genericDoubleConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
double[] nodes)
Creates a generic double constant |
jopt.csp.variable.CspGenericDoubleConstant |
genericDoubleConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
java.lang.Double[] nodes)
Creates a generic double constant |
jopt.csp.variable.CspGenericDoubleConstant |
genericDoubleConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
double[] nodes)
Creates a generic double constant |
jopt.csp.variable.CspGenericDoubleConstant |
genericDoubleConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
java.lang.Double[] nodes)
Creates a generic double constant |
jopt.csp.variable.CspGenericFloatExpr |
genericFloat(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
jopt.csp.variable.CspFloatVariable[] variables)
Produces a generic variable that wraps a set of nodes |
jopt.csp.variable.CspGenericFloatExpr |
genericFloat(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
int min,
int max)
Produces a generic variable that wraps a set of nodes |
jopt.csp.variable.CspGenericFloatExpr |
genericFloat(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
jopt.csp.variable.CspFloatVariable[] variables)
Produces a generic variable that wraps a set of nodes |
jopt.csp.variable.CspGenericFloatExpr |
genericFloat(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
int min,
int max)
Produces a generic variable that wraps a set of nodes |
jopt.csp.variable.CspGenericFloatConstant |
genericFloatConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
float[] nodes)
Creates a generic float constant |
jopt.csp.variable.CspGenericFloatConstant |
genericFloatConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
java.lang.Float[] nodes)
Creates a generic float constant |
jopt.csp.variable.CspGenericFloatConstant |
genericFloatConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
float[] nodes)
Creates a generic float constant |
jopt.csp.variable.CspGenericFloatConstant |
genericFloatConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
java.lang.Float[] nodes)
Creates a generic float constant |
jopt.csp.variable.CspGenericIndex |
genericIndex(java.lang.String name,
int size)
Creates a generic index for use with generic variables |
jopt.csp.variable.CspGenericIntExpr |
genericInt(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
jopt.csp.variable.CspIntVariable[] variables)
Produces a generic variable that wraps a set of nodes |
jopt.csp.variable.CspGenericIntExpr |
genericInt(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
int min,
int max)
Produces a generic variable that wraps a set of nodes |
jopt.csp.variable.CspGenericIntExpr |
genericInt(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
jopt.csp.variable.CspIntVariable[] variables)
Produces a generic variable that wraps a set of nodes |
jopt.csp.variable.CspGenericIntExpr |
genericInt(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
int min,
int max)
Produces a generic variable that wraps a set of nodes |
jopt.csp.variable.CspGenericIntConstant |
genericIntConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
int[] nodes)
Creates a generic int constant |
jopt.csp.variable.CspGenericIntConstant |
genericIntConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
java.lang.Integer[] nodes)
Creates a generic int constant |
jopt.csp.variable.CspGenericIntConstant |
genericIntConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
int[] nodes)
Creates a generic int constant |
jopt.csp.variable.CspGenericIntConstant |
genericIntConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
java.lang.Integer[] nodes)
Creates a generic int constant |
jopt.csp.variable.CspGenericLongExpr |
genericLong(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
jopt.csp.variable.CspLongVariable[] variables)
Produces a generic variable that wraps a set of nodes |
jopt.csp.variable.CspGenericLongExpr |
genericLong(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
int min,
int max)
Produces a generic variable that wraps a set of nodes |
jopt.csp.variable.CspGenericLongExpr |
genericLong(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
jopt.csp.variable.CspLongVariable[] variables)
Produces a generic variable that wraps a set of nodes |
jopt.csp.variable.CspGenericLongExpr |
genericLong(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
int min,
int max)
Produces a generic variable that wraps a set of nodes |
jopt.csp.variable.CspGenericLongConstant |
genericLongConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
long[] nodes)
Creates a generic long constant |
jopt.csp.variable.CspGenericLongConstant |
genericLongConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex[] indices,
java.lang.Long[] nodes)
Creates a generic long constant |
jopt.csp.variable.CspGenericLongConstant |
genericLongConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
long[] nodes)
Creates a generic long constant |
jopt.csp.variable.CspGenericLongConstant |
genericLongConst(java.lang.String name,
jopt.csp.variable.CspGenericIndex index,
java.lang.Long[] nodes)
Creates a generic long constant |
double |
getDefaultPrecision()
Returns the default precision used when creating real variables |
jopt.csp.variable.CspMath |
getMath()
Returns a variable math object for extended math operations |
jopt.csp.variable.CspSetConstraints |
getSetConstraints()
Returns an object used to create constraints on sets |
jopt.csp.variable.CspIntSetVariable |
intSetVar(java.lang.String name,
int min,
int max)
Creates an instance of a CspIntSetVariable object |
jopt.csp.variable.CspIntVariable |
intVar(java.lang.String name,
jopt.csp.variable.CspIntExpr expr)
Creates an instance of a CspIntVariable object based on an expression. |
jopt.csp.variable.CspIntVariable |
intVar(java.lang.String name,
jopt.csp.variable.CspIntVariable var)
Creates an instance of a CspIntVariable object |
jopt.csp.variable.CspIntVariable |
intVar(java.lang.String name,
int min,
int max)
Creates an instance of a CspIntVariable object; uses an interval domain by default |
jopt.csp.variable.CspIntVariable |
intVar(java.lang.String name,
int min,
int max,
boolean sparse)
Creates an instance of a CspIntVariable object |
jopt.csp.variable.CspIntVariable |
intVar(java.lang.String name,
jopt.csp.util.IntSparseSet vals)
Creates an instance of a CspIntVariable object; uses an interval domain by default |
jopt.csp.variable.CspLongVariable |
longVar(java.lang.String name,
jopt.csp.variable.CspLongCast expr)
Creates an instance of a CspLongVariable object based on an expression. |
jopt.csp.variable.CspLongVariable |
longVar(java.lang.String name,
jopt.csp.variable.CspLongVariable var)
Creates an instance of a CspLongVariable object |
jopt.csp.variable.CspLongVariable |
longVar(java.lang.String name,
long min,
long max)
Creates an instance of a CspLongVariable object; uses an interval domain by default |
jopt.csp.variable.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 |
static BoolExpr[] |
toBoolExprArray(jopt.csp.variable.CspBooleanExpr[] expressions)
Converts an array of CSP expressions to internal boolean expressions |
static GenericIndex[] |
toGenericIndex(jopt.csp.variable.CspGenericIndex[] expressions)
Converts an array of CSP GenericIndex's to GenericIndex's |
static NumExpr[] |
toNumExprArray(jopt.csp.variable.CspBooleanVariable[] variables)
Converts an array of CSP expressions to internal numeric expressions |
static NumExpr[] |
toNumExprArray(jopt.csp.variable.CspNumVariable[] variables)
Converts an array of CSP expressions to internal numeric expressions |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VarFactory()
Method Detail |
public void setDefaultPrecision(double p)
setDefaultPrecision
in interface jopt.csp.variable.CspVariableFactory
public double getDefaultPrecision()
getDefaultPrecision
in interface jopt.csp.variable.CspVariableFactory
public jopt.csp.variable.CspMath getMath()
getMath
in interface jopt.csp.variable.CspVariableFactory
public jopt.csp.variable.CspSetConstraints getSetConstraints()
getSetConstraints
in interface jopt.csp.variable.CspVariableFactory
public jopt.csp.variable.CspIntVariable intVar(java.lang.String name, int min, int max)
intVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variablemin
- Lower bound for variable's domainmax
- Upper bound for variable's domainpublic jopt.csp.variable.CspIntVariable intVar(java.lang.String name, jopt.csp.util.IntSparseSet vals)
intVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variablevals
- Set of sparse values for variable's domainpublic jopt.csp.variable.CspIntVariable intVar(java.lang.String name, int min, int max, boolean sparse)
intVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variablemin
- Lower bound for variable's domainmax
- Upper bound for variable's domainsparse
- Specifies the use of a sparse or interval domainpublic jopt.csp.variable.CspIntVariable intVar(java.lang.String name, jopt.csp.variable.CspIntVariable var)
intVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variablevar
- Existing variable with a domain to clonepublic jopt.csp.variable.CspIntVariable intVar(java.lang.String name, jopt.csp.variable.CspIntExpr expr)
intVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableexpr
- Expression that variable is based uponpublic jopt.csp.variable.CspLongVariable longVar(java.lang.String name, long min, long max)
longVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variablemin
- Lower bound for variable's domainmax
- Upper bound for variable's domainpublic jopt.csp.variable.CspLongVariable longVar(java.lang.String name, long min, long max, boolean sparse)
longVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variablemin
- Lower bound for variable's domainmax
- Upper bound for variable's domainsparse
- Specifies the use of a sparse or interval domainpublic jopt.csp.variable.CspLongVariable longVar(java.lang.String name, jopt.csp.variable.CspLongVariable var)
longVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variablevar
- Existing variable with a domain to clonepublic jopt.csp.variable.CspLongVariable longVar(java.lang.String name, jopt.csp.variable.CspLongCast expr)
longVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableexpr
- Expression that variable is based uponpublic jopt.csp.variable.CspFloatVariable floatVar(java.lang.String name, float min, float max)
floatVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variablemin
- Lower bound for variable's domainmax
- Upper bound for variable's domainpublic jopt.csp.variable.CspFloatVariable floatVar(java.lang.String name, jopt.csp.variable.CspFloatVariable var)
floatVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variablevar
- Existing variable with a domain to clonepublic jopt.csp.variable.CspFloatVariable floatVar(java.lang.String name, jopt.csp.variable.CspFloatCast expr)
floatVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableexpr
- Expression that variable is based uponpublic jopt.csp.variable.CspDoubleVariable doubleVar(java.lang.String name, double min, double max)
doubleVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variablemin
- Lower bound for variable's domainmax
- Upper bound for variable's domainpublic jopt.csp.variable.CspDoubleVariable doubleVar(java.lang.String name, jopt.csp.variable.CspDoubleVariable var)
doubleVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variablevar
- Existing variable with a domain to clonepublic jopt.csp.variable.CspDoubleVariable doubleVar(java.lang.String name, jopt.csp.variable.CspDoubleCast expr)
doubleVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableexpr
- Expression that variable is based uponpublic jopt.csp.variable.CspIntSetVariable intSetVar(java.lang.String name, int min, int max)
intSetVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variablemin
- Lower bound for variable's domainmax
- Upper bound for variable's domainpublic jopt.csp.variable.CspGenericIndex genericIndex(java.lang.String name, int size)
genericIndex
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to indexsize
- Total number of variables that will be used with indexpublic jopt.csp.variable.CspGenericIntExpr genericInt(java.lang.String name, jopt.csp.variable.CspGenericIndex index, jopt.csp.variable.CspIntVariable[] variables)
genericInt
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindex
- Index variable is based uponvariables
- Array of variables generic variable wrapspublic jopt.csp.variable.CspGenericIntExpr genericInt(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, jopt.csp.variable.CspIntVariable[] variables)
genericInt
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindices
- Array of indices variable is indexed uponvariables
- Array of variables generic variable wrapspublic jopt.csp.variable.CspGenericIntExpr genericInt(java.lang.String name, jopt.csp.variable.CspGenericIndex index, int min, int max)
genericInt
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindex
- Index variable is based uponmin
- Minimum value of domain of internal variablesmax
- Maximum value of domain of internal variablespublic jopt.csp.variable.CspGenericIntExpr genericInt(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, int min, int max)
genericInt
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindices
- Array of indices variable is indexed uponmin
- Minimum value of domain of internal variablesmax
- Maximum value of domain of internal variablespublic jopt.csp.variable.CspGenericLongExpr genericLong(java.lang.String name, jopt.csp.variable.CspGenericIndex index, jopt.csp.variable.CspLongVariable[] variables)
genericLong
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindex
- Index variable is based uponvariables
- Array of variables generic variable wrapspublic jopt.csp.variable.CspGenericLongExpr genericLong(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, jopt.csp.variable.CspLongVariable[] variables)
genericLong
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindices
- Array of indices variable is indexed uponvariables
- Array of variables generic variable wrapspublic jopt.csp.variable.CspGenericLongExpr genericLong(java.lang.String name, jopt.csp.variable.CspGenericIndex index, int min, int max)
genericLong
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindex
- Index variable is based uponmin
- Minimum value of domain of internal variablesmax
- Maximum value of domain of internal variablespublic jopt.csp.variable.CspGenericLongExpr genericLong(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, int min, int max)
genericLong
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindices
- Array of indices variable is indexed uponmin
- Minimum value of domain of internal variablesmax
- Maximum value of domain of internal variablespublic jopt.csp.variable.CspGenericFloatExpr genericFloat(java.lang.String name, jopt.csp.variable.CspGenericIndex index, jopt.csp.variable.CspFloatVariable[] variables)
genericFloat
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindex
- Index variable is based uponvariables
- Array of variables generic variable wrapspublic jopt.csp.variable.CspGenericFloatExpr genericFloat(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, jopt.csp.variable.CspFloatVariable[] variables)
genericFloat
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindices
- Array of indices variable is indexed uponvariables
- Array of variables generic variable wrapspublic jopt.csp.variable.CspGenericFloatExpr genericFloat(java.lang.String name, jopt.csp.variable.CspGenericIndex index, int min, int max)
genericFloat
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindex
- Index variable is based uponmin
- Minimum value of domain of internal variablesmax
- Maximum value of domain of internal variablespublic jopt.csp.variable.CspGenericFloatExpr genericFloat(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, int min, int max)
genericFloat
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindices
- Array of indices variable is indexed uponmin
- Minimum value of domain of internal variablesmax
- Maximum value of domain of internal variablespublic jopt.csp.variable.CspGenericDoubleExpr genericDouble(java.lang.String name, jopt.csp.variable.CspGenericIndex index, jopt.csp.variable.CspDoubleVariable[] variables)
genericDouble
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindex
- Index variable is based uponvariables
- Array of variables generic variable wrapspublic jopt.csp.variable.CspGenericDoubleExpr genericDouble(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, jopt.csp.variable.CspDoubleVariable[] variables)
genericDouble
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindices
- Array of indices variable is indexed uponvariables
- Array of variables generic variable wrapspublic jopt.csp.variable.CspGenericDoubleExpr genericDouble(java.lang.String name, jopt.csp.variable.CspGenericIndex index, int min, int max)
genericDouble
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindex
- Index variable is based uponmin
- Minimum value of domain of internal variablesmax
- Maximum value of domain of internal variablespublic jopt.csp.variable.CspGenericDoubleExpr genericDouble(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, int min, int max)
genericDouble
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindices
- Array of indices variable is indexed uponmin
- Minimum value of domain of internal variablesmax
- Maximum value of domain of internal variablespublic jopt.csp.variable.CspGenericBooleanExpr genericBoolean(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, jopt.csp.variable.CspBooleanExpr[] expressions)
genericBoolean
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindices
- Array of indices variable is indexed uponexpressions
- Array of expressions that the generic expression wrapspublic jopt.csp.variable.CspGenericBooleanExpr genericBoolean(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, jopt.csp.variable.CspConstraint constraint)
genericBoolean
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindices
- Array of indices variable is indexed uponconstraint
- Constraint that wrapped by the generic expressionpublic jopt.csp.variable.CspGenericBooleanExpr genericBoolean(java.lang.String name, jopt.csp.variable.CspGenericIndex index, jopt.csp.variable.CspBooleanExpr[] expressions)
genericBoolean
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindex
- Index variable is indexed uponexpressions
- Array of expressions that the generic expression wrapspublic jopt.csp.variable.CspGenericBooleanExpr genericBoolean(java.lang.String name, jopt.csp.variable.CspGenericIndex index, jopt.csp.variable.CspConstraint constraint)
genericBoolean
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableindex
- Index variable is indexed uponconstraint
- Constraint that wrapped by the generic expressionpublic static NumExpr[] toNumExprArray(jopt.csp.variable.CspNumVariable[] variables)
public static NumExpr[] toNumExprArray(jopt.csp.variable.CspBooleanVariable[] variables)
public static BoolExpr[] toBoolExprArray(jopt.csp.variable.CspBooleanExpr[] expressions)
public static GenericIndex[] toGenericIndex(jopt.csp.variable.CspGenericIndex[] expressions)
public jopt.csp.variable.CspBooleanExpr booleanExpr(java.lang.String name, jopt.csp.variable.CspConstraint constraint)
name
- Name of the new expressionconstraint
- Constraint that boolean variable will represent
public jopt.csp.variable.CspBooleanVariable booleanVar(java.lang.String name, jopt.csp.variable.CspConstraint constraint)
booleanVar
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new variableconstraint
- Constraint that boolean variable will represent
public jopt.csp.variable.CspBooleanVariable booleanVar(java.lang.String name, jopt.csp.variable.CspBooleanExpr expr)
booleanVar
in interface jopt.csp.variable.CspVariableFactory
name
- Unique name assigned to variableexpr
- Expression that variable is based uponpublic jopt.csp.variable.CspBooleanVariable booleanVar(java.lang.String name)
booleanVar
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new variable
public jopt.csp.variable.CspGenericIntConstant genericIntConst(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, java.lang.Integer[] nodes)
genericIntConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindices
- Array of indices constant is indexed uponnodes
- Array of Integer objects containing the values for the constants
public jopt.csp.variable.CspGenericIntConstant genericIntConst(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, int[] nodes)
genericIntConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindices
- Array of indices constant is indexed uponnodes
- Array of ints containing the values for the constants
public jopt.csp.variable.CspGenericDoubleConstant genericDoubleConst(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, java.lang.Double[] nodes)
genericDoubleConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindices
- Array of indices constant is indexed uponnodes
- Array of Double objects containing the values for the constants
public jopt.csp.variable.CspGenericDoubleConstant genericDoubleConst(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, double[] nodes)
genericDoubleConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindices
- Array of indices constant is indexed uponnodes
- Array of doubles containing the values for the constants
public jopt.csp.variable.CspGenericFloatConstant genericFloatConst(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, java.lang.Float[] nodes)
genericFloatConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindices
- Array of indices constant is indexed uponnodes
- Array of Float objects containing the values for the constants
public jopt.csp.variable.CspGenericFloatConstant genericFloatConst(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, float[] nodes)
genericFloatConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindices
- Array of indices constant is indexed uponnodes
- Array of floats containing the values for the constants
public jopt.csp.variable.CspGenericLongConstant genericLongConst(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, java.lang.Long[] nodes)
genericLongConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindices
- Array of indices constant is indexed uponnodes
- Array of Long objects containing the values for the constants
public jopt.csp.variable.CspGenericLongConstant genericLongConst(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, long[] nodes)
genericLongConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindices
- Array of indices constant is indexed uponnodes
- Array of longs containing the values for the constants
public jopt.csp.variable.CspGenericIntConstant genericIntConst(java.lang.String name, jopt.csp.variable.CspGenericIndex index, java.lang.Integer[] nodes)
genericIntConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindex
- Index variable is indexed uponnodes
- Array of Integer objects containing the values for the constants
public jopt.csp.variable.CspGenericIntConstant genericIntConst(java.lang.String name, jopt.csp.variable.CspGenericIndex index, int[] nodes)
genericIntConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindex
- Index variable is indexed uponnodes
- Array of ints containing the values for the constants
public jopt.csp.variable.CspGenericDoubleConstant genericDoubleConst(java.lang.String name, jopt.csp.variable.CspGenericIndex index, java.lang.Double[] nodes)
genericDoubleConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindex
- Index variable is indexed uponnodes
- Array of Double objects containing the values for the constants
public jopt.csp.variable.CspGenericDoubleConstant genericDoubleConst(java.lang.String name, jopt.csp.variable.CspGenericIndex index, double[] nodes)
genericDoubleConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindex
- Index variable is indexed uponnodes
- Array of doubles containing the values for the constants
public jopt.csp.variable.CspGenericFloatConstant genericFloatConst(java.lang.String name, jopt.csp.variable.CspGenericIndex index, java.lang.Float[] nodes)
genericFloatConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindex
- Index variable is indexed uponnodes
- Array of Float objects containing the values for the constants
public jopt.csp.variable.CspGenericFloatConstant genericFloatConst(java.lang.String name, jopt.csp.variable.CspGenericIndex index, float[] nodes)
genericFloatConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindex
- Index variable is indexed uponnodes
- Array of floats containing the values for the constants
public jopt.csp.variable.CspGenericLongConstant genericLongConst(java.lang.String name, jopt.csp.variable.CspGenericIndex index, java.lang.Long[] nodes)
genericLongConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindex
- Index variable is indexed uponnodes
- Array of Long objects containing the values for the constants
public jopt.csp.variable.CspGenericLongConstant genericLongConst(java.lang.String name, jopt.csp.variable.CspGenericIndex index, long[] nodes)
genericLongConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindex
- Index variable is indexed uponnodes
- Array of longs containing the values for the constants
public jopt.csp.variable.CspGenericBooleanConstant genericBooleanConst(java.lang.String name, jopt.csp.variable.CspGenericIndex[] indices, boolean[] nodes)
genericBooleanConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindices
- Index variable is indexed uponnodes
- Array of longs containing the values for the constants
public jopt.csp.variable.CspGenericBooleanConstant genericBooleanConst(java.lang.String name, jopt.csp.variable.CspGenericIndex index, boolean[] nodes)
genericBooleanConst
in interface jopt.csp.variable.CspVariableFactory
name
- Name of the new constantindex
- Index variable is indexed uponnodes
- Array of longs containing the values for the constants
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |