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

/apps/RTS/RTSDriver.h File Reference

#include "unitSimulation.h"
#include "common.h"

Include dependency graph for RTSDriver.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Functions

void myDisplayHandler (unitSimulation *, tKeyboardModifier, char key)
 Key handler for simulation and display related stuff.

void PRLRTSKeyHandler (unitSimulation *, tKeyboardModifier, char key)
 PR LRTS key handler.

void AstarAndPRLRTSKeyHandler (unitSimulation *, tKeyboardModifier, char key)
void myPathfindingKeyHandler (unitSimulation *unitSim, tKeyboardModifier mod, char key)
 Key handler for Nathan's algorithms.

void LRTAStarKeyHandler (unitSimulation *unitSim, tKeyboardModifier mod, char key)
void KoenigsKeyHandler (unitSimulation *, tKeyboardModifier, char key)
 Koenig's LRTA* key handler.

void PrioritizedKeyHandler (unitSimulation *, tKeyboardModifier, char key)
 Prioritized RTDP key handler.

int mapCLH (char *argument[], int maxNumArgs)
 Handles the -map switch.

int scenarioCLH (char *argument[], int maxNumArgs)
 Handles the -scenario switch.

int visradiusCLH (char *argument[], int maxNumArgs)
 Handles the -visradius switch.

int prlrtskCLH (char *argument[], int maxNumArgs)
 Handles the -prlrtsk switch.

int printCLH (char *argument[], int maxNumArgs)
 Handles the -print switch.

int lrtaStarCLH (char *argument[], int maxNumArgs)
 Handles the -lrtaStar switch.

int koenigsCLH (char *arguments[], int maxNumArgs)
 Handles the -koenigs switch.

void runScenarioPRLRTSk (char *scenFileName, int d, double gamma, double learningQuota, int kParam)
 Run the simulation for PR LRTS(k).

void runScenarioKoenigs (char *scenFileName, int sizeLSS)
 Run the simulation for Koenig's LRTA*.

void runScenarioPrioritized (char *scenFileName, int sizeLSS)
 Run the simulation for Prioritized LRTA*.

void runScenarioLRTAStar (char *scenFileName)
void getStartGoalLocations (int &xs, int &ys, int &xg, int &yg, double length, unitSimulation *unitSim)
 Picks random start and end coordinates so that the optimal path between them is length+/-5.

void getStartLocation (int &xs, int &ys, int &xg, int &yg, double length, unitSimulation *unitSim)
 Picks random start coordinates so that the length of the optimal path to the goal is length +/- 10 .

void simulateToConvergence (unitSimulation *unitSim)

Function Documentation

void AstarAndPRLRTSKeyHandler (  unitSimulation *  ,
tKeyboardModifier  ,
char  key
) 
 

void getStartGoalLocations (  int &  xs,
int &  ys,
int &  xg,
int &  yg,
double  length,
unitSimulation *  unitSim
) 
 

Picks random start and end coordinates so that the optimal path between them is length+/-5.

void getStartLocation (  int &  xs,
int &  ys,
int &  xg,
int &  yg,
double  length,
unitSimulation *  unitSim
) 
 

Picks random start coordinates so that the length of the optimal path to the goal is length +/- 10 .

int koenigsCLH (  char *  arguments[],
int  maxNumArgs
) 
 

Handles the -koenigs switch.

void KoenigsKeyHandler (  unitSimulation *  ,
tKeyboardModifier  ,
char  key
) 
 

Koenig's LRTA* key handler.

int lrtaStarCLH (  char *  argument[],
int  maxNumArgs
) 
 

Handles the -lrtaStar switch.

void LRTAStarKeyHandler (  unitSimulation *  unitSim,
tKeyboardModifier  mod,
char  key
) 
 

int mapCLH (  char *  argument[],
int  maxNumArgs
) 
 

Handles the -map switch.

void myDisplayHandler (  unitSimulation *  ,
tKeyboardModifier  ,
char  key
) 
 

Key handler for simulation and display related stuff.

void myPathfindingKeyHandler (  unitSimulation *  unitSim,
tKeyboardModifier  mod,
char  key
) 
 

Key handler for Nathan's algorithms.

int printCLH (  char *  argument[],
int  maxNumArgs
) 
 

Handles the -print switch.

void PrioritizedKeyHandler (  unitSimulation *  ,
tKeyboardModifier  ,
char  key
) 
 

Prioritized RTDP key handler.

int prlrtskCLH (  char *  argument[],
int  maxNumArgs
) 
 

Handles the -prlrtsk switch.

void PRLRTSKeyHandler (  unitSimulation *  ,
tKeyboardModifier  ,
char  key
) 
 

PR LRTS key handler.

void runScenarioKoenigs (  char *  scenName,
int  sizeLSS
) 
 

Run the simulation for Koenig's LRTA*.

A "sample" is a start and goal state that are a specified amount apart.

Read through the scenario; do one problem at a time while collecting stats.

We have finished the simulation; now we extract statiatics.

We have exhausted the tasks in the scenario file. Now tally the statistics collected for output.

We have calculated the statistics, now print them.

void runScenarioLRTAStar (  char *  scenFileName  ) 
 

void runScenarioPrioritized (  char *  scenName,
int  sizeLSS
) 
 

Run the simulation for Prioritized LRTA*.

A "sample" is a start and goal state that are a specified amount apart.

Read through the scenario; do one problem at a time while collecting stats.

We have finished the simulation; now we extract statiatics.

We have exhausted the tasks in the scenario file. Now tally the statistics collected for output.

We have calculated the statistics, now print them.

void runScenarioPRLRTSk (  char *  scenFileName,
int  d,
double  gamma,
double  learningQuota,
int  kParam
) 
 

Run the simulation for PR LRTS(k).

int scenarioCLH (  char *  argument[],
int  maxNumArgs
) 
 

Handles the -scenario switch.

void simulateToConvergence (  unitSimulation *  unitSim  ) 
 

int visradiusCLH (  char *  argument[],
int  maxNumArgs
) 
 

Handles the -visradius switch.


Generated on Tue Aug 18 03:35:35 2009 for HOG by doxygen 1.3.4