public static JJCRobot GetInstance() { if (Instance == null) { Instance = new JJCRobot(); } return(Instance); }
public static Robot GetRobot(string robotName) { Robot robot = null; switch (robotName) { case "JJC": robot = JJCRobot.GetInstance(); break; case "DFFB": robot = DFFBRobot.GetInstance(); break; case "MY": robot = MYRobot.GetInstance(); break; default: robot = JJCRobot.GetInstance(); break; } return(robot); }