hlcc 2.0.0-beta2+pre1
|
Public Member Functions | |
def | __init__ (self, str uri) |
Initializator for a new MetadaqCmdsFacade . | |
def | __del__ (self) |
def | start_data_acquisition (self, str id_value, result_slot=None, error_slot=None) |
MetadataAcquisitionCommands Slots ##. | |
def | stop_data_acquisition (self, str id_value, result_slot=None, error_slot=None) |
This method executes the GetModulesLoaded command on the server. | |
def | abort_data_acquisition (self, str id_value, result_slot=None, error_slot=None) |
This method executes the GetModulesLoaded command on the server. | |
def | status_data_acquisition (self, str id_value, result_slot=None, error_slot=None) |
This method executes the GetModulesLoaded command on the server. | |
def | print_output (self, s) |
Helper Methods ##. | |
def | thread_complete (self) |
Print a thread message 'COMPLETE!'. | |
def metadaqcmds_facade.MetadaqCmdsFacade.__init__ | ( | self, | |
str | uri | ||
) |
Initializator for a new MetadaqCmdsFacade
.
It inherits from MalAdapter, which provides all the connection logic ready to be used.
We mainly interact with MalAdapter through get_interface()
get_mal()
and get_factory()
. We do not keep references to them.
This class exposes Slots that use the elt.cut.task.Task class to execute long-running operations in a separate thread. Each Slot is a method in the hellociiif interface.
uri | URI for the MAL reply request endpoint |
def metadaqcmds_facade.MetadaqCmdsFacade.__del__ | ( | self | ) |
def metadaqcmds_facade.MetadaqCmdsFacade.abort_data_acquisition | ( | self, | |
str | id_value, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the GetModulesLoaded command on the server.
It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.
id_value identifier in string type result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.
None
def metadaqcmds_facade.MetadaqCmdsFacade.print_output | ( | self, | |
s | |||
) |
Helper Methods ##.
Log a debug type message which also is a console print.
s | string to be logged/printed |
def metadaqcmds_facade.MetadaqCmdsFacade.start_data_acquisition | ( | self, | |
str | id_value, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
MetadataAcquisitionCommands Slots ##.
This method executes the reload command on the server. It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.
id_value identifier in string type result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.
None
def metadaqcmds_facade.MetadaqCmdsFacade.status_data_acquisition | ( | self, | |
str | id_value, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the GetModulesLoaded command on the server.
It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.
id_value identifier in string type result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.
None
def metadaqcmds_facade.MetadaqCmdsFacade.stop_data_acquisition | ( | self, | |
str | id_value, | ||
result_slot = None , |
|||
error_slot = None |
|||
) |
This method executes the GetModulesLoaded command on the server.
It uses the Asynchronous interface. It will wait or the future object to has its result, and then it will call the slot function with the result as argument.
id_value identifier in string type result_slot QtCore.QSlot Slot method that will be triggered when the result is available. error_slot QtCore.QSlot Slot method that will be triggered when an error is detected.
None
def metadaqcmds_facade.MetadaqCmdsFacade.thread_complete | ( | self | ) |
Print a thread message 'COMPLETE!'.