SimplesimDriverData

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

class gwatn.types.SimplesimDriverData(*, FromGNodeAlias, TypeName='simplesim.driver.data', Version='000', **extra_data)

Generic driver report for a simple Scada Simulation

Parameters:
  • FromGNodeAlias (str) –

  • TypeName (str) –

  • Version (str) –

  • extra_data (Any) –

FromGNodeAlias:
  • Description:

  • Format: LeftRightDot

class gwatn.types.simplesim_driver_data.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.SimplesimDriverData_Maker(from_g_node_alias)
Parameters:

from_g_node_alias (str) –

classmethod tuple_to_type(tuple)

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

Parameters:

tuple (SimplesimDriverData) –

Return type:

str

classmethod type_to_tuple(t)

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

Parameters:

t (str) –

Return type:

SimplesimDriverData