public class IntDomainMiddle extends Object implements IntValueSelector
Modifier and Type | Field and Description |
---|---|
static boolean |
CEIL |
static boolean |
FLOOR |
protected boolean |
roundingPolicy |
Constructor and Description |
---|
IntDomainMiddle() |
IntDomainMiddle(boolean roundingPolicy)
Selects the middle value
|
public static final boolean FLOOR
public static final boolean CEIL
protected final boolean roundingPolicy
public IntDomainMiddle()
public IntDomainMiddle(boolean roundingPolicy)
roundingPolicy
- should be either FLOOR or CEILpublic int selectValue(IntVar var)
variable
.selectValue
in interface IntValueSelector
Copyright © 2015. All rights reserved.