|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSynchronousScheduler
public class SynchronousScheduler
Scheduler for synchronous communication round scheduling. This determines the order in which various robots will iterate through the broadcast, recieve, update cycle.
| Constructor Summary | |
|---|---|
SynchronousScheduler()
Constructor -- can we eliminate the no-argument constructor? |
|
SynchronousScheduler(double lfTStep,
int nRobots)
Constructor |
|
| Method Summary | |
|---|---|
double |
getNextRoundAndFiringSchedule(double lfCurrTime,
int nTotalAgents,
java.util.Set<java.lang.Integer> setActiveAgents)
Gets the time of the next communication round, populates setActiveAgents with the indices of those agents which are active on this round. |
double |
getNextRoundTime(double lfCurrTime)
Gets the time of the next communication round. |
protected void |
populate(double lfTStep,
int nRobots)
internal function to populate scheduler params Used mostly be constructors |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SynchronousScheduler(double lfTStep,
int nRobots)
lfTStep - time between rounds (uniform)nRobots - number of robotspublic SynchronousScheduler()
| Method Detail |
|---|
protected void populate(double lfTStep,
int nRobots)
public double getNextRoundTime(double lfCurrTime)
getNextRoundTime in interface ICommunicationSchedulerlfCurrTime - absolute current time
public double getNextRoundAndFiringSchedule(double lfCurrTime,
int nTotalAgents,
java.util.Set<java.lang.Integer> setActiveAgents)
getNextRoundAndFiringSchedule in interface ICommunicationSchedulerlfCurrTime - current timenTotalAgents - agents are index 0 through nTotalAgents-1setActiveAgents - initially empty, then populated with
indices (of type Integer) of agents to fire next round.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||