simnet
Class Frame

java.lang.Object
  extended bysimnet.Frame
All Implemented Interfaces:
java.io.Serializable

public final class Frame
extends java.lang.Object
implements java.io.Serializable

An object encapsulating a frame on a link.

See Also:
Serialized Form

Field Summary
 double arrive_time
          The time this frame will arrive at its destination (can be dequeued).
 IP_Packet data
          Encapsulated IP packet
 int dest
          Destination ID
private static int frame_size
           
 int src
          Source ID
 double trans_time
          The time this frame will finish being transmitted from its source.
 
Constructor Summary
Frame()
           
 
Method Summary
static int getFrameSize()
          Return the size for frame overhead.
 int getSize()
          Returns the size of this frame (data + frame overhead).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

src

public int src
Source ID


dest

public int dest
Destination ID


data

public IP_Packet data
Encapsulated IP packet


frame_size

private static int frame_size

trans_time

public transient double trans_time
The time this frame will finish being transmitted from its source.


arrive_time

public transient double arrive_time
The time this frame will arrive at its destination (can be dequeued).

Constructor Detail

Frame

public Frame()
Method Detail

getSize

public int getSize()
Returns the size of this frame (data + frame overhead).


getFrameSize

public static int getFrameSize()
Return the size for frame overhead.