swarmrl.agents.agent Module API Reference¶
Parent class for all agents
Agent
¶
Parent class for a SwarmRL Agent.
Source code in swarmrl/agents/agent.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
kill_switch
property
writable
¶
If true, kill the simulation.
calc_action(colloids)
¶
Compute the state of the system based on the current colloid position.
Returns¶
actions: typing.List[Action] Return the action the colloid should take. kill_switch : bool Flag capable of ending simulation.
Source code in swarmrl/agents/agent.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|