SimKit
Class OrderedEventList

java.lang.Object
  |
  +--SimKit.OrderedEventList

public class OrderedEventList
extends java.lang.Object

A class used interanal to SimKit package only. Basically, it implements a priority queue that takes Objects of type SimKit.Event The events are ordered based on Event.recvTime() and the < operator.


Method Summary
 Event getNextEvent()
          Returns the next Event in FEL.
 void insertEvent(Event newEvent)
          Insert an Event in FEL
 java.lang.String toString()
          Returns a string with all events in the FEL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

insertEvent

public void insertEvent(Event newEvent)
Insert an Event in FEL


getNextEvent

public Event getNextEvent()
Returns the next Event in FEL.

Returns:
next Event in FEL

toString

public java.lang.String toString()
Returns a string with all events in the FEL. Each Event will have: Event's unique ID number, source LP, sendtime receivetime and destination LP.

Overrides:
toString in class java.lang.Object
Returns:
str A descriptive string for the FEL at current time.