hlcc 2.0.0-beta2+pre1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
metadaqcmds_facade.MetadaqCmdsFacade Class Reference
Inheritance diagram for metadaqcmds_facade.MetadaqCmdsFacade:

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!'.
 

Constructor & Destructor Documentation

◆ __init__()

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.

Parameters
uriURI for the MAL reply request endpoint

◆ __del__()

def metadaqcmds_facade.MetadaqCmdsFacade.__del__ (   self)

Member Function Documentation

◆ abort_data_acquisition()

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.

Parameters

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.

Return

None

◆ print_output()

def metadaqcmds_facade.MetadaqCmdsFacade.print_output (   self,
  s 
)

Helper Methods ##.

Log a debug type message which also is a console print.

Parameters
sstring to be logged/printed

◆ start_data_acquisition()

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.

Parameters

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.

Return

None

◆ status_data_acquisition()

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.

Parameters

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.

Return

None

◆ stop_data_acquisition()

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.

Parameters

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.

Return

None

◆ thread_complete()

def metadaqcmds_facade.MetadaqCmdsFacade.thread_complete (   self)

Print a thread message 'COMPLETE!'.


The documentation for this class was generated from the following file: