map2loop.sorter#

Functions

abstractmethod(funcobj)

A decorator indicating abstract methods.

Classes

ABC()

Helper class that provides a standard way to create an ABC using inheritance.

MapData([tmp_path, verbose_level])

A data structure containing all the map data loaded from map files

Sorter()

Base Class of Sorter used to force structure of Sorter

SorterAgeBased()

Sorter class which returns a sorted list of units based on the min and max ages of the units

SorterAlpha()

Sorter class which returns a sorted list of units based on the adjacency of units prioritising the units with lower number of contacting units

SorterMaximiseContacts()

Sorter class which returns a sorted list of units based on the adjacency of units prioritising the maximum length of each contact

SorterObservationProjections()

Sorter class which returns a sorted list of units based on the adjacency of units using the direction of observations to predict which unit is adjacent to the current one

SorterUseHint()

Sorter class which only returns the hint (no algorithm for sorting is done in this class)

SorterUseNetworkX()

Sorter class which returns a sorted list of units based on the unit relationships using a topological graph sorting algorithm