|
ifw-sup
3.0.0-pre3
|
Class managing the interface with a FCF DevMgr. More...
Public Member Functions | |
| def | __init__ (self, uri, timeout=60000, setup_obj=None) |
| Class constructor. More... | |
| def | cfgreply (self, cmd, flag) |
| Execute cfgreply Command. More... | |
| def | cfgdelay (self, cmd, delay) |
| Execute cfgdelay Command. More... | |
| def | cfgerrmsg (self, cmd, msg) |
| Configure error message. More... | |
| def | setup (self) |
| Execute Setup Command asynchronously. More... | |
| def | get_config (self) |
| Execute Setup Command asynchronously. More... | |
| def | help (self, func=None) |
| Provides a text based help of the Command class functions. More... | |
Class managing the interface with a FCF DevMgr.
| def subsim_async_commands.SubsimAsyncCommands.__init__ | ( | self, | |
| uri, | |||
timeout = 60000, |
|||
setup_obj = None |
|||
| ) |
Class constructor.
| uri | service URI (CII endpoint). timeout (bool, optional): CII communication timeout. setup_obj (object, optional): Setup object instance. |
If a setup object is not provided it will use an internal one. This setup object store all settings for the Setup command. It is not relevant for other commands.
| def subsim_async_commands.SubsimAsyncCommands.cfgdelay | ( | self, | |
| cmd, | |||
| delay | |||
| ) |
Execute cfgdelay Command.
It changes the default delay per command.
| def subsim_async_commands.SubsimAsyncCommands.cfgerrmsg | ( | self, | |
| cmd, | |||
| msg | |||
| ) |
Configure error message.
It changes the default error message per command.
| def subsim_async_commands.SubsimAsyncCommands.cfgreply | ( | self, | |
| cmd, | |||
| flag | |||
| ) |
Execute cfgreply Command.
It changes the default reply of a command.
If the flag is true, the command returns succesfully.
If the flag is false, the command returns with an error.
| def subsim_async_commands.SubsimAsyncCommands.get_config | ( | self | ) |
Execute Setup Command asynchronously.
| def subsim_async_commands.SubsimAsyncCommands.help | ( | self, | |
func = None |
|||
| ) |
Provides a text based help of the Command class functions.
func (str, optional): Name of the function from where to get the help
This method is to be used for the implementation of CLIs.
Functions are methods of the class.
If the parameter <func> is not provided then the help provides a list of
functions. Functions started with '_' are skipped.
| def subsim_async_commands.SubsimAsyncCommands.setup | ( | self | ) |
Execute Setup Command asynchronously.