SonTask.cs 2.75 KB
using PropertyChanged;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XingYe_ACS.BaseStruct
{
    [ImplementPropertyChanged]
    public class SonTask :IComparable
    {
        /// <summary>
        /// 子任务号排序
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public int CompareTo(object obj)
        {
            SonTask sonTask = obj as SonTask;
            if (sonTask == null)
                throw new NotImplementedException();

            int IndexThis = this.intSonTaskNo;
            int Indexobj = sonTask.intSonTaskNo;
            return IndexThis.CompareTo(Indexobj);
        }

        /// <summary>
        /// 序号
        /// </summary>
        public int intSerialNo { get; set; }

        /// <summary>
        /// 子任务号
        /// </summary>
        public int intSonTaskNo { get; set; }

        /// <summary>
        /// 主任务号
        /// </summary>
        public string strTaskNo { get; set; }

        /// <summary>
        /// 任务类型
        /// </summary>
        public EnumMsg.AgvTaskType sonTaskType { get; set; }

        /// <summary>
        /// 子任务起点信息
        /// </summary>
        public Point startPoint { get; set; }

        /// <summary>
        /// 子任务终点信息
        /// </summary>
        public Point endPoint { get; set; }

        /// <summary>
        /// 是否需要小车载货
        /// </summary>
        public bool isCarry { get; set; }

        /// <summary>
        /// 是否需要询问
        /// </summary>
        public EnumMsg.TaskRequestType taskRequestType { get; set; }

        /// <summary>
        /// 小车托盘转向
        /// </summary>
        public EnumMsg.OriDial dialDirection { get; set; }
        
        /// <summary>
        /// 小车车头方向
        /// </summary>
        public EnumMsg.OriType agvDirection { get; set; }

        /// <summary>
        /// 子任务路径点集合
        /// </summary>
        public List<PathPoint> pathPointList { get; set; }

        /// <summary>
        /// 任务状态
        /// </summary>
        public EnumMsg.SonTaskState sonTaskState { get; set; }

        /// <summary>
        /// 任务的开始时间
        /// </summary>
        public string strBeginTime { get; set; }

        /// <summary>
        /// 任务的结束时间
        /// </summary>
        public string strEndTime { get; set; }

        /// <summary>
        /// 等待时间
        /// </summary>
        public int waitTime { get; set; }

        /// <summary>
        /// 充电距离
        /// </summary>
        public int chargeLength { get; set; }
    }
}