You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
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;
|
|
}
|
|
}
|