Package org.jacop.set.constraints
Class Lex
java.lang.Object
org.jacop.constraints.DecomposedConstraint<Constraint>
org.jacop.constraints.Constraint
org.jacop.set.constraints.Lex
- All Implemented Interfaces:
Stateful
Deprecated.
As of release 4.5.1 replaced by AltB and AleB constraints.
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.It specifies a list on which element a lex relationship holds for every two consecutive variables.Deprecated.It specifies a list on which element a lex relationship holds for every two consecutive variables.(package private) static AtomicInteger
Deprecated.protected int
Deprecated.Deprecated.protected int
Deprecated.Deprecated.protected int
Deprecated.protected int
Deprecated.boolean
Deprecated.It specifies if the relation is strict or not.Fields inherited from class org.jacop.constraints.Constraint
atomicExecution, consistencyPruningEvents, constraintScope, earlyTerminationOK, increaseWeight, numberId, scope, trace
Fields inherited from class org.jacop.constraints.DecomposedConstraint
queueIndex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
consistency
(Store store) Deprecated.It is a (most probably incomplete) consistency function which removes the values from variables domains.int
Deprecated.void
Deprecated.It imposes the constraint in a given store.void
removeLevel
(int level) Deprecated.This function is called in case of the backtrack, so a constraint can clear the queue of changed variables which is no longer valid.toString()
Deprecated.It produces a string representation of a constraint state.Methods inherited from class org.jacop.constraints.Constraint
afc, arguments, cleanAfterFailure, decompose, getConsistencyPruningEvent, getGuideConstraint, getGuideValue, getGuideVariable, grounded, grounded, id, impose, imposeDecomposition, increaseWeight, intArrayToString, numberArgs, queueVariable, removeConstraint, requiresMonotonicity, setConsistencyPruningEvent, setConstraintScope, setScope, setScope, setScope, setScope, setScope, setWatchedVariableGrounded, supplyGuideFeedback, updateAFC, watchedVariableGrounded
Methods inherited from class org.jacop.constraints.DecomposedConstraint
auxiliaryVariables, checkInput, checkInput, checkInputForDuplication, checkInputForDuplicationSkipSingletons, checkInputForNullness, checkInputForNullness, checkInputForNullness, derivative, getDubletonsSkipSingletons, imposeDecomposition
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jacop.api.Stateful
isStateful
-
Field Details
-
idNumber
Deprecated. -
a
Deprecated.It specifies a list on which element a lex relationship holds for every two consecutive variables. -
b
Deprecated.It specifies a list on which element a lex relationship holds for every two consecutive variables. -
strict
public boolean strictDeprecated.It specifies if the relation is strict or not. -
inSupport
protected int inSupportDeprecated. -
inclusionLevel
protected int inclusionLevelDeprecated. -
inDifference
Deprecated. -
smallerElSupport
protected int smallerElSupportDeprecated. -
smallerElLevel
protected int smallerElLevelDeprecated. -
smallerDifference
Deprecated.
-
-
Constructor Details
-
Lex
Deprecated.It constructs an Lexical ordering constraint to restrict the domain of the variables a and b. It is strict by default.- Parameters:
a
- variable that is restricted to be less than b with lexical order.b
- variable that is restricted to be greater than a with lexical order.
-
Lex
Deprecated.It constructs an Lexical ordering constraint to restrict the domain of the variables a and b.- Parameters:
a
- variable that is restricted to be less than b with lexical order.b
- variable that is restricted to be greater than a with lexical order.strict
- specifies if the lex relation is strict.
-
-
Method Details
-
consistency
Deprecated.Description copied from class:Constraint
It is a (most probably incomplete) consistency function which removes the values from variables domains. Only values which do not have any support in a solution space are removed.- Specified by:
consistency
in classConstraint
- Parameters:
store
- constraint store within which the constraint consistency is being checked.
-
getDefaultConsistencyPruningEvent
public int getDefaultConsistencyPruningEvent()Deprecated.- Specified by:
getDefaultConsistencyPruningEvent
in classConstraint
-
impose
Deprecated.Description copied from class:Constraint
It imposes the constraint in a given store.- Overrides:
impose
in classConstraint
- Parameters:
store
- the constraint store to which the constraint is imposed to.
-
removeLevel
public void removeLevel(int level) Deprecated.Description copied from interface:Stateful
This function is called in case of the backtrack, so a constraint can clear the queue of changed variables which is no longer valid. This function is called *before* all timestamps, variables, mutablevariables have reverted to their previous value.- Specified by:
removeLevel
in interfaceStateful
- Parameters:
level
- the level which is being removed.
-
toString
Deprecated.Description copied from class:Constraint
It produces a string representation of a constraint state.- Overrides:
toString
in classConstraint
-