@Synchronized("stateLock") public void addNetwork(PircBotX bot){
  checkNotNull(bot,"Bot cannot be null");
  checkArgument(!bot.isConnected(),"Bot must not already be connected");
  if (state == State.NEW) {
    log.debug("Not started yet, add to queue");
    startQueue.add(bot);
  }
 else   if (state == State.RUNNING) {
    log.debug("Already running, start bot immediately");
    startBot(bot);
  }
 else   throw new RuntimeException("MultiBotManager is not running. State: " + state);
}

@ Synchronized ( "stateLock" ) public void addNetwork ( PircBotX bot ) { checkNotNull ( bot , "Bot cannot be null" ) ; checkArgument ( ! bot . isConnected ( ) , "Bot must not already be connected" ) ; if ( state == State . NEW ) { log . debug ( "Not started yet, add to queue" ) ; startQueue . add ( bot ) ; } else if ( state == State . RUNNING ) { log . debug ( "Already running, start bot immediately" ) ; startBot ( bot ) ; } else throw new RuntimeException ( "MultiBotManager is not running. State: " + state ) ; }
adds a bot to be managed .
