Xorn
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Public Attributes | List of all members
xorn.geda.netlist.blueprint.Component Class Reference

Component in a single schematic's netlist. More...

Public Member Functions

def __init__
 
def get_attributes
 Get all attribute values for a given attribute name. More...
 
def get_attribute
 Get the value of an attached or inherited attribute. More...
 
def get_attribute_names
 

Public Attributes

 schematic
 
 ob
 
 pins
 
 pins_by_ob
 
 composite_sources
 
 is_graphical
 
 pins_by_pinseq
 
 pins_by_number
 
 slotdef
 
 error
 
 warn
 
 refdes
 Determine the refdes to use for a particular object. More...
 

Detailed Description

Component in a single schematic's netlist.

Definition at line 121 of file blueprint.py.

Constructor & Destructor Documentation

def xorn.geda.netlist.blueprint.Component.__init__ (   self,
  schematic,
  ob 
)

Definition at line 122 of file blueprint.py.

Member Function Documentation

def xorn.geda.netlist.blueprint.Component.get_attribute (   self,
  name,
  default = KeyError,
  search_inherited = True 
)

Get the value of an attached or inherited attribute.

Returns the value of the attribute with the name name, or raises a KeyError if the attribute doesn't exist. If default is given, returns that value instead.

Searches the attributes attached to the component first. If no matching attributes are found and search_inherited is not False, searches the attributes inherited from the symbol. It is an error for the component to contain multiple attached or inherited values with different values.

If an attribute has the value unknown, it is treated as if it didn't exist. This can be used to un-set an attribute inherited from the symbol.

Definition at line 216 of file blueprint.py.

def xorn.geda.netlist.blueprint.Component.get_attribute_names (   self,
  search_inherited 
)

Definition at line 239 of file blueprint.py.

def xorn.geda.netlist.blueprint.Component.get_attributes (   self,
  name,
  search_inherited = True 
)

Get all attribute values for a given attribute name.

Searches the attributes attached to this component for attributes with the name name and returns a list with their values. If no matching attributes are attached and search_inherited is not False, searches the attributes inherited from the symbol instead.

Definition at line 189 of file blueprint.py.

Member Data Documentation

xorn.geda.netlist.blueprint.Component.composite_sources

Definition at line 129 of file blueprint.py.

xorn.geda.netlist.blueprint.Component.error

Definition at line 139 of file blueprint.py.

xorn.geda.netlist.blueprint.Component.is_graphical

Definition at line 132 of file blueprint.py.

xorn.geda.netlist.blueprint.Component.ob

Definition at line 124 of file blueprint.py.

xorn.geda.netlist.blueprint.Component.pins

Definition at line 125 of file blueprint.py.

xorn.geda.netlist.blueprint.Component.pins_by_number

Definition at line 136 of file blueprint.py.

xorn.geda.netlist.blueprint.Component.pins_by_ob

Definition at line 126 of file blueprint.py.

xorn.geda.netlist.blueprint.Component.pins_by_pinseq

Definition at line 135 of file blueprint.py.

xorn.geda.netlist.blueprint.Component.refdes

Determine the refdes to use for a particular object.

Definition at line 146 of file blueprint.py.

xorn.geda.netlist.blueprint.Component.schematic

Definition at line 123 of file blueprint.py.

xorn.geda.netlist.blueprint.Component.slotdef

Definition at line 137 of file blueprint.py.

xorn.geda.netlist.blueprint.Component.warn

Definition at line 140 of file blueprint.py.


The documentation for this class was generated from the following file: