PATH_ELEMENT - public abstract class AbstractUT2004PathNavigator<PATH_ELEMENT extends ILocated> extends Object implements IUT2004PathNavigator<PATH_ELEMENT>
IUT2004PathNavigator that implements setBot(UT2004Bot) and
AbstractUT2004PathNavigator#setExecutor(IPathExecutorHelper).| Modifier and Type | Field and Description |
|---|---|
protected UT2004Bot |
bot
Bot, the navigator is navigating.
|
protected boolean |
botWaiting |
protected IUT2004PathExecutorHelper<PATH_ELEMENT> |
executor
Executor who is using the navigator.
|
protected Self |
self
|
| Constructor and Description |
|---|
AbstractUT2004PathNavigator() |
| Modifier and Type | Method and Description |
|---|---|
void |
navigate(ILocated focus)
This method is regularly called by
UT2004PathExecutor to continue the navigation of the bot
inside the UT2004. |
protected abstract void |
navigate(ILocated focus,
int pathElementIndex)
Does the actual navigation of the bot, it should steer it towards path element of the index 'pathElementIndex'.
|
void |
setBot(UT2004Bot bot)
Sets the
UT2004Bot instance that the navigator should navigate. |
protected void |
setBotWaiting(boolean state) |
void |
setExecutor(IUT2004PathExecutorHelper<PATH_ELEMENT> owner)
Sets the
IPathExecutorHelper who is using the navigator, i.e., are calling its
IUT2004PathNavigator#navigate(Self) and IUT2004PathNavigator.reset()
methods. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentLink, getLog, newPath, pathExtended, resetprotected UT2004Bot bot
setBot(UT2004Bot).
See IUT2004PathNavigator.setBot(UT2004Bot).protected IUT2004PathExecutorHelper<PATH_ELEMENT extends ILocated> executor
IUT2004PathNavigator#setExecutor(IPathExecutorHelper)
for more info.protected Self self
protected boolean botWaiting
protected void setBotWaiting(boolean state)
public void setBot(UT2004Bot bot)
IUT2004PathNavigatorUT2004Bot instance that the navigator should navigate. Use its AbstractEmbodiedAgent.getAct()
to pass commands to the bot.setBot in interface IUT2004PathNavigator<PATH_ELEMENT extends ILocated>public void setExecutor(IUT2004PathExecutorHelper<PATH_ELEMENT> owner)
IUT2004PathNavigatorIPathExecutorHelper who is using the navigator, i.e., are calling its
IUT2004PathNavigator#navigate(Self) and IUT2004PathNavigator.reset()
methods.
Used by IPathExecutorHelper implementation to inject its instance into the navigator,
so the navigator may call methods such as IPathExecutorHelper.checkStuckDetectors(),
IPathExecutorHelper.switchToAnotherPathElement(int), IPathExecutorHelper.stuck()
and IPathExecutorHelper.targetReached().
setExecutor in interface IUT2004PathNavigator<PATH_ELEMENT extends ILocated>public void navigate(ILocated focus)
IUT2004PathNavigatorUT2004PathExecutor to continue the navigation of the bot
inside the UT2004.navigate in interface IUT2004PathNavigator<PATH_ELEMENT extends ILocated>focus - where the bot should have its focusprotected abstract void navigate(ILocated focus, int pathElementIndex)
AbstractUT2004PathNavigator#navigate().pathElementIndex - Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.