public void PosCampos() { var tag = new TagPos(100, 50); Assert.AreEqual(tag.Name, "pos"); Assert.AreEqual(tag.X, 100); Assert.AreEqual(tag.Y, 50); }
public void PosString(string ingresado, string esperado) { var nombre = @"\pos"; var ingresado2 = nombre + ingresado; var esperado2 = nombre + esperado; var pos = new TagPos(ingresado2); Assert.AreEqual(esperado2, pos.ToString()); }
//从队列中去除一个TagPos public void SAR(TagPos tagPos) { TagInfo tagInfo = tagPos.tagInfo; string algorithmType = tssbtnAlgorithms.Text.Trim(); CalculateType calculateType = getTypeByStr(algorithmType); ICalculateService iCalculateService = ServiceManager.getCalculateService(calculateType); if (!SARParameter.epcSet.Contains(tagInfo.EPC)) { iCalculateService.init(tagInfo.EPC, SARParameter.confParam); SARParameter.epcSet.Add(tagInfo.EPC); } Tuple <double, double, double> position = tagPos.pos; iCalculateService.calculate(tagInfo.EPC, position.Item1, position.Item2, position.Item3, tagInfo.Frequency, tagInfo.AcutalPhaseInRadian); ServiceManager.closeService(iCalculateService); }