Exemplo n.º 1
0
        private Link_Param HandleLinkParam80211Parameter(Link_Param_Type linkParamType)
        {
            Link_Param linkParam = new Link_Param();

            linkParam.LinkParamType = linkParamType;

            switch (linkParamType.SubType)
            {
                case (int)LINK_PARAM_802_11_SUBTYPES.MulticastPacketLossRate:
                    {
                        linkParam.LinkParamVal = Information.Link_Param_802_11.GetMulticastPacketLossrate_2;
                        break;
                    }
                case (int)LINK_PARAM_802_11_SUBTYPES.RSSI:
                    {
                        linkParam.LinkParamVal = Information.Link_Param_802_11.GetRSSI_0;
                        break;
                    }
                case (int)LINK_PARAM_802_11_SUBTYPES.NoQoS:
                    {
                        linkParam.LinkParamVal = 0;
                        break;
                    }
            }

            return linkParam;
        }
Exemplo n.º 2
0
 /// <summary>
 /// The Link_Param_Rpt constructor.
 /// </summary>
 /// <param name="linkParam">The Link_Param.</param>
 /// <param name="threshold">Tha Threshold.</param>
 public Link_Param_Rpt(Link_Param linkParam, Threshold threshold)
 {
     this.LinkParam = linkParam;
     this.Threshold = threshold;
 }
Exemplo n.º 3
0
        private Link_Param HandleLinkParamGenParameter(Link_Param_Type linkParamType)
        {
            Link_Param linkParam = new Link_Param();

            linkParam.LinkParamType = linkParamType;

            switch (linkParamType.SubType)
            {
                case (int)LINK_PARAM_GEN_SUBTYPES.DataRate:
                    {
                        linkParam.LinkParamVal = Information.Link_Param_Gen.DataRate_0;
                        break;
                    }
                case (int)LINK_PARAM_GEN_SUBTYPES.PacketErrorRate:
                    {
                        linkParam.LinkParamVal = Information.Link_Param_Gen.PacketErrorRate_4;
                        break;
                    }
                case (int)LINK_PARAM_GEN_SUBTYPES.SignalStrength:
                    {
                        linkParam.LinkParamVal = Information.Link_Param_Gen.SignalStrength_1;
                        break;
                    }
                case (int)LINK_PARAM_GEN_SUBTYPES.SINR:
                    {
                        linkParam.LinkParamVal = Information.Link_Param_Gen.SINR_2;
                        break;
                    }
                case (int)LINK_PARAM_GEN_SUBTYPES.Throughtput:
                    {
                        linkParam.LinkParamVal = Information.Link_Param_Gen.Throughput_3;
                        break;
                    }
            }

            return linkParam;
        }
Exemplo n.º 4
0
        private static Link_Parameters_Report ReportBuilder(ushort subType, ushort value)
        {
            //Link Identification Information
            Link_Addr linkAddr = new Link_Addr(Link_Addr.Address_Type.MAC_ADDR, Information.GenericInfo.PhysicalAddress.ToString());
            Link_Id linkId = new Link_Id(linkType, linkAddr);
            Link_Tuple_Id linkTuppleId = new Link_Tuple_Id(linkId, linkAddr);
            Link_Tuple_Id nicTupple = new Link_Tuple_Id(linkId, linkAddr);

            //Specified Parameter information and report building
            List<Link_Param_Rpt> paramsList = new List<Link_Param_Rpt>();
            Link_Param_Type linkParamType = new Link_Param_Type(Link_Param_Types.LINK_PARAM_GEN, subType);
            Link_Param linkParam = new Link_Param(linkParamType, value);
            Link_Param_Rpt reportSingle = new Link_Param_Rpt(linkParam, null);
            paramsList.Add(reportSingle);
            return new Link_Parameters_Report(nicTupple, paramsList);
        }