OpenTAP 9.25
API Reference
Public Member Functions | Properties | List of all members
OpenTap.Port Class Reference

Object representing a port on an instrument or DUT. Ports are connected with Connection objects. More...

Inheritance diagram for OpenTap.Port:
OpenTap.IConstResourceProperty OpenTap.InputPort OpenTap.OutputPort

Public Member Functions

 Port (IResource device, string name)
 Initializes a new instance of the Port class.
 
IEnumerable< PortGetConnectedPorts ()
 Returns a list of the ports that this port has connections to.
 
IEnumerable< PortGetActiveConnectedPorts ()
 Returns a list of the ports that this port has connections to and that are active.
 
IEnumerable< ConnectionGetConnectionsTo (IResource device)
 Returns a list of connections from this port to a specified device.
 
IEnumerable< ConnectionGetConnectionsTo (Port otherPort)
 Returns a list of connections from this port to a specified port.
 
override string ToString ()
 Returns a string describing this port. More...
 

Properties

IResource Device [get]
 The device (usually an Instrument or Dut) on which this port exists.
 
IEnumerable< ConnectionConnections [get]
 List of Connections connected to this port.
 
string Name [get]
 The name of this port. (Should be unique among Port objects on the same device/resource).
 
- Properties inherited from OpenTap.IConstResourceProperty
IResource Device [get]
 TDevice/resource to which this object belongs.
More...
 
string Name [get]
 Name of this object (should be unique among objects of the same type on the same device/resource).

 

Detailed Description

Object representing a port on an instrument or DUT. Ports are connected with Connection objects.

Member Function Documentation

◆ ToString()

override string OpenTap.Port.ToString ( )
inline

Returns a string describing this port.

Returns

OpenTAP 9.25 API built Tue Aug 6 2024 07:49:24