Skip to content

Commit

Permalink
Add BoundaryNodeRule toString methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Jan 19, 2024
1 parent 3467e23 commit 13135e8
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ public boolean isInBoundary(int boundaryCount)
// the "Mod-2 Rule"
return boundaryCount % 2 == 1;
}

public String toString() {
return "Mod2 Boundary Node Rule";
}
}

/**
Expand Down Expand Up @@ -152,6 +156,10 @@ public boolean isInBoundary(int boundaryCount)
{
return boundaryCount > 0;
}

public String toString() {
return "EndPoint Boundary Node Rule";
}
}

/**
Expand All @@ -171,6 +179,10 @@ public boolean isInBoundary(int boundaryCount)
{
return boundaryCount > 1;
}

public String toString() {
return "MultiValent EndPoint Boundary Node Rule";
}
}

/**
Expand All @@ -189,6 +201,10 @@ public boolean isInBoundary(int boundaryCount)
{
return boundaryCount == 1;
}

public String toString() {
return "MonoValent EndPoint Boundary Node Rule";
}
}


Expand Down

0 comments on commit 13135e8

Please sign in to comment.