package com.algo.model;
|
|
|
/**
|
* 路径代码模型
|
* 表示路径中的单个节点信息
|
*/
|
public class PathCode {
|
|
/**
|
* 路径点编号
|
*/
|
private String code;
|
|
/**
|
* 方向角度
|
*/
|
private String direction;
|
|
/**
|
* 动作类型
|
*/
|
private String actionType;
|
|
/**
|
* 任务ID
|
*/
|
private String taskId;
|
|
/**
|
* 位置类型
|
*/
|
private String posType;
|
|
/**
|
* 背篓层级
|
*/
|
private int lev;
|
|
/**
|
* 是否为目标点
|
*/
|
private boolean isTargetPoint;
|
|
/**
|
* 到达时间(毫秒时间戳)
|
*/
|
private Long arrivalTime;
|
|
/**
|
* 离开时间(毫秒时间戳)
|
*/
|
private Long departureTime;
|
|
/**
|
* 累计时间(从路径起点开始的累计时间,毫秒)
|
*/
|
private Long cumulativeTime;
|
|
// 构造函数
|
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;
|
}
|
|
public Long getArrivalTime() {
|
return arrivalTime;
|
}
|
|
public void setArrivalTime(Long arrivalTime) {
|
this.arrivalTime = arrivalTime;
|
}
|
|
public Long getDepartureTime() {
|
return departureTime;
|
}
|
|
public void setDepartureTime(Long departureTime) {
|
this.departureTime = departureTime;
|
}
|
|
public Long getCumulativeTime() {
|
return cumulativeTime;
|
}
|
|
public void setCumulativeTime(Long cumulativeTime) {
|
this.cumulativeTime = cumulativeTime;
|
}
|
|
@Override
|
public String toString() {
|
return "PathCode{" +
|
"code='" + code + '\'' +
|
", direction='" + direction + '\'' +
|
", actionType='" + actionType + '\'' +
|
", taskId='" + taskId + '\'' +
|
", posType='" + posType + '\'' +
|
", lev=" + lev +
|
", isTargetPoint=" + isTargetPoint +
|
", arrivalTime=" + arrivalTime +
|
", departureTime=" + departureTime +
|
", cumulativeTime=" + cumulativeTime +
|
'}';
|
}
|
}
|