Class Pins
- Namespace
- Csra
- Assembly
- Csra.dll
Pins class - a collection of Pin objects.
[Serializable]
public class Pins : IEnumerable<string>, IEnumerable, IEquatable<Pins>
- Inheritance
-
Pins
- Implements
- Inherited Members
Constructors
Pins(string)
Construct a new Pins object. Resolves (nested) pin groups and lists.
public Pins(string pinList)
Parameters
Properties
Dcvi
public IDcviPins Dcvi { get; }
Property Value
Dcvs
public IDcvsPins Dcvs { get; }
Property Value
Digital
public IDigitalPins Digital { get; }
Property Value
Ppmu
public IPpmuPins Ppmu { get; }
Property Value
Utility
public IUtilityPins Utility { get; }
Property Value
Methods
Add(string)
Add pins to the Pins object. Resolves (nested) pin groups and lists.
public void Add(string pinList)
Parameters
ArrangePinSite<T>(IEnumerable<PinSite<Samples<T>>>)
Combines multiple Teradyne.Igxl.Interfaces.Public.PinSite<T> objects into a single one maintaining this Pins object's pin sequence. Excessive objects are quietly ignored, a runtime exception is thrown for missing ones.
public PinSite<Samples<T>> ArrangePinSite<T>(IEnumerable<PinSite<Samples<T>>> pinSite)
Parameters
pinSiteIEnumerable<PinSite<Samples<T>>>A collection of Teradyne.Igxl.Interfaces.Public.PinSite<T> instances to be combined and arranged.
Returns
- PinSite<Samples<T>>
A new Teradyne.Igxl.Interfaces.Public.PinSite<T> containing elements from all input Teradyne.Igxl.Interfaces.Public.PinSite<T> instances, arranged in the right order.
Type Parameters
TThe type of Teradyne.Igxl.Interfaces.Public.PinSite<T> elements.
ArrangePinSite<T>(IEnumerable<PinSite<T>>)
Combines multiple Teradyne.Igxl.Interfaces.Public.PinSite<T> objects into a single one maintaining this Pins object's pin sequence. Excessive objects are quietly ignored, a runtime exception is thrown for missing ones.
public PinSite<T> ArrangePinSite<T>(IEnumerable<PinSite<T>> pinSite)
Parameters
pinSiteIEnumerable<PinSite<T>>A collection of Teradyne.Igxl.Interfaces.Public.PinSite<T> instances to be combined and arranged.
Returns
- PinSite<T>
A new Teradyne.Igxl.Interfaces.Public.PinSite<T> containing elements from all input Teradyne.Igxl.Interfaces.Public.PinSite<T> instances, arranged in the right order.
Type Parameters
TThe type of Teradyne.Igxl.Interfaces.Public.PinSite<T> elements.
ContainsDomain(InstrumentDomain)
Test if at least one pin has the specified domain.
public bool ContainsDomain(InstrumentDomain domain)
Parameters
domainInstrumentDomainThe instrument domain to look for.
Returns
- bool
True if one or more pins have the domain.
ContainsFeature(InstrumentFeature)
Test if at least one pin has the specified feature.
public bool ContainsFeature(InstrumentFeature feature)
Parameters
featureInstrumentFeatureThe instrument feature to look for.
Returns
- bool
True if one or more pins have the feature.
Count()
Return the number of pins in the Pins object.
public int Count()
Returns
Equals(Pins)
Determines whether the specified Pins instance is equal to the current instance.
public bool Equals(Pins other)
Parameters
Returns
Equals(object)
Determines whether the specified object is equal to the current Pins.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
trueif the specified object is a Pins and contains the same pins in the same order; otherwise,false.
ExtractByDomain(InstrumentDomain)
Extract pins by instrument domain.
public Pins ExtractByDomain(InstrumentDomain domain)
Parameters
domainInstrumentDomainThe instrument domain to look for.
Returns
ExtractByFeature(InstrumentFeature)
Extract pins by instrument feature.
public Pins ExtractByFeature(InstrumentFeature feature)
Parameters
featureInstrumentFeatureThe instrument feature to look for.
Returns
GetEnumerator()
Get an enumerator for the <xref href="Csra.Pins" data-throw-if-not-resolved="false"></xref> object to support
foreach
.
public IEnumerator<string> GetEnumerator()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
Join(Pins[])
public static Pins Join(Pins[] pinGroups)
Parameters
Returns
ToString()
Convert the Pins object to a comma-separated list of all pin names.
public override string ToString()
Returns
- string
A comma-separated list of all pin names.
Operators
operator ==(Pins, Pins)
Determines whether two Pins instances are equal.
public static bool operator ==(Pins left, Pins right)
Parameters
Returns
- bool
trueif both instances are equal or both arenull; otherwise,false.
operator !=(Pins, Pins)
Determines whether two Pins instances are not equal.
public static bool operator !=(Pins left, Pins right)
Parameters
Returns
- bool
trueif the instances are not equal; otherwise,false.