ReqProject
#
- class ansys.scade.pyalmgw.documents.ReqProject(path: pathlib.Path | None = None, **kwargs)#
Bases:
Element
Provides an implementation of a Requirements File.
Overview#
Import detail#
from ansys.scade.pyalmgw.documents import ReqProject
Property detail#
Attribute detail#
- ReqProject.documents: List[ReqDocument] = []#
- ReqProject.path = None#
- ReqProject.traceability_links: List[TraceabilityLink] = []#
- ReqProject.xml_tag = 'ReqProject'#
Method detail#
- ReqProject.bind() List[TraceabilityLink] #
Bind the traceability links.
- Returns:
List
[TraceabilityLink
]Traceability links that can’t be resolved.
- ReqProject.parse(root: Any)#
Build the project structure from a Requirements Document XML file.
- Parameters:
- root
Any
Root element of the XML DOM.
- root
- ReqProject.read()#
Build the project structure from a Requirements Document XML file.
- ReqProject.write(path: pathlib.Path | None = None)#
Serialize the project to a Requirements Document XML file.
- Parameters:
- path
Path
Path of the output file. Whene none, the file is saved to current path of the project.
- path