Class: TBConnnectEle

Inherits:
Object
  • Object
show all
Defined in:
lib/tdl/exlib/integral_test/bak/integral_test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type: nil) ⇒ TBConnnectEle

Returns a new instance of TBConnnectEle.



186
187
188
# File 'lib/tdl/exlib/integral_test/bak/integral_test.rb', line 186

def initialize(type:nil)
    @type = type
end

Instance Attribute Details

#baseelm_argvObject

Returns the value of attribute baseelm_argv.



184
185
186
# File 'lib/tdl/exlib/integral_test/bak/integral_test.rb', line 184

def baseelm_argv
  @baseelm_argv
end

#module_nameObject

Returns the value of attribute module_name.



184
185
186
# File 'lib/tdl/exlib/integral_test/bak/integral_test.rb', line 184

def module_name
  @module_name
end

#port_keyObject

Returns the value of attribute port_key.



184
185
186
# File 'lib/tdl/exlib/integral_test/bak/integral_test.rb', line 184

def port_key
  @port_key
end

#port_key_nObject

Returns the value of attribute port_key_n.



185
186
187
# File 'lib/tdl/exlib/integral_test/bak/integral_test.rb', line 185

def port_key_n
  @port_key_n
end

#typeObject

Returns the value of attribute type.



184
185
186
# File 'lib/tdl/exlib/integral_test/bak/integral_test.rb', line 184

def type
  @type
end

Instance Method Details

#connect(target_module, bfm_module) ⇒ Object



194
195
196
197
198
# File 'lib/tdl/exlib/integral_test/bak/integral_test.rb', line 194

def connect(target_module,bfm_module)
    bfm_module[port_key] = inst_conn
    target_module[port_key] = bfm_module[port_key]
    ex_connect(target_module,bfm_module)
end

#ex_connect(target_module, bfm_module) ⇒ Object



200
201
202
203
204
205
# File 'lib/tdl/exlib/integral_test/bak/integral_test.rb', line 200

def ex_connect(target_module,bfm_module)
    if port_key_n
        target_module[port_key_n] = ~bfm_module[port_key]
    end

end

#inst_connObject



190
191
192
# File 'lib/tdl/exlib/integral_test/bak/integral_test.rb', line 190

def inst_conn
    @type.new(baseelm_argv)
end