class Syskit::GUI::ModelViews::Component
Visualization of a single component model. It is used to visualize the taks contexts and data services
Attributes
interface_options[R]
Options for the display of the interface
Public Class Methods
new(page)
click to toggle source
Calls superclass method
Syskit::GUI::ComponentNetworkBaseView.new
# File lib/syskit/gui/model_views/component.rb, line 10 def initialize(page) super @interface_options = Hash[ mode: 'dataflow', title: 'Interface', annotations: ['task_info', 'port_details'].to_set, zoom: 1] end
Public Instance Methods
render(model, doc: true, **push_options)
click to toggle source
Calls superclass method
Syskit::GUI::ComponentNetworkBaseView#render
# File lib/syskit/gui/model_views/component.rb, line 25 def render(model, doc: true, **push_options) if doc render_doc(model) end super task = instanciate_model(model) @plan = task.plan push_plan('interface', task.plan, push_options) render_data_services(task) end
render_doc(model)
click to toggle source
# File lib/syskit/gui/model_views/component.rb, line 19 def render_doc(model) if model.doc page.push nil, page.main_doc(model.doc) end end