Tracks the population as a set of trials over time, providing information to individual members as appropriate. More...
#include <PopulationManager.h>
Public Member Functions | |
DECLARE_EVENT (UPopulationManager, FNewTrialPopulationReady) | |
void | GenerateInitialPopulation () |
void | SetEvoManager (UBTEvolutionManagerComponent *em) |
void | SetTrialSize (int32 ts) |
UFitnessTracker * | GetTracker () |
void | SetTracker (UFitnessTracker *t) |
void | Breed () |
int32 | GetCurrentTrialNumber () |
UTrial * | GetTrial (int32 trial) |
UTrial * | GetCurrTrial () |
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 | |
UServiceInjector * | serviceInjector |
Tracks the population as a set of trials over time, providing information to individual members as appropriate.
If the population manager is not ready, they can wait for the NewTrialPopulationReady event and then re-register.