RUFAS.biophysical.animal.animal_grouping_scenarios module#

class RUFAS.biophysical.animal.animal_grouping_scenarios.AnimalGroupingScenario(*values)#

Bases: Enum

The different scenarios for grouping animals on a farm. Each scenario is a dictionary of the form: { AnimalCombination: [List of animal types/subtypes] }

CALF__GROWING__CLOSE_UP__LACCOW = {AnimalCombination.CALF: [AnimalType.CALF], AnimalCombination.CLOSE_UP: [AnimalType.HEIFER_III, AnimalType.DRY_COW], AnimalCombination.GROWING: [AnimalType.HEIFER_I, AnimalType.HEIFER_II], AnimalCombination.LAC_COW: [AnimalType.LAC_COW]}#
CALF__GROWING_AND_CLOSE_UP__LACCOW = {AnimalCombination.CALF: [AnimalType.CALF], AnimalCombination.GROWING_AND_CLOSE_UP: [AnimalType.HEIFER_I, AnimalType.HEIFER_II, AnimalType.HEIFER_III, AnimalType.DRY_COW], AnimalCombination.LAC_COW: [AnimalType.LAC_COW]}#
__init__(value: Dict[AnimalCombination, List[str]])#

Initialize the AnimalGroupingScenario.

Parameters#

valueDict[AnimalCombination, List[str]]

The value of the AnimalGroupingScenario.

_get_calf_type(calf: Animal) AnimalType#

Get the animal subtype of the given calf.

Parameters#

calfAnimal

The calf to get the animal subtype of.

Returns#

AnimalType

The animal subtype of the given calf.

_get_heiferI_type(heiferI: Animal) AnimalType#

Get the animal subtype of the given heiferI.

Parameters#

heiferIAnimal

The heiferI to get the animal subtype of.

Returns#

AnimalType

The animal subtype of the given heiferI.

_get_heiferII_type(heiferII: Animal) AnimalType#

Get the animal subtype of the given heiferII.

Parameters#

heiferIIAnimal

The heiferII to get the animal subtype of.

Returns#

AnimalType

The animal subtype of the given heiferII.

_get_heiferIII_type(heiferIII: Animal) AnimalType#

Get the animal subtype of the given heiferIII.

Parameters#

heiferIIIAnimal

The heiferIII to get the animal subtype of.

Returns#

AnimalType

The animal subtype of the given heiferIII.

_get_cow_type(cow: Animal) AnimalType#

Get the animal subtype of the given cow.

Parameters#

cowAnimal

The cow to get the animal subtype of.

Returns#

AnimalType

The animal subtype of the given cow.

get_animal_type(animal: Animal) AnimalType#

Get the animal type of the given animal.

Parameters#

animalAnimal

The animal to get the animal type of.

Returns#

AnimalType

The animal type of the given animal.

find_animal_combination(animal: Animal) AnimalCombination#

Find the animal combination that the given animal belongs to.

Parameters#

animalAnimal

The animal to find the animal combination for.

Returns#

AnimalCombination

The animal combination that the given animal belongs to.