EvolvingBehavior  0.1.0
UPopulationManager Class Reference

Tracks the population as a set of trials over time, providing information to individual members as appropriate. More...

#include <PopulationManager.h>

Inheritance diagram for UPopulationManager:
UService ISaveable

Public Member Functions

 DECLARE_EVENT (UPopulationManager, FNewTrialPopulationReady)
 
void GenerateInitialPopulation ()
 
void SetEvoManager (UBTEvolutionManagerComponent *em)
 
void SetTrialSize (int32 ts)
 
UFitnessTrackerGetTracker ()
 
void SetTracker (UFitnessTracker *t)
 
void Breed ()
 
int32 GetCurrentTrialNumber ()
 
UTrialGetTrial (int32 trial)
 
UTrialGetCurrTrial ()
 
bool IsTrialReady ()
 
bool IsInitialized ()
 
bool Register (FPopulationReg &outReg)
 
FNewTrialPopulationReady & OnTrialPopulationReady ()
 
int32 GetPopulationRemaining ()
 
int32 GetNumSpawnedThisTrial ()
 
void DataLoaded ()
 
virtual void DataLoaded_Implementation () override
 
void DataSaved ()
 
virtual void DataSaved_Implementation () override
 
- Public Member Functions inherited from UService
virtual void Init (UServiceInjector *injector)
 
- Public Member Functions inherited from ISaveable
void DataLoaded ()
 
void DataSaved ()
 

Public Attributes

int32 TrialSize
 

Additional Inherited Members

- Protected Attributes inherited from UService
UServiceInjectorserviceInjector
 

Detailed Description

Tracks the population as a set of trials over time, providing information to individual members as appropriate.

Author
agrundwerg
npc
Date
12/12/17 Each entity that needs a chromosome must register with the PopulationManager to get an ID.

If the population manager is not ready, they can wait for the NewTrialPopulationReady event and then re-register.


The documentation for this class was generated from the following files:
  • Source/EvolvingBehavior/Public/PopulationManager.h
  • Source/EvolvingBehavior/Private/PopulationManager.cpp