ZooSpecies
[Zoo]


Detailed Description

Description: An addon to the Stage plugin for Zoo functionality. Author: Adam Lein Date: July 14, 2005


Functions

bool ZooSpecies::Hosts (int)
void ZooSpecies::KillAll (void)
void ZooSpecies::print (void)
ZooControllerZooSpecies::Run (int)
void ZooSpecies::RunAll (void)
ZooControllerZooSpecies::SelectController (void)
void ZooSpecies::SetScoreDrawCB (zooref_score_draw_t, void *userdata)
 ZooSpecies::ZooSpecies (ConfigFile *cf, int section, ZooDriver *)
 ZooSpecies::~ZooSpecies ()

Function Documentation

bool ZooSpecies::Hosts int  p  )  [inherited]
 

Determine whether the robot on this port is in the population of this species.

void ZooSpecies::KillAll void   )  [inherited]
 

Kill the controller on every member of my population.

void ZooSpecies::print void   )  [inherited]
 

Dump out details about this species.

ZooController * ZooSpecies::Run int  p  )  [inherited]
 

Run a controller on port a given port.

Parameters:
p the port to run on
Returns:
a pointer to the ZooController that was executed.

void ZooSpecies::RunAll void   )  [inherited]
 

Run a controller for every member of my population.

ZooController * ZooSpecies::SelectController void   )  [inherited]
 

Pick a controller from the pool. Deterministic; uses a round-robin scheme with priority.

void ZooSpecies::SetScoreDrawCB zooref_score_draw_t  draw_cb,
void *  userdata
[inherited]
 

Set a callback to be called when a robot's score changes. FIXME: This means that if the score doesn't change, the display doesn't move with the robot. Oops.

Parameters:
draw_cb the callback.
userdata arbitrary data to be passed along.

ZooSpecies::ZooSpecies ConfigFile *  cf,
int  section,
ZooDriver _zoo
[inherited]
 

ZooSpecies constructor.

Parameters:
_zoo the ZooDriver object that created me.

ZooSpecies::~ZooSpecies  )  [inherited]
 

ZooSpecies destructor. Destroys model list and port list.


Generated on Thu Dec 13 14:35:18 2007 for Stage by  doxygen 1.4.6