mxcubeweb.core.adapter.beamline_action_adapter#
Classes
|
|
|
|
|
|
|
|
|
- class mxcubeweb.core.adapter.beamline_action_adapter.Action(*, name: str, username: str, state: int, arguments: list[mxcubeweb.core.adapter.beamline_action_adapter.JSONSchemaArgument | mxcubeweb.core.adapter.beamline_action_adapter.Argument], argument_type: str, messages: list[str], type: str, data: str | dict | None)#
Bases:
BaseModel
- class mxcubeweb.core.adapter.beamline_action_adapter.ActionsList(*, actions_list: list[mxcubeweb.core.adapter.beamline_action_adapter.Action])#
Bases:
BaseModel- Parameters:
actions_list (list[mxcubeweb.core.adapter.beamline_action_adapter.Action]) –
- class mxcubeweb.core.adapter.beamline_action_adapter.Argument(*, name: str, type: str, items: list[str] | None = None)#
Bases:
BaseModel
- class mxcubeweb.core.adapter.beamline_action_adapter.BeamlineActionAdapter(ho: HardwareObject, role: str, app, resource_handler_config: ResourceHandlerConfigModel = ResourceHandlerConfigModel(url_prefix='', name=None, exports=[], commands=['stop', 'run_action'], attributes=['data', 'get_all_actions']))#
Bases:
AdapterBase- Parameters:
ho (HardwareObject) –
role (str) –
resource_handler_config (ResourceHandlerConfigModel) –
- msg()#
Return a message describing the current state.
Should be used to communicate details of the state to the user.
- Returns:
The message string.
- Return type:
(str)
- run_action(value: BeamlineActionInputModel)#
Start beamline action.
- Parameters:
value (BeamlineActionInputModel) –
- stop()#
Stop the execution.