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

__init__(parent, o, ui_data)[source]

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

add_child(o)[source]

Add a child data item

get(a)[source]

Get an attribute

set(a, val)[source]

set an attribute