Airport Generators#

class airlift.envs.generators.airport_generators.AirportGenerator(max_airports, processing_time, working_capacity, make_drop_off_area, drop_off_border_fraction, drop_off_area_radius, make_pick_up_area, pick_up_border_fraction, pick_up_area_size, min_land_coverage_fraction, mapgen=<airlift.envs.generators.map_generators.PlainMapGenerator object>)#

Generates Airports in the environment. Controls where pick up and drop of zones are located as well as their respective sizes and distances from each other. Controls which map generator is also utilized.

exception airlift.envs.generators.airport_generators.CannotPlaceZoneOnLand#
class airlift.envs.generators.airport_generators.GridAirportGenerator(rows=2, columns=2, airport_radius: float = 1, processing_time=0, working_capacity=4294967296, make_drop_off_area=True, drop_off_border_fraction=0.2, drop_off_area_radius=0.16, make_pick_up_area=True, pick_up_border_fraction=0.2, pick_up_area_size=(0.25, 0.25), min_land_coverage_fraction=0.7, mapgen=<airlift.envs.generators.map_generators.PlainMapGenerator object>)#

Generates Airports in a Grid utilizing a plain map

generate() Tuple[Collection[Airport], FlatMap, Optional[FlatArea], Optional[FlatArea]]#

Generates the airport coordinates/locations, the map, as well as the designated drop-off and pickup areas.

Returns:

A tuple containing, airports : A list of airports map : A generated world map that was created using the map generator dropoff_area : An area containing the designated cargo dropoff zone pick_up_area : An area containing the designated cargo pickup zone

class airlift.envs.generators.airport_generators.HardcodedAirportGenerator(airports: ~typing.List[~airlift.envs.airport.Airport], height: float = 1, width: float = 1, drop_off_area=None, pick_up_area=None, mapgen=<airlift.envs.generators.map_generators.PlainMapGenerator object>)#
generate() Tuple[Collection[Airport], FlatMap, Optional[FlatArea], Optional[FlatArea]]#

Generates the airport coordinates/locations, the map, as well as the designated drop-off and pickup areas.

Returns:

A tuple containing, airports : A list of airports map : A generated world map that was created using the map generator dropoff_area : An area containing the designated cargo dropoff zone pick_up_area : An area containing the designated cargo pickup zone

class airlift.envs.generators.airport_generators.RandomAirportGenerator(max_airports=20, airports_per_unit_area: float = 1, num_drop_off_airports: float = 1, num_pick_up_airports: float = 1, processing_time=0, working_capacity=4294967296, aspect_ratio=1.7777777777777777, make_drop_off_area=True, drop_off_border_fraction=0.2, drop_off_area_radius=0.1, make_pick_up_area=True, pick_up_border_fraction=0.2, pick_up_area_size=(0.25, 0.25), min_land_coverage_fraction=0.7, mapgen=<airlift.envs.generators.map_generators.PlainMapGenerator object>)#

Generates Airports uniformly at random

generate() Tuple[Collection[Airport], FlatMap, Optional[FlatArea], Optional[FlatArea]]#

Generates the airport coordinates/locations, the map, as well as the designated drop-off and pickup areas.

Returns:

A tuple containing, airports : A list of airports map : A generated world map that was created using the map generator dropoff_area : An area containing the designated cargo dropoff zone pick_up_area : An area containing the designated cargo pickup zone