|
hlcc 2.0.0-beta2+pre1
|
This is a test-utility for receiving ICD-Structs over MAL PubSub. More...
Public Member Functions | |
| def | __init__ (self) |
| def | uplink (self, profile_file, participant, prefix, entity_fqn, uri) |
| Setup factory and import entity class. | |
| def | entity_to_string (self, content) |
| Convert object into json string. | |
| def | subscribe (self, profile_file, participant, prefix, entity_fqn, remote_uri, endafter=10, endifset={}, printall=False) |
Static Public Member Functions | |
| def | main (arguments) |
| Test entry point. | |
This is a test-utility for receiving 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.
| def telif_subscriber.TelifSubscriber.__init__ | ( | self | ) |
| def telif_subscriber.TelifSubscriber.entity_to_string | ( | self, | |
| content | |||
| ) |
Convert object into json string.
|
static |
Test entry point.
| def telif_subscriber.TelifSubscriber.subscribe | ( | self, | |
| profile_file, | |||
| participant, | |||
| prefix, | |||
| entity_fqn, | |||
| remote_uri, | |||
endafter = 10, |
|||
endifset = {}, |
|||
printall = False |
|||
| ) |
| profile_file | Profile filename |
| participant | Participant name in the profile |
| prefix | Prefix for subscriber/reader in the profile |
| entity_fqn | entity classname (fully qualified), e.g. "ModCcsinsif.Ccsinsif.AltAz" |
| remote_uri | publisher address, e.g. "dds.ps:///TELIF_CCS_TRG_OBS_ALTAZ" |
| endafter | max wait time (in secs) |
| endifset | wait for content (as dict), e.g. "{'alt':1.0,'az':2.0}" |
| printall | print all received data |
| def telif_subscriber.TelifSubscriber.uplink | ( | self, | |
| profile_file, | |||
| participant, | |||
| prefix, | |||
| entity_fqn, | |||
| uri | |||
| ) |
Setup factory and import entity class.