fetchai / agents-tac

Competition and Agent Frameworks for the Trading Agents Competition
https://fetchai.github.io/agents-tac
Apache License 2.0
28 stars 8 forks source link

Add 'setup' and 'teardown' method. #339

Closed marcofavorito closed 5 years ago

marcofavorito commented 5 years ago

Proposed changes

Add a setup() and teardown() method to the Agent class.

Fixes

Fixes #332

Types of changes

What types of changes does your code introduce to agents-tac? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply.

Further comments

The setup() method is called in the _run_main_loop() function, before the while loop. The teardown() method, on the other hand, is called after the same while loop, just before the call to the stop() method.