| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.time.StopWatch; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.context.event.ApplicationReadyEvent; |
| | | import org.springframework.context.event.EventListener; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.PostConstruct; |
| | |
| | | |
| | | // launcher ------------------------------------------------------- |
| | | |
| | | @PostConstruct |
| | | @EventListener(ApplicationReadyEvent.class) |
| | | public void init() { |
| | | Integer lev = MapDataDispatcher.MAP_DEFAULT_LEV; |
| | | String laneDataStr = redis.getValue(RedisConstant.MAP_LANE_DATA, String.valueOf(lev)); |
| | |
| | | for (String anotherPointNear : anotherPointNears) { |
| | | if (!lane.getCodes().contains(anotherPointNear) && this.adjacencyCodeMap.get(anotherPointNear).size() == 2) { |
| | | |
| | | for (Lane lane0 : lanes) { |
| | | for (Lane lane0 : new ArrayList<>(lanes)) { |
| | | if (lane0.getCodes().contains(anotherPointNear)) { |
| | | |
| | | lane0.getCodes().addAll(lane.getCodes()); |