Package empro :: Module empro :: Class BondwireDefinitionList
[frames] | no frames]

Class BondwireDefinitionList

core.Updatable --+    
                 |    
   core.Selectable --+
                     |
                    BondwireDefinitionList

Manages the list of bondwire definitions belonging to the active project

Class Hierarchy for BondwireDefinitionList
Class Hierarchy for BondwireDefinitionList

Instance Methods
 
__call__(x, ...)
x(...)
 
__contains__(x, y)
y in x
 
__delitem__(x, y)
del x[y]
 
__getitem__(x, y)
x[y]
 
__len__(x)
len(x)
 
__setitem__(x, i, y)
x[i]=y
bool
append(definition)
Appends a bondwire definition to the list.
BondwireDefinition
at(...)
at(name | index) retrieve a bondwire definition from list.
None
clear()
Clear the list.
bool
contains(definition)
Determines if the bondwire definition is in the list.
int
index(definition)
Retrieves the index of a bondwire definition.
bool
insert(index, definition)
Inserts a bondwire definition into the list.
list
names()
Returns the names of the bondwire definitions in the list.
bool
remove(...)
remove(name | index) Removes a bondwire definition.
bool
replace(index, definition)
Replaces a bondwire definition.
int
size()
Returns the size of the list.
None
swap(a, b)
Swaps two circuit components.

Inherited from core.Selectable: clone, isSelected

Inherited from core.Updatable: __enter__, __exit__, hash, isValid, reasonWhyInvalid

Properties

Inherited from core.Selectable: metaData, name, notes

Method Details

append(definition)

 

Appends a bondwire definition to the list.

Parameters:
Returns: bool

at(...)

 

at(name | index) retrieve a bondwire definition from list.

Parameters:
  • name, |, index - Name or index of the requested bondwire definition.
Returns: BondwireDefinition

contains(definition)

 

Determines if the bondwire definition is in the list.

Parameters:
Returns: bool

index(definition)

 

Retrieves the index of a bondwire definition.

Parameters:
Returns: int

insert(index, definition)

 

Inserts a bondwire definition into the list.

Parameters:
  • index (int) - Index of where to insert the new element.
  • definition (BondwireDefinition) - Bondwire definition to insert.
Returns: bool

remove(...)

 

remove(name | index) Removes a bondwire definition.

Parameters:
  • name, |, index - Name or index of the bondwire definition to remove.
Returns: bool

replace(index, definition)

 

Replaces a bondwire definition.

Parameters:
  • index (int) - Index of which element to replace.
  • definition (BondwireDefinition) - Bondwire definition to add.
Returns: bool

swap(a, b)

 

Swaps two circuit components.

Parameters:
  • a (int) - Index of the first bondwire definition.
  • b (int) - Index of the second bondwire definition.
Returns: None