Module: IPXACT::Parser::PlatformData
- Defined in:
- lib/ipxact/parser/platform_data_parser.rb
Overview
Module for parsing IPXACT XML data and creating a platform object. Only this parser module should be used for working with IPXACT data.
Class Method Summary collapse
-
.parse_platform(platform_id, component_docs, design_docs, constraints = []) ⇒ Platform
Parses the
component_docs
anddesign_docs
for creating a new IPXACT::Platform instance.
Class Method Details
.parse_platform(platform_id, component_docs, design_docs, constraints = []) ⇒ Platform
Parses the component_docs
and design_docs
for creating a new IPXACT::Platform instance.
57 58 59 60 61 62 |
# File 'lib/ipxact/parser/platform_data_parser.rb', line 57 def self.parse_platform(platform_id, component_docs, design_docs, constraints=[]) base_component = IPXACT::Parser::ComponentData.parse_component( platform_id, "", {}, component_docs, design_docs, constraints) IPXACT::Platform.new(base_component) end |