Skip to main content

SetInputPortCount

InputPortChangeAction

This code allows for the change in the number of input ports on a DigitalComponent.


Constructor

public InputPortChangeAction

new InputPortChangeAction(obj, target)

This code constructs the obj with the new number of ports.

Parameters

  •  obj: DigitalComponent – The object being changed.

  •  target: number – Number of ports.


Properties

No publicly accessible properties on InputPortChangeAction


Methods

protected getPorts

getPorts() => Port[]

Returns the objects input ports.

Returns

  •   Port[] – The objects input inports.

public execute

execute() => Action

Changes the number of input ports on the object to the target count.

Returns

  •   Action – The object with the new number of ports.

public undo

undo() => Action

Resets the number of input ports back to the initial count.

Returns

  •   Action – The object with the initial number of ports.

public getName

getName() => string

Description needed

Returns

  •   stringDescription needed

Static Methods

No static methods for InputPortChangeAction


Functions

SetInputPortCount

SetInputPortCount(obj, target) => InputPortChangeAction

Description needed

Parameters

  •  obj: DigitalComponentDescription needed

  •  target: numberDescription needed

Returns

  •   InputPortChangeActionDescription needed