ifw-sup  3.0.0-pre3
Public Member Functions | List of all members
clib.syssup_commands.SysSupCommands Class Reference

Class managing the interface with System Supervisor. More...

Inheritance diagram for clib.syssup_commands.SysSupCommands:

Public Member Functions

def __init__ (self, uri, timeout=60000)
 
def setaccess (self, subsystem, flag)
 Open a shutter device. More...
 
def get_config (self)
 Execute GetConfig Command synchronously. More...
 
def set_config (self, config)
 Execute GetConfig Command synchronously. More...
 
def set_obmode (self, mode)
 Set the observation mode. More...
 
def set_opmode (self, mode)
 Set the operational mode. More...
 
def subsystem_status (self, subsystem)
 Execute get_subsystem_status Command. More...
 
def subsystem_init (self, subsystem)
 Execute subsystem_init Command. More...
 
def subsystem_enable (self, subsystem)
 Execute subsystem_enable Command. More...
 
def subsystem_disable (self, subsystem)
 Execute subsystem_disable Command. More...
 
def subsystem_reset (self, subsystem)
 Execute subsystem_reset Command. More...
 
def subsystem_names (self)
 Execute get_subsystem_names Command. More...
 
def is_operational (self)
 Returns True if the Supervisor is operational. More...
 

Detailed Description

Class managing the interface with System Supervisor.

This class uses a synchronous MAL client because async has some problems. Timeout does not work properly. It is not really asynchronous.

Constructor & Destructor Documentation

◆ __init__()

def clib.syssup_commands.SysSupCommands.__init__ (   self,
  uri,
  timeout = 60000 
)

Member Function Documentation

◆ get_config()

def clib.syssup_commands.SysSupCommands.get_config (   self)

Execute GetConfig Command synchronously.

◆ is_operational()

def clib.syssup_commands.SysSupCommands.is_operational (   self)

Returns True if the Supervisor is operational.

◆ set_config()

def clib.syssup_commands.SysSupCommands.set_config (   self,
  config 
)

Execute GetConfig Command synchronously.

◆ set_obmode()

def clib.syssup_commands.SysSupCommands.set_obmode (   self,
  mode 
)

Set the observation mode.

Parameters
modeObservation mode.
   Mode shall be a valid observation mode.

◆ set_opmode()

def clib.syssup_commands.SysSupCommands.set_opmode (   self,
  mode 
)

Set the operational mode.

Parameters
modeOperational mode.
   Mode shall be a valid operational mode.

◆ setaccess()

def clib.syssup_commands.SysSupCommands.setaccess (   self,
  subsystem,
  flag 
)

Open a shutter device.

◆ subsystem_disable()

def clib.syssup_commands.SysSupCommands.subsystem_disable (   self,
  subsystem 
)

Execute subsystem_disable Command.

◆ subsystem_enable()

def clib.syssup_commands.SysSupCommands.subsystem_enable (   self,
  subsystem 
)

Execute subsystem_enable Command.

◆ subsystem_init()

def clib.syssup_commands.SysSupCommands.subsystem_init (   self,
  subsystem 
)

Execute subsystem_init Command.

◆ subsystem_names()

def clib.syssup_commands.SysSupCommands.subsystem_names (   self)

Execute get_subsystem_names Command.

◆ subsystem_reset()

def clib.syssup_commands.SysSupCommands.subsystem_reset (   self,
  subsystem 
)

Execute subsystem_reset Command.

◆ subsystem_status()

def clib.syssup_commands.SysSupCommands.subsystem_status (   self,
  subsystem 
)

Execute get_subsystem_status Command.


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