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

Public Member Functions

def __init__ (self, str uri)
 Initializator for a new SimCmdsFacade.
 
def __del__ (self)
 
def move_to_named_pos (self, str position_name, result_slot=None, error_slot=None)
 SimCmds Slots ##.
 
def move_to_alt_az_pos (self, float alt_rad, float az_rad, result_slot=None, error_slot=None)
 This method executes the MoveToAltAzPos command on the server.
 
def update_rous_timer (self, int new_time, result_slot=None, error_slot=None)
 This method executes the UpdateRousTimer command on the server.
 
def thread_complete (self)
 Helper Methods ##.
 

Constructor & Destructor Documentation

◆ __init__()

def simcmds_facade.SimCmdsFacade.__init__ (   self,
str  uri 
)

Initializator for a new SimCmdsFacade.

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 simcmds_facade.SimCmdsFacade.__del__ (   self)

Member Function Documentation

◆ move_to_alt_az_pos()

def simcmds_facade.SimCmdsFacade.move_to_alt_az_pos (   self,
float  alt_rad,
float  az_rad,
  result_slot = None,
  error_slot = None 
)

This method executes the MoveToAltAzPos 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

alt_rad float Altitude value in radians az_rad float Azimute value in radians 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

◆ move_to_named_pos()

def simcmds_facade.SimCmdsFacade.move_to_named_pos (   self,
str  position_name,
  result_slot = None,
  error_slot = None 
)

SimCmds Slots ##.

This method executes the MoveToNamePosition 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

position_name string Name that correspond to a configured telescope position 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 simcmds_facade.SimCmdsFacade.thread_complete (   self)

Helper Methods ##.

Print a thread message 'COMPLETE!'

◆ update_rous_timer()

def simcmds_facade.SimCmdsFacade.update_rous_timer (   self,
int  new_time,
  result_slot = None,
  error_slot = None 
)

This method executes the UpdateRousTimer 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

new_time integer Time to update ROUS 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


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