RUFAS.routines.manure.manure_treatments.manure_treatment_factory module#

class RUFAS.routines.manure.manure_treatments.manure_treatment_factory.ManureTreatmentFactory#

Bases: object

Class for creating different types of manure treatment systems.

static get_instance(configuration_name: str, weather: Weather, time: RufasTime, manure_treatment_config: ManureTreatmentConfig | Tuple[ManureTreatmentConfig, ManureTreatmentConfig]) BaseManureTreatment#

Returns a manure treatment system instance for the given manure treatment type name.

Parameters#

configuration_namestr

The name of the manure treatment configuration.

weatherWeather

The weather data.

timeRufasTime

The RufasTime object.

manure_treatment_configUnion[ManureTreatmentConfig, Tuple[ManureTreatmentConfig, ManureTreatmentConfig]]

The manure treatment configuration data.

Returns#

BaseManureTreatment

A manure treatment system instance for the given manure treatment type name.