Class: Vertigo::ComponentInstance

Inherits:
AstNode
  • Object
show all
Defined in:
lib/vertigo/ast_vertigo_rkgen.rb

Instance Attribute Summary collapse

Attributes inherited from AstNode

#label, #pos

Instance Method Summary collapse

Methods inherited from AstNode

#accept, #str

Constructor Details

#initialize(name = nil, generic_map = nil, port_map = nil) ⇒ ComponentInstance

Returns a new instance of ComponentInstance.



162
163
164
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 162

def initialize name=nil,generic_map=nil,port_map=nil
  @name,@generic_map,@port_map=name,generic_map,port_map
end

Instance Attribute Details

#generic_mapObject

Returns the value of attribute generic_map.



161
162
163
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 161

def generic_map
  @generic_map
end

#nameObject

Returns the value of attribute name.



161
162
163
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 161

def name
  @name
end

#port_mapObject

Returns the value of attribute port_map.



161
162
163
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 161

def port_map
  @port_map
end