lbg.simulator.event
Class EventList
java.lang.Object
lbg.simulator.event.EventList
public class EventList
- extends java.lang.Object
current_time = timestamp of Events last extracted from the EventList
- Author:
- Cyril Briquet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EventList
public EventList(Scenario sc)
throws GridException
- Throws:
GridException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
factory
public EventFactory factory()
isEmpty
public boolean isEmpty()
- Returns true if EventList is empty, i.e. contains no Event.
- Returns:
- true if Event List is empty
addEvent
public void addEvent(Event evt)
throws GridException
- Throws:
GridException
extractFirstEvent
public EventContainer extractFirstEvent()
throws GridException
- side effect: time is updated to the timestamp of the extracted Event
- Throws:
GridException
removeEvent
public void removeEvent(Event evt)
throws GridException
- Throws:
GridException
containsEvent
public boolean containsEvent(Event evt)
throws GridException
- Throws:
GridException
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.