PowerRequirements

class PowerRequirements

Bases: BaseModel

Power requirements for the system.

voltage

Required voltage in volts.

Type:

float

current

Required current in amperes.

Type:

float

frequency

Required frequency in Hz, if applicable.

Type:

Optional[float]

power_type

Type of power (e.g., “AC”, “DC”).

Type:

str

peak_power

Peak power consumption in watts.

Type:

float

average_power

Average power consumption in watts.

Type:

float

Attributes Summary

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Attributes Documentation

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Attributes:

__pydantic_setattr_handlers__

__setattr__ handlers.

__pydantic_setattr_handlers__: ClassVar[Dict[str, Callable[[BaseModel, str, Any], None]]] = {}

__setattr__ handlers. Memoizing the handlers leads to a dramatic performance improvement in __setattr__