using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace GummingEntity { public enum TaskStatus { Puted = 1, Done = 4, } public enum TaskType { Put = 1, Get = 2, } public class RobotTask { public string TaskId; public TaskType PutType; public HardRobotStationEntity RobotStation; public StationStatus StationStatus; public FlowStatus FlowStatus; public CancellationTokenSource CancellationTokenSource; public TaskStatus Status; public int Priority; public int TryIndex = 0; public DateTime StartTime; public double SpendSecond; public bool Dealed; } public enum RobotMessageType { Start = 1, End = 2, } public class RobotMessage { public string Target; public string WhichArm; public string Message; public RobotMessageType MessageType; } }