package com.ruoyi.robot.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 任务执行记录对象 ld_task_execution_log
 * 
 * @author ruoyi
 */
public class LdTaskExecutionLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 任务ID */
    @Excel(name = "任务ID")
    private Long taskId;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String taskName;

    /** 地图名称 */
    @Excel(name = "地图名称")
    private String mapName;

    /** 执行时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "执行时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date executeTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 执行状态 */
    @Excel(name = "执行状态", readConverterExp = "running=运行中,completed=完成,failed=失败,cancelled=取消")
    private String status;

    /** 起始目标点 */
    @Excel(name = "起始目标点")
    private String startWaypoint;

    /** 结束目标点 */
    @Excel(name = "结束目标点")
    private String endWaypoint;

    /** 已完成目标点数 */
    @Excel(name = "已完成目标点数")
    private Integer completedWaypoints;

    /** 总目标点数 */
    @Excel(name = "总目标点数")
    private Integer totalWaypoints;

    /** 错误码 */
    @Excel(name = "错误码")
    private String errorCode;

    /** 错误信息 */
    @Excel(name = "错误信息")
    private String errorMessage;

    /** 执行结果详情 */
    private String executeResult;

    /** 执行设备ID */
    @Excel(name = "执行设备ID")
    private String deviceId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setTaskId(Long taskId)
    {
        this.taskId = taskId;
    }

    public Long getTaskId()
    {
        return taskId;
    }

    public void setTaskName(String taskName)
    {
        this.taskName = taskName;
    }

    public String getTaskName()
    {
        return taskName;
    }

    public void setMapName(String mapName)
    {
        this.mapName = mapName;
    }

    public String getMapName()
    {
        return mapName;
    }

    public void setExecuteTime(Date executeTime)
    {
        this.executeTime = executeTime;
    }

    public Date getExecuteTime()
    {
        return executeTime;
    }

    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setStartWaypoint(String startWaypoint)
    {
        this.startWaypoint = startWaypoint;
    }

    public String getStartWaypoint()
    {
        return startWaypoint;
    }

    public void setEndWaypoint(String endWaypoint)
    {
        this.endWaypoint = endWaypoint;
    }

    public String getEndWaypoint()
    {
        return endWaypoint;
    }

    public void setCompletedWaypoints(Integer completedWaypoints)
    {
        this.completedWaypoints = completedWaypoints;
    }

    public Integer getCompletedWaypoints()
    {
        return completedWaypoints;
    }

    public void setTotalWaypoints(Integer totalWaypoints)
    {
        this.totalWaypoints = totalWaypoints;
    }

    public Integer getTotalWaypoints()
    {
        return totalWaypoints;
    }

    public void setErrorCode(String errorCode)
    {
        this.errorCode = errorCode;
    }

    public String getErrorCode()
    {
        return errorCode;
    }

    public void setErrorMessage(String errorMessage)
    {
        this.errorMessage = errorMessage;
    }

    public String getErrorMessage()
    {
        return errorMessage;
    }

    public void setExecuteResult(String executeResult)
    {
        this.executeResult = executeResult;
    }

    public String getExecuteResult()
    {
        return executeResult;
    }

    public void setDeviceId(String deviceId)
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId()
    {
        return deviceId;
    }

    @Override
    public String toString() {
        return "LdTaskExecutionLog{" +
            "id=" + id +
            ", taskId=" + taskId +
            ", taskName='" + taskName + '\'' +
            ", mapName='" + mapName + '\'' +
            ", executeTime=" + executeTime +
            ", endTime=" + endTime +
            ", status='" + status + '\'' +
            ", startWaypoint='" + startWaypoint + '\'' +
            ", endWaypoint='" + endWaypoint + '\'' +
            ", completedWaypoints=" + completedWaypoints +
            ", totalWaypoints=" + totalWaypoints +
            ", errorCode='" + errorCode + '\'' +
            ", errorMessage='" + errorMessage + '\'' +
            ", deviceId='" + deviceId + '\'' +
            '}';
    }
}
