SonTask.cs
2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
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; }
}
}