| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.zy.acs.common.utils.News; |
| | | |
| | | import javax.annotation.PostConstruct; |
| | | import java.util.*; |
| | |
| | | } |
| | | |
| | | public synchronized DynamicNode[][] initDynamicMatrix(Integer lev) { |
| | | log.info("There is initializing Dynamic Matrix......"); |
| | | News.info("There is initializing Dynamic Matrix......"); |
| | | lev = Optional.ofNullable(lev).orElse(MAP_DEFAULT_LEV); |
| | | |
| | | String[][] codeMatrix = getCodeMatrix(lev); |
| | |
| | | } |
| | | |
| | | public synchronized String[][] initCdaMatrix(Integer lev) { |
| | | log.info("There is initializing Cda Matrix......"); |
| | | News.info("There is initializing Cda Matrix......"); |
| | | lev = Optional.ofNullable(lev).orElse(MAP_DEFAULT_LEV); |
| | | |
| | | if (Cools.isEmpty(xIdxList, yIdxList)) { |
| | |
| | | } |
| | | |
| | | public synchronized int[][] initTurnMatrix(Integer lev) { |
| | | log.info("There is initializing Turn Matrix......"); |
| | | News.info("There is initializing Turn Matrix......"); |
| | | lev = Optional.ofNullable(lev).orElse(MAP_DEFAULT_LEV); |
| | | |
| | | String[][] codeMatrix = getCodeMatrix(lev); |
| | |
| | | |
| | | |
| | | public synchronized int[][] initMapMatrix(Integer lev) { |
| | | log.info("There is initializing Map Matrix......"); |
| | | News.info("There is initializing Map Matrix......"); |
| | | lev = Optional.ofNullable(lev).orElse(MAP_DEFAULT_LEV); |
| | | |
| | | String[][] codeMatrix = getCodeMatrix(lev); |
| | |
| | | } |
| | | |
| | | public synchronized void initRouteMap(Integer lev) { |
| | | log.info("There is initializing Route Map......"); |
| | | News.info("There is initializing Route Map......"); |
| | | lev = Optional.ofNullable(lev).orElse(MAP_DEFAULT_LEV); |
| | | Set<String> routeKeys = redis.getMapKeys(RedisConstant.AGV_MAP_ROUTE_HASH_FLAG); |
| | | Set<String> routeCdaKeys = redis.getMapKeys(RedisConstant.AGV_MAP_ROUTE_CDA_HASH_FLAG); |
| | |
| | | } |
| | | |
| | | public synchronized String[][] initCodeMatrix(Integer lev) { |
| | | log.info("There is initializing Code Matrix......"); |
| | | News.info("There is initializing Code Matrix......"); |
| | | lev = Optional.ofNullable(lev).orElse(MAP_DEFAULT_LEV); |
| | | List<Code> codeList = codeService.list(new LambdaQueryWrapper<Code>() |
| | | .eq(Code::getStatus, 1) |