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
pBody
Fields 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 TypeMethodDescriptionvoid
doReplaceVariable
(PVariable obsolete, PVariable replacement) void
Eliminates 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()
boolean
A weak inequality constraint is eliminable if who is the same as withWhom, or if any if them is undeducible.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.protected String
Methods inherited from class tools.refinery.interpreter.matchers.psystem.VariableDeferredPConstraint
isReadyAt
Methods 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:
getDeferringVariables
in classVariableDeferredPConstraint
-
toStringRest
- Specified by:
toStringRest
in classBasePConstraint
-
doReplaceVariable
- Specified by:
doReplaceVariable
in classBasePConstraint
-
getDeducedVariables
Description copied from interface:PConstraint
The 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
-