com.ibm.as400.util.commtrace
Class Frame

java.lang.Object
  |
  +--com.ibm.as400.util.commtrace.Frame

public class Frame
extends java.lang.Object

Encapsulates all the data for one Frame of the trace.
Parses the Frame data and creates a printable representation of this Frame.
The data in any packet is mainted in a linked list like structure. The format of any Frame will be one of the following:

eh is the extended header
Note: Every set of headers is followed by the raw data if applicable
The classes in the structure are accessible through the Frame.getPacket() and Header.getNextHeader() methods. The type is accessible through the Header.getType() method


Method Summary
 java.lang.String getLLC()
          Returns the code determining if the LAN fame is LLC.
 IPPacket getPacket()
          Returns the packet contained by this Frame.
 java.lang.String getPDUType()
          Returns the PDU length.
 java.lang.String getRecNum()
          Returns the Frame number.
 java.lang.String getRecStatus()
          Returns the Frame status.
 java.lang.String getRecType()
          Returns the Frame type.
 java.lang.String getRoutingLength()
          Returns the LAN routing length,
 java.lang.String getSDLCPort()
          Returns the SDLC port.
 java.lang.String getSDLCSlot()
          Returns the SDLC slot.
 java.lang.String getTCP()
          Returns if the Frame is TCP Y/N.
 java.lang.String getTime()
          Return the Time of day in HH:MM:SS.mm format.
 java.lang.String getTOD()
          Returns 64 bit Time of Day.
 boolean isTCP()
          Returns a boolean indicating if the Frame is TCP
 java.lang.String toString(FormatProperties filter)
          Returns a printable representation of this Frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString(FormatProperties filter)
Returns a printable representation of this Frame.

Parameters:
filter - FormatProperties object for filtering this Frame.
Returns:
Returns a string representation of this Frame.

getPacket

public IPPacket getPacket()
Returns the packet contained by this Frame.

Returns:
IPPacket this packet.

getRecNum

public java.lang.String getRecNum()
Returns the Frame number.

Returns:
String containing the Frame number.

getTOD

public java.lang.String getTOD()
Returns 64 bit Time of Day.

Returns:
String containing the TOD.

getTime

public java.lang.String getTime()
Return the Time of day in HH:MM:SS.mm format.

Returns:
String containing the Time.

getRecType

public java.lang.String getRecType()
Returns the Frame type.

Returns:
String containing the Frame type.

getPDUType

public java.lang.String getPDUType()
Returns the PDU length.

Returns:
String containing the PDU length.

getRecStatus

public java.lang.String getRecStatus()
Returns the Frame status.

Returns:
String containing the Frame status.

getSDLCSlot

public java.lang.String getSDLCSlot()
Returns the SDLC slot.

Returns:
String containing the SDLC slot.

getSDLCPort

public java.lang.String getSDLCPort()
Returns the SDLC port.

Returns:
String containing the SDLC port.

getLLC

public java.lang.String getLLC()
Returns the code determining if the LAN fame is LLC.
0xFF = LLC

Returns:
String containing the code,

getRoutingLength

public java.lang.String getRoutingLength()
Returns the LAN routing length,

Returns:
String containing the LAN routing length,

getTCP

public java.lang.String getTCP()
Returns if the Frame is TCP Y/N.

Returns:
String containing Y or N.

isTCP

public boolean isTCP()
Returns a boolean indicating if the Frame is TCP

Returns:
true if Frame is TCP.