com.ibm.as400.util.commtrace
Class Frame

java.lang.Object
  extended by com.ibm.as400.util.commtrace.Frame

public class Frame
extends 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
 String getLLC()
          Returns the code determining if the LAN fame is LLC.
 IPPacket getPacket()
          Returns the packet contained by this Frame.
 String getPDUType()
          Returns the PDU length.
 String getRecNum()
          Returns the Frame number.
 String getRecStatus()
          Returns the Frame status.
 String getRecType()
          Returns the Frame type.
 String getRoutingLength()
          Returns the LAN routing length,
 String getSDLCPort()
          Returns the SDLC port.
 String getSDLCSlot()
          Returns the SDLC slot.
 String getTCP()
          Returns if the Frame is TCP Y/N.
 String getTime()
          Return the Time of day in HH:MM:SS.mm format.
 String getTOD()
          Returns 64 bit Time of Day.
 boolean isTCP()
          Returns a boolean indicating if the Frame is TCP
 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 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 String getRecNum()
Returns the Frame number.

Returns:
String containing the Frame number.

getTOD

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

Returns:
String containing the TOD.

getTime

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

Returns:
String containing the Time.

getRecType

public String getRecType()
Returns the Frame type.

Returns:
String containing the Frame type.

getPDUType

public String getPDUType()
Returns the PDU length.

Returns:
String containing the PDU length.

getRecStatus

public String getRecStatus()
Returns the Frame status.

Returns:
String containing the Frame status.

getSDLCSlot

public String getSDLCSlot()
Returns the SDLC slot.

Returns:
String containing the SDLC slot.

getSDLCPort

public String getSDLCPort()
Returns the SDLC port.

Returns:
String containing the SDLC port.

getLLC

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

Returns:
String containing the code,

getRoutingLength

public String getRoutingLength()
Returns the LAN routing length,

Returns:
String containing the LAN routing length,

getTCP

public 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.