Skip to main content

PortSets

PortSet<T>

Overview needed

Template Parameters

  • T extends Port – *Description needed*

Constructor

public PortSet

new PortSet()

*Description needed*

new PortSet(parent, count, positioner, type)

*Description needed*

Parameters

  •  parent: ComponentDescription needed

  •  count: ClampedValueDescription needed

  •  positioner: Positioner<T>Description needed

  •  type: ComponentDescription needed


Properties

No publicly accessible properties on PortSet

private parent: Component

Description needed

private oldPorts: T[]

Description needed

private currentPorts: T[]

Description needed

private count: ClampedValue

Description needed

private type: Component

Description needed

private positioner: Positioner<T>

Description needed


Methods

public setPortCount

setPortCount(newVal) => void

Set the number of Ports of this set. The value will be clamped and positions of ports will be updated.

Parameters

  •  newVal: number – The new number of ports.

public updatePortPositions

updatePortPositions() => void

Updates the positions of the ports in the set. Allows for position updating even when the size does not change.

public get

get(i) => T

Description needed

Parameters

  •  i: numberDescription needed

Returns

  •   TDescription needed

public getPorts

getPorts() => T[]

Description needed

Returns

  •   T[]Description needed

public getPositioner

getPositioner() => Positioner<T>

Description needed

Returns

public getCount

getCount() => ClampedValue

Description needed

Returns

  •   ClampedValueDescription needed

public isEmpty

isEmpty() => false | true

Description needed

Returns

  •   false | trueDescription needed

Static Methods

No static methods for PortSet