ClientNode.cs
1.9 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
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DeviceLib.Model.AGV
{
/// <summary>
/// 节点类
/// </summary>
[Table("tbl_nodes")]
public class ClientNode
{
[Key]
/// <summary>
/// 节点编号
/// </summary>
public int id { get; set; } = -1;
/// <summary>
/// 节点名称
/// </summary>
public string name { get; set; }
/// <summary>
/// 服务端是否开启节点
/// </summary>
public bool opened { get; set; }
/// <summary>
/// 客户端是否屏蔽服务端信号
/// </summary>
public bool shielded { get; set; } = false;
/// <summary>
/// 节点状态
/// </summary>
public int status { get; set; }
/// <summary>
/// 节点等级
/// </summary>
public int level { get; set; }
[NotMapped]
public bool online { get; set; }
/// <summary>
/// 节点IP
/// </summary>
public string ip { get; set; } = "";
/// <summary>
/// 节点类型
/// 0--点位(线体、点位;唯一)
/// 1--待机点
/// 2--充电
/// 3--临时待机点
/// 4--任务点
/// </summary>
public int type { get; set; }
/// <summary>
/// 料架号
/// </summary>
public string shelf_id { set; get; }
/// <summary>
/// 车间编号
/// </summary>
public int workshop_id { get; set; }
[NotMapped]
public Workshop workshop { get; set; }
/// <summary>
/// 描述
/// </summary>
public string description { set; get; }
/// <summary>
/// 节点占用的AGV
/// </summary>
[NotMapped]
public int occupiedAgv { get; set; }
}
}