Class: TBConnnectEle
- Inherits:
-
Object
- Object
- TBConnnectEle
- Defined in:
- lib/tdl/exlib/integral_test/bak/integral_test.rb
Instance Attribute Summary collapse
-
#baseelm_argv ⇒ Object
Returns the value of attribute baseelm_argv.
-
#module_name ⇒ Object
Returns the value of attribute module_name.
-
#port_key ⇒ Object
Returns the value of attribute port_key.
-
#port_key_n ⇒ Object
Returns the value of attribute port_key_n.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #connect(target_module, bfm_module) ⇒ Object
- #ex_connect(target_module, bfm_module) ⇒ Object
-
#initialize(type: nil) ⇒ TBConnnectEle
constructor
A new instance of TBConnnectEle.
- #inst_conn ⇒ Object
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_argv ⇒ Object
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_name ⇒ Object
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_key ⇒ Object
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_n ⇒ Object
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 |
#type ⇒ Object
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_conn ⇒ Object
190 191 192 |
# File 'lib/tdl/exlib/integral_test/bak/integral_test.rb', line 190 def inst_conn @type.new(baseelm_argv) end |