tac.agents.controller package

Submodules

tac.agents.controller.agent module

This module contains the ControllerAgent.

class tac.agents.controller.agent.ControllerAgent(name: str, oef_addr: str, oef_port: int, tac_parameters: tac.agents.controller.base.tac_parameters.TACParameters, monitor: tac.gui.monitor.Monitor, agent_timeout: Optional[float] = 1.0, max_reactions: int = 100, private_key_pem: Optional[str] = None, debug: bool = False, **kwargs)

Bases: aea.agent.Agent

The controller agent class implements a controller for TAC.

act() → None

Perform the agent’s actions.

Returns

None

react() → None

React to incoming events.

Returns

None

setup() → None

Set up the agent.

start() → None

Start the agent.

Returns

None

stop() → None

Stop the agent.

Returns

None

teardown() → None

Tear down the agent.

update() → None

Update the state of the agent.

Returns

None

tac.agents.controller.agent.main(name: str = 'controller', nb_agents: int = 5, nb_goods: int = 5, money_endowment: int = 200, base_good_endowment: int = 2, lower_bound_factor: int = 0, upper_bound_factor: int = 0, tx_fee: float = 1.0, oef_addr: str = '127.0.0.1', oef_port: int = 10000, start_time: str = '2021-02-21 20:53:39.415943', registration_timeout: int = 10, inactivity_timeout: int = 60, competition_timeout: int = 240, whitelist_file: Optional[str] = None, verbose: bool = False, dashboard: bool = False, visdom_addr: str = 'localhost', visdom_port: int = 8097, data_output_dir: str = 'data', version_id: str = '4796', seed: int = 42, **kwargs)

Run the controller script.

Module contents

Contains the TAC controller package.