Class RadiotapDataTxAttenuation
java.lang.Object
org.pcap4j.packet.RadiotapDataTxAttenuation
- All Implemented Interfaces:
Serializable, RadiotapPacket.RadiotapData
Radiotap TX attenuation field. Transmit power expressed as unitless distance from max power set
at factory calibration. 0 is max power. Monotonically nondecreasing with lower power levels.
- Since:
- pcap4j 1.6.5
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final longprivate final short -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRadiotapDataTxAttenuation(byte[] rawData, int offset, int length) private -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]shortintinthashCode()intlength()static RadiotapDataTxAttenuationnewInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
LENGTH
private static final int LENGTH- See Also:
-
txAttenuation
private final short txAttenuation
-
-
Constructor Details
-
RadiotapDataTxAttenuation
private RadiotapDataTxAttenuation(byte[] rawData, int offset, int length) throws IllegalRawDataException - Throws:
IllegalRawDataException
-
RadiotapDataTxAttenuation
-
-
Method Details
-
newInstance
public static RadiotapDataTxAttenuation newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.- Parameters:
rawData- rawDataoffset- offsetlength- length- Returns:
- a new RadiotapTxAttenuation object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getTxAttenuation
public short getTxAttenuation()- Returns:
- txAttenuation
-
getTxAttenuationAsInt
public int getTxAttenuationAsInt()- Returns:
- txAttenuation
-
length
public int length()- Specified by:
lengthin interfaceRadiotapPacket.RadiotapData- Returns:
- length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceRadiotapPacket.RadiotapData- Returns:
- raw data
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
toString
- Specified by:
toStringin interfaceRadiotapPacket.RadiotapData- Parameters:
indent- indent- Returns:
- String representation of this object.
-
hashCode
-
equals
-