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()

Test routine

Classes

MachineInfoMockup(name)

Simulates the behaviour of an accelerator information

class mxcubecore.HardwareObjects.mockup.MachineInfoMockup.MachineInfoMockup(name)[source]#

Bases: AbstractMachineInfo

Simulates the behaviour of an accelerator information

get_current() float[source]#

Override method.

Return type:

float

get_lifetime() float[source]#

Override method.

Return type:

float

get_message() str[source]#

Override method.

Return type:

str

get_topup_remaining() float[source]#

Override method.

Return type:

float

init()[source]#

Initialise some parameters and update routine.

mxcubecore.HardwareObjects.mockup.MachineInfoMockup.test()[source]#

Test routine