mxcubecore.HardwareObjects.mockup.MachineInfoMockup#
[Name] MachineInfoMockup
[Description] MachineInfo hardware objects are used to obtain information from the accelerator control system.
This is a mockup hardware object, it simulates the behaviour of an accelerator information by :
produces a current value that varies with time
simulates a control room message that changes with some condition ()
simulates
[Emitted signals] valueChanged
pars: values (dict)
- mandatory fields:
values[‘current’] type: str; desc: synchrotron radiation current in milli-amps values[‘message’] type: str; desc: message from control room values[‘attention’] type: boolean; desc: False (no attention required)
True (attention raised to the user)
- optional fields:
any number of optional fields can be sent over with this signal by adding them in the values dictionary
- for example:
values[‘lifetime’] values[‘topup_remaining’]
Functions
|
Test routine |
Classes
|
Simulates the behaviour of an accelerator information |
- class mxcubecore.HardwareObjects.mockup.MachineInfoMockup.MachineInfoMockup(name)[source]#
Bases:
AbstractMachineInfo
Simulates the behaviour of an accelerator information