Class ArrivalEvent

java.lang.Object
  |
  +--ArrivalEvent
All Implemented Interfaces:
NetEvent

public class ArrivalEvent
extends java.lang.Object
implements NetEvent

An ArrivalEvent represents the arrival of a Packet sent across a link from one Router to another.


Constructor Summary
ArrivalEvent(Router sndr, Router rcvr, Packet pkt)
          new ArrivalEvent(sndr, rcvr, pkt) is an event indicating the arrival of pkt at rcvr from sndr.
 
Method Summary
 void simulate()
          ev.simulate() simulates the occurence of ev.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrivalEvent

public ArrivalEvent(Router sndr,
                    Router rcvr,
                    Packet pkt)
new ArrivalEvent(sndr, rcvr, pkt) is an event indicating the arrival of pkt at rcvr from sndr.

Method Detail

simulate

public void simulate()
ev.simulate() simulates the occurence of ev.

Specified by:
simulate in interface NetEvent