Get a set of paths connected to exit @param dir exit direction @return set of paths or empty set
(final String dir)
| 294 | * @return set of paths or empty set |
| 295 | */ |
| 296 | public HashSet<Path> getPathsTo(final String dir) { |
| 297 | HashSet<Path> ret = new HashSet<>(); |
| 298 | for (final Path pa : paths) { |
| 299 | if (pa.getExit(this).equals(dir)) { |
| 300 | ret.add(pa); |
| 301 | } |
| 302 | } |
| 303 | return ret; |
| 304 | } |
| 305 | |
| 306 | /** |
| 307 | * Gets a flag value |