cz.cuni.amis.pogamut.udk.agent.navigation.martinnavigator
Class MartinRunner

Package class diagram package MartinRunner
java.lang.Object
  extended by cz.cuni.amis.pogamut.udk.agent.navigation.martinnavigator.MartinRunner
All Implemented Interfaces:
IUDKPathRunner

public class MartinRunner
extends Object
implements IUDKPathRunner


Field Summary
protected  AdvancedLocomotion body
          Agent's body.
protected  UDKBot bot
          Agent's bot.
protected  Logger log
          Agent's log.
protected  AgentInfo memory
          Loque memory.
protected  Senses senses
          Base agent's senses.
 
Constructor Summary
MartinRunner(UDKBot bot, AgentInfo agentInfo, AdvancedLocomotion locomotion, Logger log)
          Constructor.
 
Method Summary
 void reset()
          Initializes direct running to the given destination.
 boolean runToLocation(Location firstLocation, Location secondLocation, Location focus, NavPointNeighbourLink navPointsLink, boolean reachable)
          Called iteratively to reach the 'firstLocation'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bot

protected UDKBot bot
Agent's bot.


memory

protected AgentInfo memory
Loque memory.


body

protected AdvancedLocomotion body
Agent's body.


log

protected Logger log
Agent's log.


senses

protected Senses senses
Base agent's senses.

Constructor Detail

MartinRunner

public MartinRunner(UDKBot bot,
                    AgentInfo agentInfo,
                    AdvancedLocomotion locomotion,
                    Logger log)
Constructor.

Parameters:
bot - Agent's bot.
memory - Loque memory.
Method Detail

reset

public void reset()
Initializes direct running to the given destination.

Specified by:
reset in interface IUDKPathRunner

runToLocation

public boolean runToLocation(Location firstLocation,
                             Location secondLocation,
                             Location focus,
                             NavPointNeighbourLink navPointsLink,
                             boolean reachable)
Description copied from interface: IUDKPathRunner
Called iteratively to reach the 'firstLocation'. This method should get the bot to the 'firstLocation'.

The 'secondLocation' is the location that will most likely be pursued next.

Specified by:
runToLocation in interface IUDKPathRunner
Parameters:
firstLocation - where the bot should run to
secondLocation - where the bot will the most likely continue its run
focus - where the bot should be looking while running
navPointsLink - if we are traveling between two NavPoints connected by a link, we will receive the link with movement information here
Returns:


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.