|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.udk.agent.navigation.AbstractUDKPathNavigator<PATH_ELEMENT>
PATH_ELEMENT - public abstract class AbstractUDKPathNavigator<PATH_ELEMENT extends ILocated>
Simple stub of the IUDKPathNavigator that implements setBot(UDKBot) and
setExecutor(IPathExecutorHelper).
| Field Summary | |
|---|---|
protected UDKBot |
bot
Bot, the navigator is navigating. |
protected IPathExecutorHelper<PATH_ELEMENT> |
executor
Executor who is using the navigator. |
protected Self |
self
Self object that is lazy-initialized inside self. |
| Constructor Summary | |
|---|---|
AbstractUDKPathNavigator()
|
|
| Method Summary | |
|---|---|
void |
navigate()
This method is regularly called by UDKPathExecutor to continue the navigation of the bot
inside the UDK. |
protected abstract void |
navigate(int pathElementIndex)
Does the actual navigation of the bot, it should steer it towards path element of the index 'pathElementIndex'. |
void |
setBot(UDKBot bot)
Sets the UDKBot instance that the navigator should navigate. |
void |
setExecutor(IPathExecutorHelper<PATH_ELEMENT> owner)
Sets the IPathExecutorHelper who is using the navigator, i.e., are calling its
IUDKPathNavigator#navigate(Self) and IUDKPathNavigator.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.udk.agent.navigation.IUDKPathNavigator |
|---|
getPrecision, newPath, reset |
| Field Detail |
|---|
protected UDKBot bot
setBot(UDKBot).
See IUDKPathNavigator.setBot(UDKBot).
protected IPathExecutorHelper<PATH_ELEMENT extends ILocated> executor
IUDKPathNavigator.setExecutor(IPathExecutorHelper)
for more info.
protected Self self
Self object that is lazy-initialized inside self.
| Constructor Detail |
|---|
public AbstractUDKPathNavigator()
| Method Detail |
|---|
public void setBot(UDKBot bot)
IUDKPathNavigatorUDKBot instance that the navigator should navigate. Use its AbstractEmbodiedAgent.getAct()
to pass commands to the bot.
setBot in interface IUDKPathNavigator<PATH_ELEMENT extends ILocated>public void setExecutor(IPathExecutorHelper<PATH_ELEMENT> owner)
IUDKPathNavigatorIPathExecutorHelper who is using the navigator, i.e., are calling its
IUDKPathNavigator#navigate(Self) and IUDKPathNavigator.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 IUDKPathNavigator<PATH_ELEMENT extends ILocated>public void navigate()
IUDKPathNavigatorUDKPathExecutor to continue the navigation of the bot
inside the UDK.
navigate in interface IUDKPathNavigator<PATH_ELEMENT extends ILocated>protected abstract void navigate(int pathElementIndex)
navigate().
pathElementIndex -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||