@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, toStringpublic 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)
SatCPBridgecpValueToBoolVar in class SatCPBridgevalue - 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)
SatCPBridgeboolVarToCpValue in class SatCPBridgeliteral - the literal standing for 'var = value'public boolean isEqualityBoolVar(int literal)
SatCPBridgeisEqualityBoolVar in class SatCPBridgeliteral - the literal (among literals from this range)public void setDomain(int minValue,
int maxValue)
SatCPBridgesetDomain in class SatCPBridgeminValue - minimum value of the rangemaxValue - maximum value of the rangepublic void propagate(int literal)
SatCPBridgethis.isTranslated() is false.propagate in class SatCPBridgeliteral - the literal that has been assertedpublic boolean isTranslated()
SatCPBridgeisTranslated in class SatCPBridgepublic void initialize(SatWrapper wrapper)
WrapperComponentinitialize in interface WrapperComponentinitialize in class SatCPBridgewrapper - the wrapperCopyright © 2022. All rights reserved.