ska-tmc-simulators package
TMC uses helper devices instead of real devices to test component-level functionality and also functionality of the overall integrated TMC in the TMC integration repository. These devices are used by multiple TMC repositories, so they are kept in a common repository to have functionality readily available across TMC repositories.
Devices and their Functionality
This page contains all the helper devices used by TMC to mock the behavior of subsystems, leaf nodes, or subarray devices. Each helper device exposes required APIs similar to a real device.
Functionality
The following functionalities are provided by the helper devices:
SetDirectObsState: Used to set the device obsState directly.
SetDirectState: Used to set the device state directly.
commandCallInfo: Used to get information about the arguments used to call the command.
SetDelay: Used to produce a delay in the execution of commands to mimic real scenarios.
resetDelay: Used to reset the delay to the default value.
Fault Injection: To make devices faulty to check error handling in Tango devices.
AddTransitions: This command sets the duration for an observation state such that when the respective command for the observation state is triggered, it changes the observation state after the provided duration.
Device List
- Helper_Base_Device
- Helper_CSP_Master_Device
- Helper_CSP_Master_Leaf_Node
- Helper_CSP_Subarray_Device
- Helper_CSP_Subarray_Leaf_Device
- Helper_Dish_Device
- Helper_Dish_LN_Device
- Helper_MCCS_Controller_Device
- Helper_MCCS_Master_Leaf_Node_Device
- Helper_MCCS_Subarray_Device
- Helper_MCCS_Subarray_Leaf_Device
- Helper_SDP_Master_Leaf_Node
- Helper_SDP_Queue_Connector_Device
- Helper_SDP_Subarray_Leaf_Device
- Helper_SDP_Subarray
- Helper_Subarray_Device
- Helper_Subarray_Leaf_Device
- CNHelperSubArrayDevice