Modifier and Type | Method and Description |
---|---|
DomainType |
Var.getDomainType()
Returns the type of this variable's domain.
|
static DomainType |
DomainType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DomainType[] |
DomainType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
Var.setDomainType(DomainType type)
Changes the domain type of this variable.
|
void |
ProblemDelegator.setDomainType(DomainType type) |
void |
Problem.setDomainType(DomainType type)
Sets the domain type that will be used as the default for subsequent creation
of variables using addVar-methods
|
Var |
ProblemDelegator.variable(java.lang.String name,
int min,
int max,
DomainType domainType) |
Var |
Problem.variable(java.lang.String name,
int min,
int max,
DomainType domainType)
Similar to variable(String name, int min, int max) but also has one more parameter
that defines the default domain type.
|