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 AtomicIntegerDeprecated.protected intDeprecated.Deprecated.protected intDeprecated.Deprecated.protected intDeprecated.protected intDeprecated.booleanDeprecated.It specifies if the relation is strict or not.Fields inherited from class org.jacop.constraints.Constraint
atomicExecution, consistencyPruningEvents, constraintScope, earlyTerminationOK, increaseWeight, numberId, scope, traceFields inherited from class org.jacop.constraints.DecomposedConstraint
queueIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconsistency(Store store) Deprecated.It is a (most probably incomplete) consistency function which removes the values from variables domains.intDeprecated.voidDeprecated.It imposes the constraint in a given store.voidremoveLevel(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, long2int, numberArgs, queueVariable, removeConstraint, requiresMonotonicity, setConsistencyPruningEvent, setConstraintScope, setScope, setScope, setScope, setScope, setScope, setWatchedVariableGrounded, supplyGuideFeedback, updateAFC, watchedVariableGroundedMethods inherited from class org.jacop.constraints.DecomposedConstraint
auxiliaryVariables, checkInput, checkInput, checkInputForDuplication, checkInputForDuplicationSkipSingletons, checkInputForNullness, checkInputForNullness, checkInputForNullness, derivative, getDubletonsSkipSingletons, imposeDecompositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:ConstraintIt 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:
consistencyin classConstraint- Parameters:
store- constraint store within which the constraint consistency is being checked.
-
getDefaultConsistencyPruningEvent
public int getDefaultConsistencyPruningEvent()Deprecated.- Specified by:
getDefaultConsistencyPruningEventin classConstraint
-
impose
Deprecated.Description copied from class:ConstraintIt imposes the constraint in a given store.- Overrides:
imposein classConstraint- Parameters:
store- the constraint store to which the constraint is imposed to.
-
removeLevel
public void removeLevel(int level) Deprecated.Description copied from interface:StatefulThis 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:
removeLevelin interfaceStateful- Parameters:
level- the level which is being removed.
-
toString
Deprecated.Description copied from class:ConstraintIt produces a string representation of a constraint state.- Overrides:
toStringin classConstraint
-