tac.gui.launcher.forms package¶
Submodules¶
tac.gui.launcher.forms.agent module¶
Implement the form for agent parameters.
-
class
tac.gui.launcher.forms.agent.
AgentForm
(formdata=None, obj=None, prefix='', data=None, meta=None, **kwargs)¶ Bases:
wtforms.form.Form
The form to set the agent parameters.
-
agent_timeout
= <UnboundField(FloatField, ('Agent timeout',), {'default': 1.0, 'validators': [<wtforms.validators.NumberRange object>]})>¶
-
is_world_modeling
= <UnboundField(BooleanField, ('Is world modeling?',), {'default': False})>¶
-
max_reactions
= <UnboundField(IntegerField, ('Max reactions',), {'default': 100, 'widget': <wtforms.widgets.core.Input object>, 'validators': [<wtforms.validators.NumberRange object>]})>¶
-
name
= <UnboundField(StringField, ('Agent name',), {'default': 'my_baseline_agent', 'validators': [<wtforms.validators.Length object>]})>¶
-
pending_transaction_timeout
= <UnboundField(IntegerField, ('Pending transaction timeout',), {'default': 30, 'validators': [<wtforms.validators.NumberRange object>]})>¶
-
private_key_pem
= <UnboundField(FileField, ('Private key PEM file path',), {'default': None, 'validators': [<wtforms.validators.Optional object>]})>¶
-
register_as
= <UnboundField(SelectField, ('Register as',), {'choices': [('buyer', 'buyer'), ('seller', 'seller'), ('both', 'both')], 'default': 'both'})>¶
-
rejoin
= <UnboundField(BooleanField, ('Is rejoining?',), {'default': False})>¶
-
search_for
= <UnboundField(SelectField, ('Search for',), {'choices': [('buyers', 'buyers'), ('sellers', 'sellers'), ('both', 'both')], 'default': 'both'})>¶
-
services_interval
= <UnboundField(IntegerField, ('Services interval',), {'default': 5, 'widget': <wtforms.widgets.core.Input object>, 'validators': [<wtforms.validators.NumberRange object>]})>¶
-
tac.gui.launcher.forms.sandbox module¶
Implement the form for sandbox parameters.
-
class
tac.gui.launcher.forms.sandbox.
SandboxForm
(formdata=None, obj=None, prefix='', data=None, meta=None, **kwargs)¶ Bases:
wtforms.form.Form
The form to set the sandbox parameters.
-
competition_timeout
= <UnboundField(IntegerField, ('Competition timeout',), {'default': 240, 'validators': [<wtforms.validators.NumberRange object>]})>¶
-
inactivity_timeout
= <UnboundField(IntegerField, ('Inactivity timeout',), {'default': 60, 'validators': [<wtforms.validators.NumberRange object>]})>¶
-
lower_bound_factor
= <UnboundField(IntegerField, ('Lower bound factor',), {'default': 0, 'widget': <wtforms.widgets.core.Input object>, 'validators': [<wtforms.validators.NumberRange object>]})>¶
-
nb_agents
= <UnboundField(IntegerField, ('No. Agents',), {'default': 5, 'widget': <wtforms.widgets.core.Input object>, 'validators': [<wtforms.validators.NumberRange object>]})>¶
-
nb_baseline_agents
= <UnboundField(IntegerField, ('No. Baseline Agents',), {'default': 5, 'widget': <wtforms.widgets.core.Input object>, 'validators': [<wtforms.validators.NumberRange object>]})>¶
-
nb_goods
= <UnboundField(IntegerField, ('No. Goods',), {'default': 5, 'widget': <wtforms.widgets.core.Input object>, 'validators': [<wtforms.validators.NumberRange object>]})>¶
-
registration_timeout
= <UnboundField(IntegerField, ('Registration timeout',), {'default': 20, 'validators': [<wtforms.validators.NumberRange object>]})>¶
-
seed
= <UnboundField(IntegerField, ('Seed',), {'default': 42})>¶
-
services_interval
= <UnboundField(IntegerField, ('Services interval',), {'default': 5, 'widget': <wtforms.widgets.core.Input object>, 'validators': [<wtforms.validators.NumberRange object>]})>¶
-
tx_fee
= <UnboundField(FloatField, ('Transaction fee',), {'default': 0.1, 'validators': [<wtforms.validators.NumberRange object>]})>¶
-
upper_bound_factor
= <UnboundField(IntegerField, ('Upper bound factor',), {'default': 0, 'widget': <wtforms.widgets.core.Input object>, 'validators': [<wtforms.validators.NumberRange object>]})>¶
-
whitelist_file
= <UnboundField(FileField, ('Whitelist file',), {'default': None, 'validators': [<wtforms.validators.Optional object>]})>¶
-
Module contents¶
Implement forms to display in the launcher GUI.