SimplesimDriverDataBsh

Python pydantic class corresponding to json type `simplesim.driver.data.bsh`.

class gwatn.types.SimplesimDriverDataBsh(*, FromGNodeAlias, PowerWatts, StoreKwh, MaxStoreKwh, TypeName='simplesim.driver.data.bsh', Version='000')
Parameters:
  • FromGNodeAlias (str) –

  • PowerWatts (int) –

  • StoreKwh (int) –

  • MaxStoreKwh (int) –

  • TypeName (Literal['simplesim.driver.data.bsh']) –

  • Version (str) –

FromGNodeAlias:
  • Description:

  • Format: LeftRightDot

PowerWatts:
  • Description:

StoreKwh:
  • Description:

MaxStoreKwh:
  • Description:

class gwatn.types.simplesim_driver_data_bsh.check_is_left_right_dot(v)

LeftRightDot format: Lowercase alphanumeric words separated by periods, most significant word (on the left) starting with an alphabet character.

Raises:

ValueError – if not LeftRightDot format

Parameters:

v (str) –

class gwatn.types.SimplesimDriverDataBsh_Maker(from_g_node_alias, power_watts, store_kwh, max_store_kwh)
Parameters:
  • from_g_node_alias (str) –

  • power_watts (int) –

  • store_kwh (int) –

  • max_store_kwh (int) –

classmethod tuple_to_type(tuple)

Given a Python class object, returns the serialized JSON type object

Parameters:

tuple (SimplesimDriverDataBsh) –

Return type:

str

classmethod type_to_tuple(t)

Given a serialized JSON type object, returns the Python class object

Parameters:

t (str) –

Return type:

SimplesimDriverDataBsh