|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICommunicationScheduler
Interface for Communication round scheduling. This determines the order in which various robots will iterate through the broadcast, recieve, update cycle. The first classes to implement this interface will merely use it to wrap a synchronized communication schedule, but asynchronous communication is also possible.
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. |
Method Detail |
---|
double getNextRoundTime(double lfCurrTime)
lfCurrTime
- absolute current time
double getNextRoundAndFiringSchedule(double lfCurrTime, int nTotalAgents, java.util.Set<java.lang.Integer> setActiveAgents)
lfCurrTime
- 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 |