Requirements#

Defines the requirements that can be specified to a battery system.

exception basd.requirements.UnsatisfiableRequirement[source]#

Raised when a requirement can not be sanitized or is physically not meaningful.

class basd.requirements.Requirements(requirements_file: Path)[source]#

Holds the battery system requirements

__init__(requirements_file: Path)[source]#
validate() None[source]#

Validates that the provided requirements are physically meaningfully, e.g., that the minimum voltage can no be higher than the maximum voltage.

Raises:

[UnsatisfiableRequirement] – a requirement that is physically not satisfiable.

__str__() str[source]#

String representation of the requirement.

get_requirement_as_table() list[tuple][source]#

Returns a the requirements in list, that makes it usable as a table.