TReK Python  5.3.3
Telemetry/Command API
CounterDependency Class Reference

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  -> def  -> def ) -> def 
 Class initializer. More...
 
def clone ( -> CounterDependency  -> def  -> def ) -> def 
 Creates a new instance of the object with the same contents.
 
def copy (copy_from: object -> None  -> def  -> def ) -> def 
 Copies the contents of the provided 'copy_from' CounterDependency. More...
 
def load_file (filename: str -> None  -> def  -> def ) -> def 
 Loads the CounterDependency definition from the specified file. More...
 
def save_file (filename: str -> None  -> def  -> def ) -> def 
 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  -> def  -> def ) -> def 
 Configures the counter dependency. More...
 
def get_modulo ( -> int  -> def  -> def ) -> def 
 Returns the modulo value for the counter dependency. More...
 
def get_remainder ( -> int  -> def  -> def ) -> def 
 Returns the remainder value for the counter dependency. More...
 
def get_start_counter ( -> int  -> def  -> def ) -> def 
 Returns the start counter value for the counter dependency. More...
 
def get_dependency_parameter ( -> str  -> def  -> def ) -> def 
 Returns the parameter to use for the counter.
 
def set_start_counter (counter: int=0 -> None  -> def  -> def ) -> def 
 Sets a start counter for the dependency. More...
 
def CounterDependency ( -> None  -> def  -> def ) -> def 
 Class initializer. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ CounterDependency()

(counter_dependency : Optional[CounterDependency]