releso.gym_environment.GymEnvironment

class releso.gym_environment.GymEnvironment(*args: Any, **kwargs: Any)

Bases: Env

Environment interface class for the gym environment definition.

This class is a placeholder class which complies with the OpenAI gym Interface. The real functionality is infused into the class after creation by substituting the functions from the SbSOvRL.parser_environment.Environment class.

__init__(action_space, observation_space) None

Constructor for gym environment object.

Many functions are dummy implementations and are overwritten by the correct functions at run time.

Parameters:
  • action_space (_type_) – _description_

  • observation_space (_type_) – _description_

Methods

close()

Dummy function definition for gym interface.

render([mode])

Dummy function definition for gym interface.

reset()

Dummy function definition for gym interface.

step(action)

Dummy function definition for gym interface.

Attributes

metadata

close() None

Dummy function definition for gym interface.

render(mode: str = 'mesh') None

Dummy function definition for gym interface.

reset() Any

Dummy function definition for gym interface.

step(action: int | List[float]) Tuple[ndarray | Dict[str, ndarray] | Tuple[ndarray, ...], float, bool, Dict]

Dummy function definition for gym interface.