| | |
| | | @Service |
| | | public class LaneService { |
| | | |
| | | public boolean isInitialized = Boolean.FALSE; |
| | | private boolean initialized = Boolean.FALSE; |
| | | |
| | | private final List<Lane> lanes = new ArrayList<>(); |
| | | |
| | |
| | | @Autowired |
| | | private SnowflakeIdWorker snowflakeIdWorker; |
| | | |
| | | public Boolean isInitialized() { |
| | | return this.initialized; |
| | | } |
| | | |
| | | public List<String> getLanePoints(String codeData) { |
| | | if (Cools.isEmpty(codeData) || !this.isInitialized) { |
| | | if (Cools.isEmpty(codeData) || !this.initialized) { |
| | | return null; |
| | | } |
| | | for (Lane lane : this.lanes) { |
| | |
| | | |
| | | this.filterLanesWithFewPoints(); |
| | | |
| | | this.isInitialized = Boolean.TRUE; |
| | | this.initialized = Boolean.TRUE; |
| | | } |
| | | |
| | | private void fillAdjacencyCodeMap(List<Code> codeList) { |