WarehouseSigManager.cs
2.0 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DeviceLibrary.manager
{
public class WarehouseSigManager
{
public static bool MayEnter =false;
public static bool MayLeave =false;
public static bool StopEnter = false;
public static TargetWithFix TargetWithFix = new TargetWithFix();
public static OutStore OutStore = new OutStore();
public static void Reset()
{
MayEnter = false;
MayLeave = false;
StopEnter = false;
TargetWithFix.Reset();
OutStore.Reset();
}
}
/// <summary>
/// 运送目的地
/// </summary>
public class TargetWithFix
{
/// <summary>
/// 呼叫地
/// </summary>
public string Name { get; set; }
/// <summary>
/// 目的地
/// </summary>
public string Target { get; set; }
public string CurPlace { get; set; } = "";
public void Set(string name,string target)
{
Name = name;
Target = target;
}
public void Reset()
{
Name = "";
Target = "";
CurPlace = "";
}
}
public class FixInfoOnAGV
{
public FixType Type { get; private set; }
public bool HasLoad { get;private set; }
public void Set(FixType fixType,bool hasload)
{
Type = fixType;
HasLoad = hasload;
}
public void Reset()
{
Type = FixType.None;
HasLoad = false;
}
}
public class OutStore
{
public bool Has { get; set; }
public FixType Type { get; set; }
public void Set(bool has,FixType fixType)
{
Has = has;
Type = fixType;
}
public void Reset()
{
Has = false;
Type = FixType.None;
}
}
}
;