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

Public Member Functions

def __init__ (self, str name, str oldb_uri, str standard_uri, str telmon_uri, bool ignore_flag, FacadesManager facades_manager, parent=None, *args, **kwargs)
 Constructor.
 
def change_oldb_model (self, str new_uri)
 Save new datapoint oldb uri with state information and and set it in the taurus widget model.
 
def change_ignore_flag (self, bool new_flag)
 Save new ignore flag value and set it in the taurus widget model.
 
def change_telmon_uri (self, str new_uri)
 If different from the current one, save the new telmon uri and update MonCmds facade.
 
def change_standard_uri (self, str new_uri)
 If different from the current one, save the new standard uri and update StdCmds facade.
 
def send_ignoreflag_cmd (self, bool ignore_flag)
 Slots implementation ##.
 
def handle_app_ignore_data_response (self, str status)
 
def handle_app_ignore_data_error (self, tuple error_info)
 
def init_pressed (self)
 Check connection and forwards an init command to the Facade.
 
def stop_pressed (self)
 Check connection and forwards an stop command to the Facade.
 
def enable_pressed (self)
 Check connection and forwards an enable command to the Facade.
 
def disable_pressed (self)
 Check connection and forwards an disable command to the Facade.
 
def reset_pressed (self)
 Check connection and forwards an reset command to the Facade.
 
def exit_pressed (self)
 Check connection and forwards an exit command to the Facade.
 
def handle_generic_response (self, str status)
 
def handle_generic_error (self, tuple error_info)
 

Public Attributes

 ui
 

Protected Attributes

 _message_sender
 
 _name
 
 _oldb_uri
 
 _standard_uri
 
 _telmon_uri
 
 _ignore_flag
 
 _facades_manager
 
 _moncmds_facade
 
 _stdcmds_facade
 

Constructor & Destructor Documentation

◆ __init__()

def statepanel_item.StatePanelItem.__init__ (   self,
str  name,
str  oldb_uri,
str  standard_uri,
str  telmon_uri,
bool  ignore_flag,
FacadesManager  facades_manager,
  parent = None,
args,
**  kwargs 
)

Constructor.

Parameters
labelString to be displayed in the list
oldb_uriString of the URI where we read the state value
standard_uriURI of the applciation standard command server :facades_manager: FacadesManager reference. It is needed to update back the state of the 'ignore' flag when it is clicked by the user.
parentQObject parent widget instance :return:

Member Function Documentation

◆ change_ignore_flag()

def statepanel_item.StatePanelItem.change_ignore_flag (   self,
bool  new_flag 
)

Save new ignore flag value and set it in the taurus widget model.

Parameters
new_flagIgnore flag value from standard facade commands :return:

◆ change_oldb_model()

def statepanel_item.StatePanelItem.change_oldb_model (   self,
str  new_uri 
)

Save new datapoint oldb uri with state information and and set it in the taurus widget model.

Parameters
new_uriUri from standard facade commands :return:

◆ change_standard_uri()

def statepanel_item.StatePanelItem.change_standard_uri (   self,
str  new_uri 
)

If different from the current one, save the new standard uri and update StdCmds facade.

Parameters
new_uriFacade uri :return:

◆ change_telmon_uri()

def statepanel_item.StatePanelItem.change_telmon_uri (   self,
str  new_uri 
)

If different from the current one, save the new telmon uri and update MonCmds facade.

Parameters
new_uriTelmon commands uri :return:

◆ disable_pressed()

def statepanel_item.StatePanelItem.disable_pressed (   self)

Check connection and forwards an disable command to the Facade.

◆ enable_pressed()

def statepanel_item.StatePanelItem.enable_pressed (   self)

Check connection and forwards an enable command to the Facade.

◆ exit_pressed()

def statepanel_item.StatePanelItem.exit_pressed (   self)

Check connection and forwards an exit command to the Facade.

◆ handle_app_ignore_data_error()

def statepanel_item.StatePanelItem.handle_app_ignore_data_error (   self,
tuple  error_info 
)

◆ handle_app_ignore_data_response()

def statepanel_item.StatePanelItem.handle_app_ignore_data_response (   self,
str  status 
)

◆ handle_generic_error()

def statepanel_item.StatePanelItem.handle_generic_error (   self,
tuple  error_info 
)

◆ handle_generic_response()

def statepanel_item.StatePanelItem.handle_generic_response (   self,
str  status 
)

◆ init_pressed()

def statepanel_item.StatePanelItem.init_pressed (   self)

Check connection and forwards an init command to the Facade.

◆ reset_pressed()

def statepanel_item.StatePanelItem.reset_pressed (   self)

Check connection and forwards an reset command to the Facade.

◆ send_ignoreflag_cmd()

def statepanel_item.StatePanelItem.send_ignoreflag_cmd (   self,
bool  ignore_flag 
)

Slots implementation ##.

Send the telmon command that change the ignore flag

Parameters
ignore_flagCheckBox value after triggered :return:

◆ stop_pressed()

def statepanel_item.StatePanelItem.stop_pressed (   self)

Check connection and forwards an stop command to the Facade.

Member Data Documentation

◆ _facades_manager

statepanel_item.StatePanelItem._facades_manager
protected

◆ _ignore_flag

statepanel_item.StatePanelItem._ignore_flag
protected

◆ _message_sender

statepanel_item.StatePanelItem._message_sender
protected

◆ _moncmds_facade

statepanel_item.StatePanelItem._moncmds_facade
protected

◆ _name

statepanel_item.StatePanelItem._name
protected

◆ _oldb_uri

statepanel_item.StatePanelItem._oldb_uri
protected

◆ _standard_uri

statepanel_item.StatePanelItem._standard_uri
protected

◆ _stdcmds_facade

statepanel_item.StatePanelItem._stdcmds_facade
protected

◆ _telmon_uri

statepanel_item.StatePanelItem._telmon_uri
protected

◆ ui

statepanel_item.StatePanelItem.ui

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