Location

Location(self, settings, profile=None)

This is a class for one HRDLocation. This class contains the Settings, the WaterSystem mode (which is the model describing the statistics and loading) and a Profile. Which is a schematisation of the cross-section.

Attributes

Name Description
model
profile
settings

Methods

Name Description
get_model Returns the WaterSystem model.
get_profile Return the Profile object
get_settings Return the Settings object.
has_profile Returns whether of not a profile is assigned.
remove_profile Remove the Profile from the Location class.
set_profile Set the Profile for this location. By default, profile is none. Which
set_settings Set the Settings for this location.

get_model

Location.get_model()

Returns the WaterSystem model.

Returns

Name Type Description
WaterSystem The WaterSystem model

get_profile

Location.get_profile()

Return the Profile object

Returns

Name Type Description
Loading The Loading object for this Location

get_settings

Location.get_settings()

Return the Settings object.

Returns

Name Type Description
Settings The Settings object for this Location

has_profile

Location.has_profile()

Returns whether of not a profile is assigned.

Returns

Name Type Description
bool Profile assigned to Location

remove_profile

Location.remove_profile()

Remove the Profile from the Location class.

set_profile

Location.set_profile(profile=None)

Set the Profile for this location. By default, profile is none. Which deletes the profile from this location.

Parameters

Name Type Description Default
profile Profile Profile object (default: None) None

set_settings

Location.set_settings(settings)

Set the Settings for this location.

Parameters

Name Type Description Default
settings Settings Settings object required