
Description: - Added a missing import for SSHConnection. - Added data types to function arguments and return values. - Removed Returns section in docstring when function return type is None Change-Id: Id96217573f629d40a52459a3b45d26ae0649aa03 Signed-off-by: aabhinav <ayyapasetti.abhinav@windriver.com>
102 lines
2.5 KiB
Python
102 lines
2.5 KiB
Python
class ClockDescriptionObject:
|
|
"""
|
|
Object to hold the values of Clock description Object
|
|
"""
|
|
|
|
def __init__(self):
|
|
self.product_description: str = ""
|
|
self.revision_data: str = ""
|
|
self.manufacturer_identity: str = ""
|
|
self.user_description: str = ""
|
|
self.time_source: str = ""
|
|
|
|
def get_product_description(self) -> str:
|
|
"""
|
|
Getter for product_description
|
|
|
|
Returns:
|
|
str: the product_description value
|
|
"""
|
|
return self.product_description
|
|
|
|
def set_product_description(self, product_description: str) -> None:
|
|
"""
|
|
Setter for product_description
|
|
|
|
Args:
|
|
product_description (str): the product_description value
|
|
"""
|
|
self.product_description = product_description
|
|
|
|
def get_revision_data(self) -> str:
|
|
"""
|
|
Getter for revision_data
|
|
|
|
Returns:
|
|
str: the revision_data value
|
|
"""
|
|
return self.revision_data
|
|
|
|
def set_revision_data(self, revision_data: str) -> None:
|
|
"""
|
|
Setter for revision_data
|
|
|
|
Args:
|
|
revision_data (str): revision_data value
|
|
"""
|
|
self.revision_data = revision_data
|
|
|
|
def get_manufacturer_identity(self) -> str:
|
|
"""
|
|
Getter for manufacturer_identity
|
|
|
|
Returns:
|
|
str: the manufacturer_identity value
|
|
"""
|
|
return self.manufacturer_identity
|
|
|
|
def set_manufacturer_identity(self, manufacturer_identity: str) -> None:
|
|
"""
|
|
Setter for manufacturer_identity
|
|
|
|
Args:
|
|
manufacturer_identity (str): manufacturer_identity value
|
|
"""
|
|
self.manufacturer_identity = manufacturer_identity
|
|
|
|
def get_user_description(self) -> str:
|
|
"""
|
|
Getter for user_description
|
|
|
|
Returns:
|
|
str: the user_description value
|
|
"""
|
|
return self.user_description
|
|
|
|
def set_user_description(self, user_description: str) -> None:
|
|
"""
|
|
Setter for user_description
|
|
|
|
Args:
|
|
user_description (str): the user_description value
|
|
"""
|
|
self.user_description = user_description
|
|
|
|
def get_time_source(self) -> str:
|
|
"""
|
|
Getter for time_source
|
|
|
|
Returns:
|
|
str: the time_source value
|
|
"""
|
|
return self.time_source
|
|
|
|
def set_time_source(self, time_source: str) -> None:
|
|
"""
|
|
Setter for time_source
|
|
|
|
Args:
|
|
time_source (str): the time_source value
|
|
"""
|
|
self.time_source = time_source
|