Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

patUnit Class Reference

#include <patUnit.h>

Inheritance diagram for patUnit:

Inheritance graph
[legend]
Collaboration diagram for patUnit:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 patUnit (int startX, int startY, unit *goal, PRLRTSk *alg, int trMax)
tDirection makeMove (mapProvider *mapProv, reservationProvider *reservationProv, simulationInfo *simInfo, PRLRTSkGroup *group)
 The main procedure --- make move.

bool done ()
 The unit is done when the amount of learning on the trial is 0.0 and no tiles are explored by wA*.

void setAlgorithm (patPRLRTSk *alg)
void clearCache ()
void setTeleport (int destX, int destY)
void setTeleport ()
bool getOnGoal ()
void incTrialCount ()
int getAlgDepth ()
void resetAlgPathGot ()
bool getAlgPathGot ()
void resetErrorMove ()
void addErrorMove (bool error)
long getErrorCount ()
long getMoveCount ()

Protected Attributes

bool moveMade
bool willTeleport
int trialMax
int trialCount
long statErrorCount
long statMoveCount

Constructor & Destructor Documentation

patUnit::patUnit int  startX,
int  startY,
unit goal,
PRLRTSk alg,
int  trMax
 


Member Function Documentation

void patUnit::addErrorMove bool  error  ) 
 

void patUnit::clearCache  ) 
 

bool patUnit::done  )  [virtual]
 

The unit is done when the amount of learning on the trial is 0.0 and no tiles are explored by wA*.

Reimplemented from PRLRTSkUnit.

int patUnit::getAlgDepth  ) 
 

bool patUnit::getAlgPathGot  ) 
 

long patUnit::getErrorCount  ) 
 

long patUnit::getMoveCount  ) 
 

bool patUnit::getOnGoal  ) 
 

void patUnit::incTrialCount  ) 
 

tDirection patUnit::makeMove mapProvider mapProv,
reservationProvider reservationProv,
simulationInfo simInfo,
PRLRTSkGroup group
[virtual]
 

The main procedure --- make move.

Reimplemented from PRLRTSkUnit.

void patUnit::resetAlgPathGot  ) 
 

void patUnit::resetErrorMove  ) 
 

void patUnit::setAlgorithm patPRLRTSk alg  ) 
 

void patUnit::setTeleport  ) 
 

void patUnit::setTeleport int  destX,
int  destY
 


Member Data Documentation

bool patUnit::moveMade [protected]
 

long patUnit::statErrorCount [protected]
 

long patUnit::statMoveCount [protected]
 

int patUnit::trialCount [protected]
 

int patUnit::trialMax [protected]
 

bool patUnit::willTeleport [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Aug 18 03:44:21 2009 for HOG by doxygen 1.3.4