OpenTAP 9.34
API Reference
OpenTap.Connection Class Referenceabstract

Object representing a connection between two Ports. Can be extended to add properties. More...

Inheritance diagram for OpenTap.Connection:
OpenTap.ValidatingObject OpenTap.ITapPlugin OpenTap.IValidatingObject OpenTap.RfConnection OpenTap.DirectionalRfConnection

Public Member Functions

 Connection ()
 Initializes a new instance of the Connection class.
 
Port GetOtherPort (Port p)
 Returns the other port when given either Port1 or Port2.
 
override string ToString ()
 Returns a string representation of this connection which names the ports in each end.
 
- Public Member Functions inherited from OpenTap.ValidatingObject
void OnPropertyChanged (string propertyName)
 Triggers the PropertyChanged event.
 
- Public Member Functions inherited from OpenTap.IValidatingObject

Properties

string Name [get, set]
 A name for the connection to be displayed in the user interface.
 
Port Port1 [get, set]
 The port at the first end of the connection.
 
Port Port2 [get, set]
 The port at the second end of the connection.
 
List< ViaPointVia [get, set]
 Gets the list of ViaPoints that this connection goes through.
 
bool IsActive [get]
 Returns true when a connection going through one or more switches (set using the Via property) is "Active" (all switches are in the correct position).
 
- Properties inherited from OpenTap.ValidatingObject
ValidationRuleCollection Rules [get]
 All the validation rules. Add new rules to this in order to get runtime value validation.
 
string Error [get]
 Gets the error messages for each invalid rule and joins them with a newline.
 
- Properties inherited from OpenTap.IValidatingObject

Additional Inherited Members

- Protected Member Functions inherited from OpenTap.ValidatingObject
virtual string GetError (string propertyName=null)
 Return the error for a given property.
 
void ThrowOnValidationError (bool ignoreDisabledProperties)
 Checks all validation rules on this object (Rules) and throws an AggregateException on errors.
 
- Events inherited from OpenTap.ValidatingObject
PropertyChangedEventHandler PropertyChanged
 Standard PropertyChanged event object.
 

Detailed Description

Object representing a connection between two Ports. Can be extended to add properties.

OpenTAP 9.34 API built Wed Jul 1 2026 09:21:14