📄 linkprotocol802_11frame.java
字号:
} } return jLabel4; } /** * This method initializes jLabel5 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel5() { if(jLabel5 == null) { jLabel5 = new javax.swing.JLabel(); jLabel5.setBounds(33, 59, 96, 18); jLabel5.setText("IP Address:"); } return jLabel5; } /** * This method initializes jLabel6 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel6() throws IntelMobileException { if(jLabel6 == null) { jLabel6 = new javax.swing.JLabel(); jLabel6.setBounds(151, 59, 311, 18); if(!protocol802_11Instance.IpAddress.IsNull()) jLabel6.setText(protocol802_11Instance.IpAddress.GetValue()); else jLabel6.setText("(null)"); } return jLabel6; } /** * This method initializes jLabel7 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel7() { if(jLabel7 == null) { jLabel7 = new javax.swing.JLabel(); jLabel7.setBounds(33, 94, 165, 18); jLabel7.setText("Max Link Speed(bps):"); } return jLabel7; } /** * This method initializes jLabel8 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel8() throws IntelMobileException { if(jLabel8 == null) { jLabel8 = new javax.swing.JLabel(); jLabel8.setBounds(200, 94, 200, 18); jLabel8.setText(com.intel.mobile.base.UInt64Property.toUnsignedString(protocol802_11Instance.MaxLinkSpeed.GetValue())); } return jLabel8; } /** * This method initializes jLabel9 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel9() { if(jLabel9 == null) { jLabel9 = new javax.swing.JLabel(); jLabel9.setBounds(33, 148, 210, 18); jLabel9.setText("Current Receive Data Rate(bps):"); } return jLabel9; } /** * This method initializes jLabel10 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel10() { if(jLabel10 == null) { jLabel10 = new javax.swing.JLabel(); jLabel10.setBounds(33, 179, 210, 18); jLabel10.setText("Current Transmit Data Rate(bps):"); } return jLabel10; } /** * This method initializes jLabel11 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel11() throws IntelMobileException { if(jLabel11 == null) { jLabel11 = new javax.swing.JLabel(); jLabel11.setBounds(250, 149, 200, 18); jLabel11.setText(com.intel.mobile.base.UInt64Property.toUnsignedString(protocol802_11Instance.DataRateRx.GetValue())); } return jLabel11; } /** * This method initializes jLabel12 * * @return javax.swing.JLabel */ private javax.swing.JLabel getJLabel12() throws IntelMobileException { if(jLabel12 == null) { jLabel12 = new javax.swing.JLabel(); jLabel12.setBounds(250, 179, 200, 18); jLabel12.setText(com.intel.mobile.base.UInt64Property.toUnsignedString(protocol802_11Instance.DataRateTx.GetValue())); } return jLabel12; }}class Protocol802_11TableModel extends LinkProtocolTableModel{ public Protocol802_11TableModel(Protocol802_11Instance myInstance) throws IntelMobileException { super(myInstance); Init(myInstance); } private void Init(Protocol802_11Instance myInstance) throws IntelMobileException { Object[][] tempdata = new Object[800][3]; for (int i = 0; i < this.data.length; i++) { tempdata[i][0] = data[i][0]; tempdata[i][1] = data[i][1]; tempdata[i][2] = data[i][2]; } int i = this.index; tempdata[i][0] = "AtimWindow(K��sec)"; if ( !myInstance.AtimWindow.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UIntProperty.toUnsignedString(myInstance.AtimWindow.GetValue()); } tempdata[i++][2] = ""; tempdata[i][0] = "BeaconPeriod(K��sec)"; if ( !myInstance.BeaconPeriod.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UIntProperty.toUnsignedString(myInstance.BeaconPeriod.GetValue()); } tempdata[i++][2] = ""; tempdata[i][0] = "Bssid"; if ( !myInstance.Bssid.IsNull() ) { for (int j = 0; j < myInstance.Bssid.GetSize(); j++) { tempdata[i][1] = LinkProtocolTableModel.getHexString(myInstance.Bssid.GetValue(j)); tempdata[i++][2] = ""; } } tempdata[i][0] = "Frequency"; if ( !myInstance.Frequency.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UIntProperty.toUnsignedString(myInstance.Frequency.GetValue()); } tempdata[i++][2] = ""; tempdata[i][0] = "DwellTime"; if ( !myInstance.DwellTime.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UIntProperty.toUnsignedString(myInstance.DwellTime.GetValue()); } tempdata[i++][2] = ""; if(!myInstance.FailedCount.IsNull()) { tempdata[i][0] = "FailedCount"; if ( !myInstance.FailedCount.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UInt64Property.toUnsignedString(myInstance.FailedCount.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.FcsErrorCount.IsNull()) { tempdata[i][0] = "FcsErrorCount"; if ( !myInstance.FcsErrorCount.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UInt64Property.toUnsignedString(myInstance.FcsErrorCount.GetValue()); } tempdata[i++][2] = ""; } tempdata[i][0] = "FragmentationThreshold"; if ( !myInstance.FragmentationThreshold.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UIntProperty.toUnsignedString(myInstance.FragmentationThreshold.GetValue()); } tempdata[i++][2] = ""; if(!myInstance.FrameDuplicateCount.IsNull()) { tempdata[i][0] = "FrameDuplicateCount"; if ( !myInstance.FrameDuplicateCount.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UInt64Property.toUnsignedString(myInstance.FrameDuplicateCount.GetValue()); } tempdata[i++][2] = ""; } tempdata[i][0] = "HopPattern"; if ( !myInstance.HopPattern.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UIntProperty.toUnsignedString(myInstance.HopPattern.GetValue()); } tempdata[i++][2] = ""; tempdata[i][0] = "HopSet"; if ( !myInstance.HopSet.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UIntProperty.toUnsignedString(myInstance.HopSet.GetValue()); } tempdata[i++][2] = ""; tempdata[i][0] = "OperatingMode"; if ( !myInstance.OperatingMode.IsNull() ) { tempdata[i][1] = String.valueOf(myInstance.OperatingMode.GetValue()); } tempdata[i++][2] = ""; if(!myInstance.MulticastReceivedFrameCount.IsNull()) { tempdata[i][0] = "MulticastReceivedFrameCount"; if ( !myInstance.MulticastReceivedFrameCount.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UInt64Property.toUnsignedString(myInstance.MulticastReceivedFrameCount.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.MulticastTransmittedFrameCount.IsNull()) { tempdata[i][0] = "MulticastTransmittedFrameCount"; if ( !myInstance.MulticastTransmittedFrameCount.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UInt64Property.toUnsignedString(myInstance.MulticastTransmittedFrameCount.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.MultipleRetryCount.IsNull()) { tempdata[i][0] = "MultipleRetryCount"; if ( !myInstance.MultipleRetryCount.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UInt64Property.toUnsignedString(myInstance.MultipleRetryCount.GetValue()); } tempdata[i++][2] = ""; } tempdata[i][0] = "ModulationType"; if ( !myInstance.ModulationType.IsNull() ) { tempdata[i][1] = String.valueOf(myInstance.ModulationType.GetValue()); } tempdata[i++][2] = ""; tempdata[i][0] = "ModulationTypes"; if ( !myInstance.ModulationTypes.IsNull() ) { for (int j = 0; j < myInstance.ModulationTypes.GetSize(); j++) { tempdata[i][1] = String.valueOf(myInstance.ModulationTypes.GetValue(j)); tempdata[i++][2] = ""; } } tempdata[i][0] = "PowerMode"; if ( !myInstance.PowerMode.IsNull() ) { tempdata[i][1] = String.valueOf(myInstance.PowerMode.GetValue()); } tempdata[i++][2] = ""; if(!myInstance.ReceivedFragmentCount.IsNull()) { tempdata[i][0] = "ReceivedFragmentCount"; if ( !myInstance.ReceivedFragmentCount.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UInt64Property.toUnsignedString(myInstance.ReceivedFragmentCount.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.RetryCount.IsNull()) { tempdata[i][0] = "RetryCount"; if ( !myInstance.RetryCount.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UInt64Property.toUnsignedString(myInstance.RetryCount.GetValue()); } tempdata[i++][2] = ""; } tempdata[i][0] = "Rssi"; if ( !myInstance.Rssi.IsNull() ) { tempdata[i][1] = String.valueOf(myInstance.Rssi.GetValue()); } tempdata[i++][2] = ""; if(!myInstance.RtsFailureCount.IsNull()) { tempdata[i][0] = "RtsFailureCount"; if ( !myInstance.RtsFailureCount.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UInt64Property.toUnsignedString(myInstance.RtsFailureCount.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.RtsSuccessCount.IsNull()) { tempdata[i][0] = "RtsSuccessCount"; if ( !myInstance.RtsSuccessCount.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UInt64Property.toUnsignedString(myInstance.RtsSuccessCount.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.RxAntennaId.IsNull()) { tempdata[i][0] = "RxAntennaId"; if ( !myInstance.RxAntennaId.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UIntProperty.toUnsignedString(myInstance.RxAntennaId.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.Ssid.IsNull()) { tempdata[i][0] = "Ssid"; if ( !myInstance.Ssid.IsNull() ) { tempdata[i][1] = String.valueOf(myInstance.Ssid.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.TransmittedFragmentCount.IsNull()) { tempdata[i][0] = "TransmittedFragmentCount"; if ( !myInstance.TransmittedFragmentCount.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UInt64Property.toUnsignedString(myInstance.TransmittedFragmentCount.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.TxAntennaId.IsNull()) { tempdata[i][0] = "TxAntennaId"; if ( !myInstance.TxAntennaId.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UIntProperty.toUnsignedString(myInstance.TxAntennaId.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.Channel.IsNull()) { tempdata[i][0] = "Channel"; if ( !myInstance.Channel.IsNull() ) { tempdata[i][1] = com.intel.mobile.base.UInt64Property.toUnsignedString(myInstance.Channel.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.AuthenticationMode.IsNull()) { tempdata[i][0] = "AuthenticationMode"; if ( !myInstance.AuthenticationMode.IsNull() ) { tempdata[i][1] = String.valueOf(myInstance.AuthenticationMode.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.Band.IsNull()) { tempdata[i][0] = "Band"; if ( !myInstance.Band.IsNull() ) { tempdata[i][1] = String.valueOf(myInstance.Band.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.EncryptionMode.IsNull()) { tempdata[i][0] = "EncryptionMode"; if ( !myInstance.EncryptionMode.IsNull() ) { tempdata[i][1] = String.valueOf(myInstance.EncryptionMode.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.AssociationState.IsNull()) { tempdata[i][0] = "AssociationState"; if ( !myInstance.AssociationState.IsNull() ) { tempdata[i][1] = String.valueOf(myInstance.AssociationState.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.SecurityModes.IsNull()) { tempdata[i][0] = "SecurityModes"; if ( !myInstance.SecurityModes.IsNull() ) { for(int j=0; j<myInstance.SecurityModes.GetSize(); j++) { tempdata[i][1] = String.valueOf(myInstance.SecurityModes.GetValue(j)); tempdata[i++][2] = ""; } } } if(!myInstance.Qos.IsNull()) { tempdata[i][0] = "Qos"; if ( !myInstance.Qos.IsNull() ) { tempdata[i][1] = String.valueOf(myInstance.Qos.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.DataTxPackets.IsNull()) { tempdata[i][0] = "DataTxPackets"; if ( !myInstance.DataTxPackets.IsNull() ) { tempdata[i][1] = String.valueOf(myInstance.DataTxPackets.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.DataRxPackets.IsNull()) { tempdata[i][0] = "DataRxPackets"; if ( !myInstance.DataRxPackets.IsNull() ) { tempdata[i][1] = String.valueOf(myInstance.DataRxPackets.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.DataTxBytes.IsNull()) { tempdata[i][0] = "DataTxBytes"; if ( !myInstance.DataTxBytes.IsNull() ) { tempdata[i][1] = String.valueOf(myInstance.DataTxBytes.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.DataRxBytes.IsNull()) { tempdata[i][0] = "DataRxBytes"; if ( !myInstance.DataRxBytes.IsNull() ) { tempdata[i][1] = String.valueOf(myInstance.DataRxBytes.GetValue()); } tempdata[i++][2] = ""; } if(!myInstance.LinkQuality.IsNull()) { tempdata[i][0] = "LinkQuality"; if ( !myInstance.LinkQuality.IsNull() ) { tempdata[i][1] = String.valueOf(myInstance.LinkQuality.GetValue()); } tempdata[i++][2] = ""; } data = tempdata; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -