EmptyAGVBackJob.cs
1.2 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
using Common;
using DeviceLibrary.bean;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.PeerResolvers;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DeviceLibrary
{
/// <summary>
/// 空车返回任务
/// </summary>
public class EmptyAGVBackJob : Job
{
/// <summary>
/// 空车返回任务
/// </summary>
public EmptyAGVBackJob(JobParam jobParam):base(jobParam)
{
JobName = "空车返回任务";
}
/// <summary>
/// 空车返回执行
/// </summary>
/// <param name="agv"></param>
public override Job Run(Agv_Info agv)
{
StartJobTime = JobRunStep.startTime;
if (JobRunStep.IsStep(RunStep.NONE))
{
return null;
//{
// JobRunStep.ToNextStep(RunStep.END);
//}
}
else if(JobRunStep.IsStep(RunStep.END))
{
JobRunStep.EndJob();
return null;
}
return this;
}
}
}