Event manager

Submodules

Event manager

class fleetrl.utils.event_manager.event_manager.EventManager[source]

Bases: object

The EventManager class decides if a new event occurred that is relevant for the RL agent For example: Subsequent steps where no new car arrives are flagged as irrelevant and not sent to the agent New arrival triggers an observation to be sent to the RL agent via the step() return function

Idea from: https://doi.org/10.1016/j.buildenv.2023.110546

static check_event(episode)[source]
Parameters:

events – variable that contains number of relevant events

Return type:

bool

Returns:

bool to confirm that a relevant event took place