code: public void connect() {
          CommandFactory f = new CommandFactory();
          f.addTrainerInitCommand();
          initMessage = f.next();
          super.start();
          super.setName("Trainer");
      }
docs: Connects to the server via AbstractUDPClient.