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

Public Member Functions

def __init__
 
def get_all_attributes
 Returns the appropriate attribute values on this pin. More...
 
def get_attribute
 Return the value associated with attribute name on the pin. More...
 
def error
 
def warn
 

Public Attributes

 package
 
 number
 
 cpins
 

Detailed Description

Definition at line 160 of file package.py.

Constructor & Destructor Documentation

def xorn.geda.netlist.package.PackagePin.__init__ (   self,
  package,
  number 
)

Definition at line 161 of file package.py.

Member Function Documentation

def xorn.geda.netlist.package.PackagePin.error (   self,
  msg 
)

Definition at line 238 of file package.py.

def xorn.geda.netlist.package.PackagePin.get_all_attributes (   self,
  name 
)

Returns the appropriate attribute values on this pin.

This function returns the values of a specific attribute type attached to the instances of this pin. For each instance, the found attribute value is added to the return list. None is added if the instance has no such attribute.

Note
The order of the values in the return list is the order of pin instances within the netlist (the first element is the value associated with the first pin instance).
Returns
a list of attribute values as strings and None

Definition at line 179 of file package.py.

def xorn.geda.netlist.package.PackagePin.get_attribute (   self,
  name,
  default = KeyError 
)

Return the value associated with attribute name on the pin.

It actually computes a single value from the full list of values produced by get_all_attributes.

If all instances do not have the same value for name, raises an error.

Definition at line 201 of file package.py.

def xorn.geda.netlist.package.PackagePin.warn (   self,
  msg 
)

Definition at line 243 of file package.py.

Member Data Documentation

xorn.geda.netlist.package.PackagePin.cpins

Definition at line 164 of file package.py.

xorn.geda.netlist.package.PackagePin.number

Definition at line 163 of file package.py.

xorn.geda.netlist.package.PackagePin.package

Definition at line 162 of file package.py.


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