TReK Python
5.3.2
Telemetry/Command API
|
This class determine a parameter's dependency based on a counter. More...
Inherits Dependency.
Public Member Functions | |
Initialize / Finalize | |
Functions handling class initialization and finalization. | |
def | CounterDependency ( Optional[CounterDependency] counter_dependency=None, Optional[c_void_p] native_ptr=None, is_clone: bool=False) -> def |
Class initializer. More... | |
def | clone () -> CounterDependency |
Creates a new instance of the object with the same contents. | |
def | copy (copy_from: object) -> None |
Copies the contents of the provided 'copy_from' CounterDependency. More... | |
def | load_file (filename: str) -> None |
Loads the CounterDependency definition from the specified file. More... | |
def | save_file (filename: str) -> None |
Saves the CounterDependency definition to the specified file. More... | |
CounterDependency Settings | |
Functions handling CounterDependency Settings. | |
def | configure (name: str, mod_value: int, remainder_value: int) -> None |
Configures the counter dependency. More... | |
def | get_modulo () -> int |
Returns the modulo value for the counter dependency. More... | |
def | get_remainder () -> int |
Returns the remainder value for the counter dependency. More... | |
def | get_start_counter () -> int |
Returns the start counter value for the counter dependency. More... | |
def | get_dependency_parameter () -> str |
Returns the parameter to use for the counter. | |
def | set_start_counter (counter: int=0) -> None |
Sets a start counter for the dependency. More... | |
def | CounterDependency () -> None |
Class initializer. More... | |
This class determine a parameter's dependency based on a counter.
For parameter X with a dependency on Parameter Y, the remainder from the modulo operator on the counter value (Y) determines if the parameter should be included. value(Y) % mod_value == remainder
CounterDependency | ( | counter_dependency | : Optional[CounterDependency] |