コード例 #1
0
 public static DFFBRobot GetInstance()
 {
     if (Instance == null)
     {
         Instance = new DFFBRobot();
     }
     return(Instance);
 }
コード例 #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);
        }