hlcc 2.0.0-beta2+pre1
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
telif_publisher.TelifPublisher Class Reference

This is a test-utility for publishing ICD-Structs over MAL PubSub. More...

Public Member Functions

def __init__ (self)
 
def uplink (self, entity_fqn, uri)
 Setup factory and import entity class.
 
def entity_to_string (self, content)
 Convert object into json string.
 
def publish (self, entity_fqn, remote_uri, set=[], interval=1, iterations=1, printall=False)
 Publish an entity on a channel.
 

Static Public Member Functions

def main (arguments)
 Test entry point.
 

Detailed Description

This is a test-utility for publishing ICD-Structs over MAL PubSub.

Despite its name, it is not restrained to the telif interface, and could also be moved to the hlcc-utils package.

Constructor & Destructor Documentation

◆ __init__()

def telif_publisher.TelifPublisher.__init__ (   self)

Member Function Documentation

◆ entity_to_string()

def telif_publisher.TelifPublisher.entity_to_string (   self,
  content 
)

Convert object into json string.

◆ main()

def telif_publisher.TelifPublisher.main (   arguments)
static

Test entry point.

◆ publish()

def telif_publisher.TelifPublisher.publish (   self,
  entity_fqn,
  remote_uri,
  set = [],
  interval = 1,
  iterations = 1,
  printall = False 
)

Publish an entity on a channel.

Parameters
entity_fqnentity classname (fully qualified), e.g. "ModCcsinsif.Ccsinsif.AltAz"
remote_uripublisher address, e.g. "dds.ps:///TELIF_CCS_TRG_OBS_ALTAZ"
setcontent to publish (as list of dicts), e.g. [{'az':1},{'az':2}]
intervalwait time between publications (in seconds)
iterationsnumber of iterations (includes first one)
printallprint all sent data

◆ uplink()

def telif_publisher.TelifPublisher.uplink (   self,
  entity_fqn,
  uri 
)

Setup factory and import entity class.


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