Class: IPXACT::Platform
Overview
Platform is the root class for a parsed IPXACT platform specification. It may be treated as a Component with regard to its attributes and methods, with the single difference that the Component#subcomponents and Component#subcomponents= methods have been aliased to #components and #components= respectively.
Instance Attribute Summary
Attributes inherited from Component
#cpus, #hierconnections, #instance_name, #interconnections, #ipxact_id, #ports, #subcomponents
Instance Method Summary collapse
-
#initialize(root_component) ⇒ Platform
constructor
Creates a new IPXACT::Platform instance, by merging the attributes an existing Component.
Methods inherited from Component
#has_cpu?, #port, #rec_get_subcomponent, #rec_get_subcomponents, #rec_prepare_pathfinder_connections, #reformat_connector, #register_map, #resolve_base_address, #resolve_data_path
Constructor Details
#initialize(root_component) ⇒ Platform
Creates a new IPXACT::Platform instance, by merging the attributes an existing Component.
37 38 39 40 41 42 43 |
# File 'lib/ipxact/platform.rb', line 37 def initialize(root_component) @ipxact_id = root_component.ipxact_id @subcomponents = root_component.subcomponents @ports = root_component.ports @interconnections = root_component.interconnections @cpus = root_component.cpus end |