Package solver.variables.events

Examples of solver.variables.events.IntEventType


                this.contradiction(cause, IntEventType.INSTANTIATE, MSG_INST);
            }
            return false;
        } else {
            if (value == 0 || value == 1) {
        IntEventType e = IntEventType.INSTANTIATE;
                assert notInstanciated.contains(offset);
                notInstanciated.swap(offset);
                if (reactOnRemoval) {
                    delta.add(1 - value, cause);
                }
View Full Code Here


                    solver.getExplainer().removeValue(this, value, antipromo);
                }
                //            monitors.forEachRemVal(onContradiction.set(this, EventType.REMOVE, cause));
                this.contradiction(cause, IntEventType.REMOVE, MSG_REMOVE);
            }
      IntEventType e = IntEventType.REMOVE;
            this.indexes.clear(index);
            this.SIZE.add(-1);
            if (reactOnRemoval) {
                delta.add(value, cause);
            }
View Full Code Here

                if (Configuration.PLUG_EXPLANATION) {
                    solver.getExplainer().updateLowerBound(this, old, oub + 1, antipromo);
                }
                this.contradiction(cause, IntEventType.INCLOW, MSG_LOW);
            } else {
        IntEventType e = IntEventType.INCLOW;
                int index;
                for (index = indexes.nextSetBit(LB.get()); index >= 0 && values[index] < value; index = indexes.nextSetBit(index + 1)) {
                }
                assert index >= 0 && values[index] >= value;
                if (reactOnRemoval) {
View Full Code Here

                if (Configuration.PLUG_EXPLANATION) {
                    solver.getExplainer().updateUpperBound(this, old, olb - 1, cause);
                }
                this.contradiction(cause, IntEventType.DECUPP, MSG_UPP);
            } else {
        IntEventType e = IntEventType.DECUPP;
                int index;
                for (index = indexes.prevSetBit(UB.get()); index >= 0 && values[index] > value; index = indexes.prevSetBit(index - 1)) {
                }
                assert index >= 0 && values[index] <= value;
                if (reactOnRemoval) {
View Full Code Here

TOP

Related Classes of solver.variables.events.IntEventType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.