Discrete Backend

Discrete actions are indexable by integer.

class DiscreteActionBuilder(satellite: Satellite)[source]

Bases: ActionBuilder

Processes actions for a discrete action space.

Parameters:

satellite (Satellite) – Satellite to create actions for.

reset_post_sim_init() None[source]

Log previous action key.

Return type:

None

property action_space: Discrete

Discrete action space.

property action_description: list[str]

Return a list of strings corresponding to action names.

set_action(action: int) None[source]

Sets the action based on the integer index.

If the action is not an integer, the satellite will attempt to call set_action_override for each action, in order, until one works.

Parameters:

action (int)

Return type:

None