Skip to main content

SetOutputPortCount

OutputPortChangeAction

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


Constructor

public OutputPortChangeAction

new OutputPortChangeAction(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 OutputPortChangeAction


Methods

protected getPorts

getPorts() => Port[]

Returns the objects output ports.

Returns

  •   Port[] – The objects output inports.

public execute

execute() => Action

Changes the number of output 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 output 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 OutputPortChangeAction


Functions

SetOutputPortCount

SetOutputPortCount(obj, target) => OutputPortChangeAction

Description needed

Parameters

  •  obj: DigitalComponentDescription needed

  •  target: numberDescription needed

Returns

  •   OutputPortChangeActionDescription needed