ChargeStation.cs
1.6 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
using OnlineStore.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace CtuDeviceLib.model
{
public class ChargeStation
{
public string Name { get; set; }
public bool Enabled { get; set; }
public string OccupiedAgv { get; set; }
public DateTime StartTime { get; set; }
public string ChargeGroup { get; set; }
//public bool SetOccupied(RequestLimitInfo info)
//{
// if (info == null) return false;
// OccupiedAgvName = info.AGVName;
// RobotType = info.RobotType;
// Desc = info.Desc;
// LogUtil.info($"【{info.AGVName}】占用限制区【{info.AreaName}】【{info.Desc}】");
// return true;
//}
//public bool ClearOccupied(ReleaseLimitInfo info)
//{
// if (info == null) return false;
// if (OccupiedAgvName.Equals(info.AGVName))
// {
// OccupiedAgvName = string.Empty;
// RobotType = 0;
// Desc = "";
// LogUtil.info($"清除【{info.AGVName}】占用限制区【{info.AreaName}】");
// }
// return true;
//}
//public void Reset()
//{
// OccupiedAgvName = string.Empty;
// RobotType = 0;
// Desc = "";
// LogUtil.info($"重置限制区【{Name}】状态");
//}
}
public class RequestChargeStationInfo
{
public string AGVName { get; set; }
}
}