/// <summary> /// to identify weather the port is matched with this calibTofdColumn /// </summary> /// <param name="port"></param> /// <returns></returns> public bool isMatched(int port) { int upPort; SessionHardWare.getInfo(assignName, out upPort); if (upPort == -1) { return(false); } if (upPort == port) { return(true); } else { return(false); } }
/**Set the sourceList and bind to the cycleList.*/ public override void bindToList(List <RowData> rowDataList, List <List <SingleGateSeries> > singleList, List <List <DoubleGatesSeries> > doubleList) { int cycelIndex; if (doubleList.Count == 0) { return; } if (matchList.Count != 0) { matchList.Clear(); } foreach (RowData rowData in rowDataList) { if (rowData.activity) { int port; SessionHardWare.getInfo(rowData.Cycle, out cycelIndex, out port); if ((cycelIndex < 0) || (port < 0) || (cycelIndex >= singleList.Count)) { continue; } MeasureFastMatch fastMatch = new MeasureFastMatch(cycelIndex, port, rowData.Source); if (!matchList.Contains(fastMatch)) { matchList.Add(fastMatch); } if (!doubleList[cycelIndex].Contains(this)) { doubleList[cycelIndex].Add(this); } } } }