AtnParamsReport

Python pydantic class corresponding to json type `atn.params.report`.

class gwatn.types.AtnParamsReport(*, GNodeAlias, GNodeInstanceId, AtnParamsTypeName, TimeUnixS, IrlTimeUnixS=None, Params, TypeName='atn.params.report', Version='000')

AtomicTNode reporting its AtnParams.

Parameters like the size of the thermal store.

Parameters:
  • GNodeAlias (str) –

  • GNodeInstanceId (str) –

  • AtnParamsTypeName (str) –

  • TimeUnixS (int) –

  • IrlTimeUnixS (int | None) –

  • Params (AtnParams) –

  • TypeName (Literal['atn.params.report']) –

  • Version (str) –

GNodeAlias:
  • Description:

  • Format: LeftRightDot

GNodeInstanceId:
  • Description:

  • Format: UuidCanonicalTextual

AtnParamsTypeName:
  • Description:

  • Format: LeftRightDot

TimeUnixS:
  • Description:

  • Format: ReasonableUnixTimeS

IrlTimeUnixS:
  • Description:

  • Format: ReasonableUnixTimeS

Params:
  • Description:

class gwatn.types.atn_params_report.check_is_reasonable_unix_time_s(v)

ReasonableUnixTimeS format: time in unix seconds between Jan 1 2000 and Jan 1 3000

Raises:

ValueError – if not ReasonableUnixTimeS format

Parameters:

v (int) –

class gwatn.types.atn_params_report.check_is_uuid_canonical_textual(v)

UuidCanonicalTextual format: A string of hex words separated by hyphens of length 8-4-4-4-12.

Raises:

ValueError – if not UuidCanonicalTextual format

Parameters:

v (str) –

class gwatn.types.atn_params_report.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.AtnParamsReport_Maker(g_node_alias, g_node_instance_id, atn_params_type_name, time_unix_s, irl_time_unix_s, params)
Parameters:
  • g_node_alias (str) –

  • g_node_instance_id (str) –

  • atn_params_type_name (str) –

  • time_unix_s (int) –

  • irl_time_unix_s (int | None) –

  • params (AtnParams) –

classmethod tuple_to_type(tuple)

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

Parameters:

tuple (AtnParamsReport) –

Return type:

str

classmethod type_to_tuple(t)

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

Parameters:

t (str) –

Return type:

AtnParamsReport