Package org.chocosolver.solver
Interface ICause
-
- All Known Subinterfaces:
BoolVar,IntVar,IObjectiveManager<V>,IVariableMonitor<V>,IView
- All Known Implementing Classes:
AbstractPropDistanceXYZ,ActivityBased,BitsetArrayIntVarImpl,BitsetIntVarImpl,BoolNotView,BoolVarImpl,Cause,Decision,FixedBoolVarImpl,FixedIntVarImpl,IbexDecision,ImpactBased,IntDecision,IntervalIntVarImpl,IntView,MinusView,OffsetView,PropAbsolute,Propagator,PropAllDiff,PropAllDiffAC,PropAllDiffAdaptative,PropAllDiffBC,PropAllDiffInst,PropAllDisjoint,PropAllEqual,PropAMNV,PropAmongGAC,PropAntiArborescences,PropAtLeastNValues,PropAtLeastNValues_AC,PropAtMost1Empty,PropAtMostNValues,PropAtMostNValues_BC,PropBinAC2001,PropBinAC3,PropBinAC3bitrm,PropBinAC3rm,PropBinCSP,PropBinFC,PropBitChanneling,PropBoolChannel,PropBoolMax,PropBoolMin,PropCardinality,PropCircuit_AntiArboFiltering,PropCircuit_ArboFiltering,PropCircuitSCC,PropClauseChanneling,PropCompactTable,PropCompactTableStar,PropCondAllDiff_AC,PropCondAllDiffInst,PropConditionnal,PropCostRegular,PropCount_AC,PropCountVar,PropCumulative,PropDiffN,PropDistanceXYC,PropDivXYZ,PropElement,PropElement,PropElementV_fast,PropEnumDomainChanneling,PropEQDistanceXYZ,PropEqualX_Y,PropEqualX_YC,PropEqualXC,PropEqualXY_C,PropFalse,PropFastGCC,PropGEDistanceXYZ,PropGraphCumulative,PropGreaterOrEqualX_Y,PropGreaterOrEqualX_YC,PropGreaterOrEqualXC,PropGreaterOrEqualXY_C,PropGTDistanceXYZ,PropIntBoundedMemberSet,PropIntChannel,PropIntCstMemberSet,PropIntCstNotMemberSet,PropIntEnumMemberSet,PropIntersection,PropIntersectionFilterSets,PropIntValuePrecedeChain,PropInverse,PropInverseChannelAC,PropInverseChannelBC,PropItemToLoad,PropKeysorting,PropKLoops,PropKnapsack,PropLargeCSP,PropLargeFC,PropLargeGAC2001,PropLargeGAC2001Positive,PropLargeGAC3rm,PropLargeGAC3rmPositive,PropLargeGACSTRPos,PropLargeMDDC,PropLEDistanceXYZ,PropLessOrEqualXC,PropLessOrEqualXY_C,PropLex,PropLexChain,PropLexInt,PropLoadToItem,PropLocalConDis,PropLTDistanceXYZ,PropMax,PropMaxBC,PropMaxElement,PropMemberBound,PropMemberEnum,PropMin,PropMinBC,PropMinElement,PropMultiCostRegular,PropNbEmpty,PropNogoods,PropNoSubtour,PropNotEmpty,PropNotEqualX_Y,PropNotEqualX_YC,PropNotEqualXC,PropNotEqualXY_C,PropNotMemberBound,PropNotMemberEnum,PropNotMemberIntSet,PropNotMemberSetInt,PropOffSet,PropOpposite,PropRegular,PropReif,PropSat,PropScalar,PropScalarMixed,PropScale,PropSetIntValuesUnion,PropSort,PropSquare,PropSubcircuit,PropSubcircuitDominatorFilter,PropSubsetEq,PropSum,PropSumBool,PropSumBoolIncr,PropSumFullBool,PropSumFullBoolIncr,PropSumOfElements,PropSymmetric,PropTableStr2,PropTimesNaive,PropTrue,PropUnion,PropXeqCReif,PropXeqYReif,PropXgtCReif,PropXinSReif,PropXltCReif,PropXltYCReif,PropXltYReif,PropXneCReif,PropXneYReif,PropXplusYeqZ,RealDecision,RealPropagator,RealView,RootDecision,ScaleView,SetDecision,Solution
public interface ICauseThis interface describes services of smallest element which can act on variables. As an example, propagator is a cause because it filters values from variable domain. So do decision, objective manager, etc. It has an impact on domain variables and so it can fails.Important: when the
why(org.chocosolver.solver.explanations.RuleStore, org.chocosolver.solver.variables.IntVar, org.chocosolver.solver.variables.events.IEventType, int)method needs to evaluate the incoming event, one may be aware that in some cases (for instance, BoolVar), the original event can promoted. Hence, if a cause can only explain bound modifications, it should also either consider the INSTANTIATION or the strengthen mask.- Since:
- 26 oct. 2010
- Author:
- Charles Prud'homme
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanwhy(RuleStore ruleStore, IntVar var, IEventType evt, int value)Add new rules to the rule store
-
-
-
Method Detail
-
why
default boolean why(RuleStore ruleStore, IntVar var, IEventType evt, int value)
Add new rules to the rule store- Parameters:
ruleStore- the rule storevar- the modified variableevt- the undergoing eventvalue- the value (for REMOVE only)- Returns:
- true if at least one rule has been added to the rule store
-
-