Skip to content
Snippets Groups Projects
Commit 52f0f885 authored by Jonas Blatt's avatar Jonas Blatt :ant:
Browse files

Merge branch 'fix/overlapping-double-values' into 'develop'

Fix Check In Contact

See merge request jonasblatt/ma-jonasblatt-dmn-verifier!56
parents 3b009486 6f9abe7b
No related branches found
No related tags found
No related merge requests found
...@@ -6,9 +6,8 @@ import de.unikoblenz.fgbks.base.utils.boundary.AbstractGrowingBoundary; ...@@ -6,9 +6,8 @@ import de.unikoblenz.fgbks.base.utils.boundary.AbstractGrowingBoundary;
/** /**
* The in contact checker implementation of {@link BoundaryCheckType#IS_IN_CONTACT} for {@link * The in contact checker implementation of {@link BoundaryCheckType#IS_IN_CONTACT} for {@link
* AbstractGrowingBoundary}. <br> The check returns true, if the first boundary is in contact with * AbstractGrowingBoundary}. <br>
* the other boundary. * The check returns true, if the first boundary is in contact with the other boundary. <br>
* <br>
* E.g: <br> * E.g: <br>
* *
* <ul> * <ul>
...@@ -49,7 +48,9 @@ public class CheckInContact extends AbstractBoundaryCheck<AbstractGrowingBoundar ...@@ -49,7 +48,9 @@ public class CheckInContact extends AbstractBoundaryCheck<AbstractGrowingBoundar
*/ */
public static boolean checkInContact(AbstractGrowingBoundary b1, AbstractGrowingBoundary b2) { public static boolean checkInContact(AbstractGrowingBoundary b1, AbstractGrowingBoundary b2) {
// TODO: check raw types // TODO: check raw types
if (b1.getLowerBound().compareTo(b2.getLowerBound()) <= 0) { if (b1.getLowerBound().compareTo(b2.getLowerBound()) < 0
|| b1.getLowerBound().compareTo(b2.getLowerBound()) == 0
&& b1.getLowerBoundType() == INCLUSIVE) {
return checkOrdered(b1, b2); return checkOrdered(b1, b2);
} else { } else {
return checkOrdered(b2, b1); return checkOrdered(b2, b1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment