public class IntDomainMiddle extends Object implements IntValueSelector
Modifier and Type | Field and Description |
---|---|
static boolean |
FLOOR |
Constructor and Description |
---|
IntDomainMiddle(boolean roundingPolicy)
Selects the middle value
|
Modifier and Type | Method and Description |
---|---|
int |
selectValue(IntVar var)
Selects and returns the value to constrained chosen variable with.
|
public static final boolean FLOOR
public IntDomainMiddle(boolean roundingPolicy)
roundingPolicy
- should be either FLOOR or !FLOOR (ceil)public int selectValue(IntVar var)
variable
.selectValue
in interface IntValueSelector
Copyright © 2018. All rights reserved.