Class PatternInfo
- Namespace
- Csra
- Assembly
- Csra.dll
Class to store information about a pattern.
[Serializable]
public class PatternInfo
- Inheritance
-
PatternInfo
- Inherited Members
Constructors
PatternInfo(string, bool)
Construct a new PatternInfo object and load the specified pattern.
public PatternInfo(string pattern, bool threading)
Parameters
patternstringSpecifies the pattern to load. This can be a pattern module name, pattern file, pattern set name, or a combination of these items.
threadingboolIndicate whether threading should be used. Validation will fail if threading is not supported by the pattern.
PatternInfo(Pattern, bool)
Construct a new PatternInfo object and load the specified pattern.
public PatternInfo(Pattern pattern, bool threading)
Parameters
patternPatternSpecifies the pattern to load. This can be a pattern module name, pattern file, pattern set name, or a combination of these items.
threadingboolIndicate whether threading should be used. Validation will fail if threading is not supported by the pattern.
Fields
MaxFlags
public const int MaxFlags = 15
Field Value
Name
The name of the pattern setup in IGXL.
public readonly string Name
Field Value
Properties
ClearFlags
Clear flag value for the pattern, default is all flags (0).
public int ClearFlags { get; set; }
Property Value
SetFlags
Set flag value for the pattern, default is cpuA (1).
public int SetFlags { get; set; }
Property Value
ThreadingEnabled
Whether or not the pattern can and will use threading.
public bool ThreadingEnabled { get; set; }
Property Value
TimeDomain
Use this property to return a string that lists the time domain names associated with the specified PatternSpecification. If a pattern is not specified, this syntax returns a comma-separated list of all domain names.
public string TimeDomain { get; }
Property Value
Methods
Equals(PatternInfo)
Determines whether the specified PatternInfo instance is equal to the current instance.
public bool Equals(PatternInfo other)
Parameters
otherPatternInfoThe PatternInfo instance to compare with the current instance.
Returns
- bool
trueif the specified PatternInfo has the same public properties; otherwise,false.
Equals(object)
Determines whether the specified object is equal to the current PatternInfo.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
trueif the specified object is a PatternInfo and has the same public properties; otherwise,false.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current PatternInfo.
GetModuleLabelList(string)
Returns the list of labels defined in the specified pattern module. The module must exist in the pattern's module list; otherwise, IGXL will raise an error.
public string[] GetModuleLabelList(string module)
Parameters
modulestringThe name of the pattern module for which to retrieve the defined labels.
Returns
- string[]
A string array of label names defined in the specified pattern module.
ModifyVectorBlockData(Pins, string, string, int, ref string[])
Modifies vector block data for the specified pins in the given pattern module. The data is expected in vector-major order, where each element represents a vector: { "P1P2P3P4", "P1P2P3P4", ... }.
public void ModifyVectorBlockData(Pins pins, string patternModule, string label, int offset, ref string[] pinDataArray)
Parameters
pinsPinsThe pins to modify.
patternModulestringThe pattern module containing the vector block.
labelstringThe label identifying the vector block.
offsetintThe offset within the vector block.
pinDataArraystring[]Vector-major data array passed by reference.
ModifyVectorBlockDataPinOrder(Pins, string, string, int, ref string)
Modifies vector block data for the specified pins using a single string where each character represents one vector. The string is split into individual characters before being sent to IGXL.
public void ModifyVectorBlockDataPinOrder(Pins pins, string patternModule, string label, int offset, ref string pinData)
Parameters
pinsPinsThe pins to modify.
patternModulestringThe pattern module containing the vector block.
labelstringThe label identifying the vector block.
offsetintThe offset within the vector block.
pinDatastringA string where each character is a vector entry.
ModifyVectorBlockDataPinOrder(Pins, string, string, int, ref string[])
Modifies vector block data for the specified pins using pin-major order. The data is expected as one string per pin, where each string contains that pin's values across all vectors: { "P1P1P1P1", "P2P2P2P2", ... }. The data is transposed to vector-major order before being sent to IGXL.
public void ModifyVectorBlockDataPinOrder(Pins pins, string patternModule, string label, int offset, ref string[] pinDataArray)
Parameters
pinsPinsThe pins to modify.
patternModulestringThe pattern module containing the vector block.
labelstringThe label identifying the vector block.
offsetintThe offset within the vector block.
pinDataArraystring[]Pin-major data array passed by reference.
Operators
operator ==(PatternInfo, PatternInfo)
Determines whether two PatternInfo instances are equal.
public static bool operator ==(PatternInfo left, PatternInfo right)
Parameters
leftPatternInfoThe first PatternInfo to compare.
rightPatternInfoThe second PatternInfo to compare.
Returns
- bool
trueif both instances are equal or both arenull; otherwise,false.
operator !=(PatternInfo, PatternInfo)
Determines whether two PatternInfo instances are not equal.
public static bool operator !=(PatternInfo left, PatternInfo right)
Parameters
leftPatternInfoThe first PatternInfo to compare.
rightPatternInfoThe second PatternInfo to compare.
Returns
- bool
trueif the instances are not equal; otherwise,false.