spydrnet.Definition.add_port

Definition.add_port(port, position=None)[source]

Add a preexisting port to the definition.

This port must not be a member of any definition

Parameters:
  • port - (Port) the port to add to the definition

  • position - (int, default None) the index in the port list at which to add the port