| | |
| | | return this.initialized; |
| | | } |
| | | |
| | | public List<String> getLanePoints(String codeData) { |
| | | public Lane search(String codeData) { |
| | | if (Cools.isEmpty(codeData) || !this.initialized) { |
| | | return null; |
| | | } |
| | | for (Lane lane : this.lanes) { |
| | | if (lane.getCodes().contains(codeData)) { |
| | | return lane.getCodes(); |
| | | return lane; |
| | | } |
| | | } |
| | | return null; |
| | |
| | | |
| | | this.mergeDeadEndLane(); |
| | | |
| | | this.deadInteractionPoint(); |
| | | this.deleteInteractionPoint(); |
| | | |
| | | this.filterLanesWithFewPoints(); |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | private void deadInteractionPoint() { |
| | | private void deleteInteractionPoint() { |
| | | for (Lane lane : this.lanes) { |
| | | lane.removeInteraction(this.adjacencyCodeMap); |
| | | } |