init_genius_bridge

negmas.genius.init_genius_bridge(path=None, port=25337, debug=False, timeout=0, force_timeout=True, save_logs=False, log_path=None, die_on_exit=False, use_shell=False, verbose=False, allow_agent_print=False)[source]

Initializes a genius connection

Parameters:
  • path (Path | str | None) – The path to a JAR file that runs negloader

  • port (int) – port number to use

  • debug (bool) – If true, passes –debug to the bridge

  • timeout (float) – If positive and nonzero, passes it as the global timeout for the bridge. Note that currently, the bridge supports only integer timeout values and the fraction will be truncated.

Return type:

int

Returns:

Port if started. -1 if a bridge is already running on this port. 0 if failed