namespace Gumming.Execute { public class RobotHand { public Wafer CurrentWafer { get; set; } public bool IsFree { get; set; } = true; public string Name { get; set; } public int GetRobotCode(string code) { if (code == "Get") { return Name.Equals("R") ? 0 : 2; } return Name.Equals("R") ? 1 : 3; } } }