|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcz.cuni.amis.pogamut.ut2004.agent.navigation.AbstractUT2004PathNavigator<PATH_ELEMENT>
PATH_ELEMENT - public abstract class AbstractUT2004PathNavigator<PATH_ELEMENT extends ILocated>

Simple stub of the IUT2004PathNavigator that implements setBot(UT2004Bot) and
AbstractUT2004PathNavigator#setExecutor(IPathExecutorHelper).
| Field Summary | |
|---|---|
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
Self object that is lazy-initialized inside self. |
| Constructor Summary | |
|---|---|
AbstractUT2004PathNavigator()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface cz.cuni.amis.pogamut.ut2004.agent.navigation.IUT2004PathNavigator |
|---|
newPath, reset |
| Field Detail |
|---|
protected UT2004Bot bot
setBot(UT2004Bot).
See IUT2004PathNavigator.setBot(UT2004Bot).
protected IUT2004PathExecutorHelper<PATH_ELEMENT extends ILocated> executor
IUT2004PathNavigator#setExecutor(IPathExecutorHelper)
for more info.
protected Self self
Self object that is lazy-initialized inside self.
protected boolean botWaiting
| Constructor Detail |
|---|
public AbstractUT2004PathNavigator()
| Method Detail |
|---|
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 focus
protected abstract void navigate(ILocated focus,
int pathElementIndex)
AbstractUT2004PathNavigator#navigate().
pathElementIndex -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||