ComponentDataItem
(class from pyomo.contrib.viewer.model_browser
)
- class pyomo.contrib.viewer.model_browser.ComponentDataItem(parent, o, ui_data)[source]
Bases:
object
This is a container for a Pyomo component to be displayed in a model tree view.
- Parameters:
parent – parent data item
o – pyomo component object
ui_data – a container for data, as of now mainly just pyomo model
Methods
__init__
(parent, o, ui_data)add_child
(o)Add a child data item
get
(a)Get an attribute
set
(a, val)set an attribute
Member Documentation