package com.algo.model; import com.fasterxml.jackson.annotation.JsonProperty; /** * 路径代码模型 * 表示路径中的单个节点信息 */ public class PathCode { /** * 路径点编号 */ private String code; /** * 方向角度 */ private String direction; /** * 动作类型 */ private String actionType; /** * 任务ID */ private String taskId; /** * 位置类型 */ private String posType; /** * 背篓层级 */ private int lev; /** * 是否为目标点 */ @JsonProperty("isTargetPoint") private boolean isTargetPoint; // 构造函数 public PathCode() { } public PathCode(String code, String direction) { this.code = code; this.direction = direction; } public PathCode(String code, String direction, String actionType, String taskId, String posType, int lev, boolean isTargetPoint) { this.code = code; this.direction = direction; this.actionType = actionType; this.taskId = taskId; this.posType = posType; this.lev = lev; this.isTargetPoint = isTargetPoint; } // Getter和Setter方法 public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getDirection() { return direction; } public void setDirection(String direction) { this.direction = direction; } public String getActionType() { return actionType; } public void setActionType(String actionType) { this.actionType = actionType; } public String getTaskId() { return taskId; } public void setTaskId(String taskId) { this.taskId = taskId; } public String getPosType() { return posType; } public void setPosType(String posType) { this.posType = posType; } public int getLev() { return lev; } public void setLev(int lev) { this.lev = lev; } public boolean isTargetPoint() { return isTargetPoint; } public void setTargetPoint(boolean targetPoint) { isTargetPoint = targetPoint; } @Override public String toString() { return "PathCode{" + "code='" + code + '\'' + ", direction='" + direction + '\'' + ", actionType='" + actionType + '\'' + ", taskId='" + taskId + '\'' + ", posType='" + posType + '\'' + ", lev=" + lev + ", isTargetPoint=" + isTargetPoint + '}'; } }