Class: PotentialComponent

PotentialComponent(pin, potentialType)

Class representing a potential, e.g. GND.

Constructor

new PotentialComponent(pin, potentialType)

Generate a potential (-stencil).

Parameters:
Name Type Description
pin Pin

the one and only pin

potentialType PotentialComponent.POTENTIAL_TYPE

the selected type, e.g. POTENTIAL_TYPE.ground

Source:

Members

coord

Source:

net

Source:

nodeText

Source:

pins

Source:

tikzComponentName

Source:

Methods

useAsStencil(libraryName, cellName, instanceName, attributes, pins, placement, wires, nets, coords) → {PotentialComponent}

Generate a TikZ component using this as an stencil. The parameters are informations extracted from ABL.

Parameters:
Name Type Description
libraryName string

the ABL library name, e.g. "ads_rflib"

cellName string

the librarys component name, e.g. "R"

instanceName string

the instance/component name, e.g. "R1"

attributes Map.<string, string>

map of all (XML) attributes

pins Array.<Pin>

the pins with their name and number (position not yet set)

placement Object

general component placement information

wires Array.<Wire>

list of all wires

nets Map.<string, Net>

list of all nets

coords Array.<Coordinate>

list of all coordinates

Source:
Returns:

the new NodeComponent

Type
PotentialComponent