289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
|
# File 'lib/babeltrace2/plugin/plugin-dev.rb', line 289
def initialize
consume_method = get_method(:consume, 1)
raise "'consum' method must be defined" unless consume_method
finalize_method = get_method(:finalize, 1)
get_supported_mip_versions_method = get_method(:get_supported_mip_versions, 5)
initialize_method = get_method(:init, 4)
query_method = get_method(:query, 5)
graph_is_configured_method = get_method(:graph_is_configured, 1)
input_port_connected_method = get_method(:input_port_connected, 3)
name = self.class.get_name
description = self.class.description
help = self.class.help
@bt_component_class = BTComponentClassSink.new(name: name, consume_method: consume_method)
@bt_component_class.description = description if description
@bt_component_class.help = help if help
@bt_component_class.finalize_method = finalize_method if finalize_method
@bt_component_class.initialize_method = initialize_method if initialize_method
@bt_component_class.get_supported_mip_versions_method = get_supported_mip_versions_method if get_supported_mip_versions_method
@bt_component_class.query_method = query_method if query_method
@bt_component_class.graph_is_configured_method = graph_is_configured_method if graph_is_configured_method
@bt_component_class.input_port_connected_method = input_port_connected_method if input_port_connected_method
end
|