Skip to content

Commit

Permalink
EventType declared only if domain change
Browse files Browse the repository at this point in the history
  • Loading branch information
cprudhom committed Oct 12, 2023
1 parent ee61b23 commit 87cf1e5
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ public boolean updateLowerBound(int value, ICause cause) throws ContradictionExc
} else {
change = var.updateLowerBound(value + 1, this);
}
IntEventType e = IntEventType.INCLOW;
if (isInstantiated()) {
e = IntEventType.INSTANTIATE;
}
if (change) {
IntEventType e = IntEventType.INCLOW;
if (isInstantiated()) {
e = IntEventType.INSTANTIATE;
}
this.notifyPropagators(e, cause);
return true;
} else {
Expand All @@ -180,11 +180,11 @@ public boolean updateUpperBound(int value, ICause cause) throws ContradictionExc
} else {
change = var.updateUpperBound(value, this);
}
IntEventType e = IntEventType.DECUPP;
if (isInstantiated()) {
e = IntEventType.INSTANTIATE;
}
if (change) {
IntEventType e = IntEventType.DECUPP;
if (isInstantiated()) {
e = IntEventType.INSTANTIATE;
}
this.notifyPropagators(e, cause);
return true;
} else {
Expand Down

0 comments on commit 87cf1e5

Please sign in to comment.