planet.simulate
Class Scheduler

java.lang.Object
  extended byplanet.simulate.Scheduler
All Implemented Interfaces:
IScheduler, java.io.Serializable

public class Scheduler
extends java.lang.Object
implements IScheduler, java.io.Serializable

Author:
Pedro García This class implements the interface IScheduler and manage events to produce to simulated network.
See Also:
Serialized Form

Constructor Summary
Scheduler()
           
 
Method Summary
 void addEvents(java.util.Vector events)
           
 void addPeriodicGenerator(IEventGenerator gen, int repeat, int from)
           
 java.util.Vector getEvents(int time)
           
 boolean hasNext()
           
 void removePeriodicGenerator(IEventGenerator gen)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scheduler

public Scheduler()
Method Detail

addEvents

public void addEvents(java.util.Vector events)
Specified by:
addEvents in interface IScheduler

addPeriodicGenerator

public void addPeriodicGenerator(IEventGenerator gen,
                                 int repeat,
                                 int from)
Specified by:
addPeriodicGenerator in interface IScheduler
See Also:
IScheduler.addPeriodicGenerator(planet.simulate.IEventGenerator, int, int)

removePeriodicGenerator

public void removePeriodicGenerator(IEventGenerator gen)
Specified by:
removePeriodicGenerator in interface IScheduler
See Also:
IScheduler.removePeriodicGenerator(planet.simulate.IEventGenerator)

getEvents

public java.util.Vector getEvents(int time)
Specified by:
getEvents in interface IScheduler

hasNext

public boolean hasNext()
Specified by:
hasNext in interface IScheduler