Class Inequality
java.lang.Object
tools.refinery.interpreter.matchers.psystem.BasePConstraint
tools.refinery.interpreter.matchers.psystem.DeferredPConstraint
tools.refinery.interpreter.matchers.psystem.VariableDeferredPConstraint
tools.refinery.interpreter.matchers.psystem.basicdeferred.Inequality
- All Implemented Interfaces:
PConstraint,PTraceable
-
Field Summary
Fields inherited from class tools.refinery.interpreter.matchers.psystem.BasePConstraint
pBodyFields inherited from interface tools.refinery.interpreter.matchers.psystem.PConstraint
COMPARE_BY_MONOTONOUS_ID -
Constructor Summary
ConstructorsConstructorDescriptionInequality(PBody pBody, PVariable who, PVariable withWhom) Inequality(PBody pBody, PVariable who, PVariable withWhom, boolean weak) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoReplaceVariable(PVariable obsolete, PVariable replacement) voidEliminates a weak inequality constraint if it can be ignored when who is the same as withWhom, or if any if them is undeducible.The set of variables whose potential values can be enumerated (once all non-deduced variables have known values).getWho()booleanA weak inequality constraint is eliminable if who is the same as withWhom, or if any if them is undeducible.booleanisWeak()The inequality constraint is weak if it can be ignored when who is the same as withWhom, or if any if them is undeducible.protected StringMethods inherited from class tools.refinery.interpreter.matchers.psystem.VariableDeferredPConstraint
isReadyAtMethods inherited from class tools.refinery.interpreter.matchers.psystem.BasePConstraint
checkSanity, delete, getAffectedVariables, getBody, getFunctionalDependencies, getMonotonousID, getPSystem, replaceVariable, toString
-
Constructor Details
-
Inequality
-
Inequality
-
-
Method Details
-
getDeferringVariables
- Specified by:
getDeferringVariablesin classVariableDeferredPConstraint
-
toStringRest
- Specified by:
toStringRestin classBasePConstraint
-
doReplaceVariable
- Specified by:
doReplaceVariablein classBasePConstraint
-
getDeducedVariables
Description copied from interface:PConstraintThe set of variables whose potential values can be enumerated (once all non-deduced variables have known values). -
isWeak
public boolean isWeak()The inequality constraint is weak if it can be ignored when who is the same as withWhom, or if any if them is undeducible.- Returns:
- the weak
-
isEliminable
public boolean isEliminable()A weak inequality constraint is eliminable if who is the same as withWhom, or if any if them is undeducible. -
eliminateWeak
public void eliminateWeak()Eliminates a weak inequality constraint if it can be ignored when who is the same as withWhom, or if any if them is undeducible. -
getWho
-
getWithWhom
-