CircuitBreakerSafetyLogic#

class wattson.hosts.rtu.logic.circuit_breaker_safety_logic.CircuitBreakerSafetyLogic(rtu: RTU, **kwargs)#

Bases: RTULogic

Methods

__init__

handle_get_value

Handles the retrieval of the data point value instead of the default handler.

handles_get_value

Returns whether this logic scripts wants to handle the get operation for the given data point.

on_start

on_stop

__init__(rtu: RTU, **kwargs)#
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

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