RTULogic#
- class wattson.hosts.rtu.rtu_logic.RTULogic(rtu: RTU, **kwargs)#
Bases:
ABC
Methods
configure
Handles the retrieval of the data point value instead of the default handler.
Handles the setting of the data point value instead of the default handler.
Returns whether this logic scripts wants to handle the get operation for the given data point.
Returns whether this logic scripts wants to handle the set operation for the given data point and value.
on_start
on_stop
- handle_get_value(identifier) Any #
Handles the retrieval of the data point value instead of the default handler.
- Parameters:
identifier – The data point’s identifier
- Returns:
The value of the data point
- Return type:
Any
- handle_set_value(identifier, value) bool #
Handles the setting of the data point value instead of the default handler.
- Parameters:
identifier – The data point’s identifier
value – The value to set
- Returns:
Whether the value has been set successfully
- Return type:
bool
- handles_get_value(identifier) bool #
Returns whether this logic scripts wants to handle the get operation for the given data point. If true, handle_get_value is called by the managing RTU afterward.
- Parameters:
identifier – The data point’s identifier
- Returns:
Whether this logic wants to handle the set operation
- Return type:
bool
- handles_set_value(identifier, value) bool #
Returns whether this logic scripts wants to handle the set operation for the given data point and value. If true, handle_set_value is called by the managing RTU afterward.
- Parameters:
identifier – The data point’s identifier
value – The value to set
- Returns:
Whether this logic wants to handle the set operation
- Return type:
bool