Discrete Backend
Discrete actions are indexable by integer.
- class DiscreteActionBuilder(satellite: Satellite)[source]
Bases:
ActionBuilderProcesses actions for a discrete action space.
- Parameters:
satellite (Satellite) – Satellite to create actions for.
- reset_post_sim_init() None[source]
Clear the previous action key after simulator initialization.
- Return type:
None
- property action_space: Discrete | Tuple
Return a discrete space, with a continuous parameter for hybrid actions.
- property action_description: list[str]
Return a list of strings corresponding to action names.
- set_action(action: int | tuple[int, float]) None[source]
Set an action by global index, with an optional continuous parameter.
If the action is not an integer, the satellite will attempt to call
set_action_overridefor each action, in order, until one works.Hybrid actions receive
(local_index, parameter). Other actions receive only their local index, even when the overall action space is hybrid.- Parameters:
action (int | tuple[int, float])
- Return type:
None