@Deprecated public final class LazyCpVarDomain<E extends IntVar> extends SatCPBridge
Modifier and Type | Field and Description |
---|---|
org.jacop.satwrapper.translation.LazyCpVarDomain.ListNode |
left
Deprecated.
|
org.jacop.satwrapper.translation.LazyCpVarDomain.ListNode |
right
Deprecated.
|
hasSetDomain, initialDomain, max, min, variable, wrapper
Constructor and Description |
---|
LazyCpVarDomain(IntVar variable)
Deprecated.
creates the var list
|
Modifier and Type | Method and Description |
---|---|
int |
boolVarToCpValue(int literal)
Deprecated.
return the value corresponding to given literal (variable)
|
int |
cpValueToBoolVar(int value,
boolean isEquality)
Deprecated.
return the literal that represents the assertion 'var = value'.
|
void |
initialize(SatWrapper wrapper)
Deprecated.
connect the component to the wrapper
|
boolean |
isEqualityBoolVar(int literal)
Deprecated.
checks if the literal stands for a 'x=d' proposition, or a
'x<=d' proposition
|
boolean |
isTranslated()
Deprecated.
predicate for whether this variable should be handled by the
DomainClausesDatabase or not
|
void |
propagate(int literal)
Deprecated.
does all propagation required, in a way specific to this range.
|
void |
setDomain(int minValue,
int maxValue)
Deprecated.
set the domain to be between minValue and maxValue.
|
getLeftLimit, getRightLimit, isInThisRange, toString
public org.jacop.satwrapper.translation.LazyCpVarDomain.ListNode left
public org.jacop.satwrapper.translation.LazyCpVarDomain.ListNode right
public LazyCpVarDomain(IntVar variable)
variable
- the variable this list representspublic int cpValueToBoolVar(int value, boolean isEquality)
SatCPBridge
cpValueToBoolVar
in class SatCPBridge
value
- the value for the variable this range representsisEquality
- true if we want the literal for 'x=d
' kind of
propositions, false for 'x<=d
'public int boolVarToCpValue(int literal)
SatCPBridge
boolVarToCpValue
in class SatCPBridge
literal
- the literal standing for 'var = value'public boolean isEqualityBoolVar(int literal)
SatCPBridge
isEqualityBoolVar
in class SatCPBridge
literal
- the literal (among literals from this range)public void setDomain(int minValue, int maxValue)
SatCPBridge
setDomain
in class SatCPBridge
minValue
- minimum value of the rangemaxValue
- maximum value of the rangepublic void propagate(int literal)
SatCPBridge
this.isTranslated()
is false.propagate
in class SatCPBridge
literal
- the literal that has been assertedpublic boolean isTranslated()
SatCPBridge
isTranslated
in class SatCPBridge
public void initialize(SatWrapper wrapper)
WrapperComponent
initialize
in interface WrapperComponent
initialize
in class SatCPBridge
wrapper
- the wrapperCopyright © 2022. All rights reserved.