World Generators#

class airlift.envs.generators.world_generators.AirliftWorldGenerator(plane_types=[A0], airport_generator=<airlift.envs.generators.airport_generators.RandomAirportGenerator object>, route_generator=<airlift.envs.generators.route_generators.RouteByDistanceGenerator object>, cargo_generator=<airlift.envs.generators.cargo_generators.StaticCargoGenerator object>, airplane_generator=<airlift.envs.generators.airplane_generators.AirplaneGenerator object>, routemap_updater=<airlift.envs.generators.routemap_updater.NoRouteMapUpdater object>, static_airports=False, max_cycles=10000)#

Utilizes all the generators (Airport, Route, Cargo, Airplane etc…) to create the environment.

generate() Tuple[RouteMap, List[EnvAgent], Set[Cargo]]#

Generates the initial cargo orders, the routes for each plane type, environment agents (airplanes). The world map is also generated within the airport_generator.generate() function. One of the initialization parameters for the airport generator is to decide which world map generator to use with the keyword mapgen=””.

Returns:

(routemap, airplanes, cargo) : Returns a Tuple that contains the Routemap, the list of agents and the set of cargo generated.

seed(seed=None)#

Upon the initialization of the environment all the generators will be seeded.

class airlift.envs.generators.world_generators.WorldGenerator(max_cycles=4294967296)#

The base class for generating the airlift world.