revrt.models.routing.DriverConfig#

class DriverConfig(*, default: DriverOptionRules = <factory>, zones: list[DriverZoneConfig] = <factory>)[source]#

Bases: BaseModel

Config for route-option driver rules

Drivers adjust the relative desirability of routing options. Values may be numeric multipliers or the special keyword "excluded" to make an option unavailable.

The rest of this docstring is inserted by Pydantic and can be ignored.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Methods

Attributes

default

Default per-option multipliers or exclusions applied everywhere

zones

Specific zones that override the default rules

default: DriverOptionRules#

Default per-option multipliers or exclusions applied everywhere

Keys are names of the routing options and values are either numeric friction multipliers to apply while routing by default in that option or the keyword "excluded", which means the option is not allowed at all by default.

zones: list[DriverZoneConfig]#

Specific zones that override the default rules