java.lang.Object
PacketF.Packet
- All Implemented Interfaces:
- java.lang.Cloneable, PacketInterface
- Direct Known Subclasses:
- LinkLayerPacket
- public class Packet
- extends java.lang.Object
- implements PacketInterface
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
private HeaderF.Payload data
th
private HeaderF.TimedHeader th
raw_bytes
private byte[] raw_bytes
count
private static int count
Packet
public Packet(HeaderF.Payload data)
Packet
public Packet(int total_length)
initialise
public static void initialise()
getCount
public static int getCount()
getTime
public java.lang.String getTime()
- Specified by:
getTime in interface PacketInterface
getTimeLong
public long getTimeLong()
getTimeStr
public java.lang.String getTimeStr()
setTimedHeader
public void setTimedHeader(HeaderF.TimedHeader th)
getSize
public int getSize()
- Specified by:
getSize in interface PacketInterface
getProtocol
public java.lang.String getProtocol()
- Specified by:
getProtocol in interface PacketInterface
getType
public java.lang.String getType()
- Specified by:
getType in interface PacketInterface
getDest
public java.lang.String getDest()
- Specified by:
getDest in interface PacketInterface
getSource
public java.lang.String getSource()
- Specified by:
getSource in interface PacketInterface
getSeqNo
public java.lang.String getSeqNo()
- Specified by:
getSeqNo in interface PacketInterface
setSeconds
public void setSeconds(long seconds)
setMicroSeconds
public void setMicroSeconds(long micro)
getTree
public javax.swing.tree.DefaultMutableTreeNode getTree()
- Returns a tree representation
of the packet
- Specified by:
getTree in interface PacketInterface
toByteArray
public byte[] toByteArray()
throws java.io.IOException
setRawByteArray
public void setRawByteArray(byte[] raw_bytes)
getRawByteArray
public byte[] getRawByteArray()
toHexRawByteArray
public java.lang.String toHexRawByteArray()
- conver the raw byte array to
hexadecimal