Adding parser and keyword for cgu component. Change-Id: Id4647e9dd7a3380d7d30dd96bdda1d31d5cf9ccd
23 lines
644 B
Python
23 lines
644 B
Python
from keywords.ptp.cat.cat_ptp_cgu_parser import CatPtpCguParser
|
|
from keywords.ptp.cat.objects.ptp_cgu_component_object import PtpCguComponentObject
|
|
|
|
|
|
class PtpCguComponentOutput:
|
|
"""
|
|
Class for PTP CGU Component Output.
|
|
"""
|
|
|
|
def __init__(self, cat_ptp_cgu_output: str):
|
|
ptp_cgu_parser = CatPtpCguParser(cat_ptp_cgu_output)
|
|
self.cgu_component = ptp_cgu_parser.parse_ptp_cgu_objects()
|
|
|
|
def get_cgu_component(self) -> PtpCguComponentObject:
|
|
"""
|
|
Gets the cgu component.
|
|
|
|
Returns:
|
|
PtpCguComponentObject - the PtpCguComponentObject
|
|
|
|
"""
|
|
return self.cgu_component
|