Class OneSolution<T extends Var>

    • Field Detail

      • solutionFound

        boolean solutionFound
    • Constructor Detail

      • OneSolution

        public OneSolution()
    • Method Detail

      • executedAtInitialize

        public void executedAtInitialize​(Store store)
        Description copied from interface: InitializeListener
        It is executed before the search starts labeling procedure.
        Specified by:
        executedAtInitialize in interface InitializeListener
        Parameters:
        store - store in which context the search is performed.
      • executeAfterConsistency

        public boolean executeAfterConsistency​(boolean consistent)
        Description copied from interface: ConsistencyListener
        It 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:
        executeAfterConsistency in interface ConsistencyListener
        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

        public void setChildrenListeners​(ConsistencyListener[] children)
        Description copied from interface: ConsistencyListener
        Each of the child listeners will be called and the return code from them will be combined (taken into account) by a parent).
        Specified by:
        setChildrenListeners in interface ConsistencyListener
        Parameters:
        children - the children listeners attached to this listener.