ControllerCell#

class lsst.ts.m2com.ControllerCell(log: Logger | None = None, is_csc: bool = True, host: str | None = None, port_command: int | None = None, port_telemetry: int | None = None, timeout_connection: float = 10.0)#

Bases: Controller

Cell controller class.

Parameters#

loglogging.Logger or None, optional

A logger. If None, a logger will be instantiated. (the default is None)

is_cscbool, optional

Is called by the commandable SAL component (CSC) or not. (the default is True)

hoststr or None, optional

Host address. (the default is None)

port_commandint or None, optional

Command port to connect. (the default is None)

port_telemetryint or None, optional

Telemetry port to connect. (the default is None)

timeout_connectionfloat, optional

Connection timeout in second. (the default is 10.0)

Attributes#

hoststr or None

Host address.

port_commandint or None

Command port to connect.

port_telemetryint or None

Telemetry port to connect.

timeout_connectionfloat

Connection timeout in second.

mock_serverMockServer or None

Mock server to support the simulation.

Attributes Summary

Methods Summary

close_controller_and_mock_server()

Close the controller and mock server.

connect_server()

Connect the TCP/IP server.

run_mock_server(config_dir, lut_path)

Run the mock server to support the simulation mode.

Attributes Documentation

SLEEP_TIME_CLOSE_MOCK_SERVER = 10#
TELEMETRY_WAIT_TIMEOUT = 900#

Methods Documentation

async close_controller_and_mock_server() None#

Close the controller and mock server.

async connect_server() None#

Connect the TCP/IP server.

Raises#

RuntimeError

If timeout in connection.

async run_mock_server(config_dir: Path, lut_path: str) None#

Run the mock server to support the simulation mode.

Parameters#

config_dirpathlib.PosixPath

Configuration directory.

lut_pathstr

Look-up table (LUT) path.