Package org.jacop.search
Class FailConstraintsStatistics
java.lang.Object
org.jacop.search.FailConstraintsStatistics
- All Implemented Interfaces:
ConsistencyListener
Defines functionality for FailConstraintsStatistics plug-in, that
collects statistics on the failed constraints; both for each
individual constraint as well as a class of constraints.
- Version:
- 4.10
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidcollectFailStatistics(Constraint currentConstraint) booleanexecuteAfterConsistency(boolean consistent) It is executed right after consistency of the current search node.voidSetting one child listener.voidsetChildrenListeners(ConsistencyListener[] children) Each of the child listeners will be called and the return code from them will be combined (taken into account) by a parent).sortByValues(Map<String, Integer> map) toString()
-
Field Details
-
failConstraintsStatistics
-
failConstraintsIdStatistics
-
otherFails
public long otherFails -
store
Store store
-
-
Constructor Details
-
FailConstraintsStatistics
-
-
Method Details
-
executeAfterConsistency
public boolean executeAfterConsistency(boolean consistent) Description copied from interface:ConsistencyListenerIt is executed right after consistency of the current search node. Returning true when the parameter was false is not advised as things like invalid solutions can be found.- Specified by:
executeAfterConsistencyin interfaceConsistencyListener- Parameters:
consistent- specifies if the consistency call returned true or false.- Returns:
- true if the search should continue, false if the search should act as the consistency returned false.
-
setChildrenListeners
Description copied from interface:ConsistencyListenerEach of the child listeners will be called and the return code from them will be combined (taken into account) by a parent).- Specified by:
setChildrenListenersin interfaceConsistencyListener- Parameters:
children- the children listeners attached to this listener.
-
setChildrenListeners
Description copied from interface:ConsistencyListenerSetting one child listener.- Specified by:
setChildrenListenersin interfaceConsistencyListener- Parameters:
child- the only child listener added to this consistency listener.
-
collectFailStatistics
-
toString
-
sortByValues
-