N - Type of nodepublic class PathFinderQueue<N> extends java.lang.Object implements Schedulable, Telegraph
| Modifier and Type | Field and Description |
|---|---|
static long |
TIME_TOLERANCE |
| Constructor and Description |
|---|
PathFinderQueue(PathFinder<N> pathFinder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleMessage(Telegram telegram)
Handles the telegram just received.
|
void |
run(long timeToRun)
Method invoked by the
Scheduler when this schedulable needs to be run. |
int |
size() |
public static final long TIME_TOLERANCE
public PathFinderQueue(PathFinder<N> pathFinder)
public void run(long timeToRun)
SchedulableScheduler when this schedulable needs to be run.run in interface SchedulabletimeToRun - the maximum time in nanoseconds this scheduler should run on the current frame.public boolean handleMessage(Telegram telegram)
TelegraphhandleMessage in interface Telegraphtelegram - The telegramtrue if the telegram has been successfully handled; false otherwise.public int size()