Exemple #1
0
 public static MYRobot GetInstance()
 {
     if (Instance == null)
     {
         Instance = new MYRobot();
     }
     return(Instance);
 }
Exemple #2
0
        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);
        }