reassesslib.load_data.Ant

class reassesslib.load_data.Ant(ant_type, start_pos, weight, age, mandible_size)

This is a simple class representing a Ant

This class has attributes: ant_type, start_pos, weight, age, mandible_size

__init__(ant_type, start_pos, weight, age, mandible_size)

Setting up the Ant class

Parameters:
  • ant_type – Queen, worker or drone

  • start_pos (array_like) – Array of the start position of the Ant

  • weight – Array of ant weights

  • age (int or float) – Array of the end position of the Ant

  • mandible_size – Array of mandible sizes of the ants

Returns:

None

Methods

__init__(ant_type, start_pos, weight, age, ...)

Setting up the Ant class

get_pos()

Get position of the Ant

get_stats()

Getting statistics on this Ant

get_pos()

Get position of the Ant

Returns:

Returns the requested position

Return type:

array_like

get_stats()

Getting statistics on this Ant

Parameters:

None

Returns:

A dictionary mapping each of the properties of the Ant to the respective value.

Return type:

dict