Package org.evoludo.simulator.modules
Class ATBT.ATBTPop
Object
IBSPopulation
IBSDPopulation
TBT.IBSPop
ATBTPop
- Enclosing class:
ATBT
Extends TBT.TBTPop to take advantage of kaleidoscope initializations.
-
Field Summary
Fields inherited from class TBT.IBSPop
tsFit, tsFits, tsMean, tsTraits
Fields inherited from class IBSDPopulation
accuTypeScores, groupmodule, init, initTypeCount, module, mutation, optimizeMoran, pairmodule, strategies, strategiesScratch, strategiesTypeCount
Fields inherited from class IBSPopulation
adjustScores, competition, compGroup, debugFocal, debugModel, debugModels, debugNModels, debugSame, distrMigrants, engine, fitness, groupScores, hasLookupTable, interaction, interactions, interGroup, isMultispecies, isNeutral, logger, map2fit, maxEffScoreIdx, maxFitness, maxScore, migrationType, minFitness, minScore, nMixedInter, nPopulation, nTraits, pAddwire, playerScoreAveraged, playerScoring, pMigration, pRewire, rng, scores, smallScores, staticmodule, sumFitness, tags, typeFitness, typeScores, VACANT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if population is monomorphic.private boolean
processEnvironmentalAsymmetryAt
(int me, boolean changed) Helper method to process environmental asymmetries.boolean
updatePlayerAt
(int me) Perform a single update of the individual with indexme
.Methods inherited from class TBT.IBSPop
check, getMeanFitness, getMeanTraits, getNMean, getStatus, getTraitNameAt, initKaleidoscope
Methods inherited from class IBSDPopulation
adjustGameScoresAt, adjustPairGameScoresAt, adjustScoreAt, adjustScoreAt, becomesVacantAt, checkConvergence, commitStrategies, commitStrategyAt, countTraits, debugMarkChange, doAdjustScores, encodeStrategies, getFitnessAt, getFitnessHistogramData, getInit, getInitialTraits, getMonoScore, getPopulationSize, getScoreAt, getStrategiesTypeCount, getTraitData, getTraits, haveSameStrategy, init, initFrequency, initMono, initMutant, initStripes, initTemperature, initUniform, isConsistent, isSameStrategy, isVacantAt, maybeMutateAt, maybeMutateMoran, mouseHitNode, mutateAt, playGroupGameAt, playPairGameAt, preferredPlayerBest, prepareStrategies, reset, resetScoreAt, resetScores, resetStrategies, restoreFitness, restoreStrategies, setInit, setInitialTraits, setOpponentPop, setScoreAt, stripGroupVacancies, stripVacancies, swapStrategies, updateFromModelAt, updateMixedMeanScores, updatePlayerBestResponse, updatePlayerEcologyAt, updatePlayerMoranBirthDeath, updatePlayerMoranDeathBirth, updatePlayerMoranDeathBirth, updatePlayerMoranImitate, updateScoreAt, updateScores, updateStrategiesTypeCount, yalpGroupGameAt
Methods inherited from class IBSPopulation
checkGeometry, createCompetitionGeometry, createInteractionGeometry, debugScores, debugUpdatePopulationAt, doBirthDeathMigration, doDeathBirthMigration, doDiffusionMigration, doMigration, doSyncMigration, encodeFitness, encodeGeometry, encodeInteractions, generateGeometry, getCompetitionGeometry, getCompGroup, getFitness, getFitnessData, getFitnessNameAt, getFitnessNameAt, getInteractionGeometry, getInteractionsAt, getInterGroup, getMaxScore, getMigrationProb, getMigrationType, getMinScore, getModule, getPlayerScoreAveraged, getPlayerScoring, getPopulationUpdate, getScoreNameAt, getScores, getSyncFraction, getTagAt, getTagData, getTagNameAt, getTags, getTotalFitness, migrateMoran, mouseHitNode, mutate, nextBinomial, parseGeometry, pickFitFocalIndividual, pickFitFocalIndividual, pickFitNeighborAt, pickFitNeighborAt, pickFocalIndividual, pickFocalIndividual, pickFocalSite, pickFocalSite, pickNeighborSiteAt, playGameAt, playGameSyncAt, processScore, random01, random01d, random0n, random0N, randomGaussian, removeScoreAt, removeScoreAt, restoreGeometry, restoreInteractions, setAddwire, setConsistencyCheck, setMaxEffScoreIdx, setMigrationProb, setMigrationType, setPlayerScoreAveraged, setPlayerScoring, setPopulationUpdate, setRewire, setSyncFraction, setTagAt, srandom, step, swapScoresAt, updateEffScoreRange, updateFitnessAt, updateMinMaxScores, updatePlayerAsync, updatePlayerAsyncAt, updatePlayerBest, updatePlayerBestHalf, updatePlayerEcology, updatePlayerMoranBirthDeathAt, updatePlayerMoranDeathBirthAt, updatePlayerMoranImitateAt, updatePlayerSwap, updateProportionalAbs, updateReplicatorHalf, updateReplicatorPlus, updateScoreAt, updateScoreAt, updateThermal
-
Constructor Details
-
ATBTPop
Create a new instance of the IBS model for asymmteric2×2
games.- Parameters:
engine
- the pacemaker for running the modelmodule
- the module that defines the game
-
-
Method Details
-
updatePlayerAt
public boolean updatePlayerAt(int me) Description copied from class:IBSPopulation
Perform a single update of the individual with indexme
. Returnstrue
if the individual adopted the trait of the reference individual. Does not imply that the trait changed in discrete modules. Whether the individuals score is reset depends onIBSPopulation.playerScoring
- Overrides:
updatePlayerAt
in classIBSPopulation
- Parameters:
me
- the index of the focal individual- Returns:
true
if trait of reference adopted- See Also:
-
isMonomorphic
public boolean isMonomorphic()Description copied from class:IBSPopulation
Check if population is monomorphic.Note: In models that admit vacant sites this does not imply a homogeneous (or absorbing) state of the population. Without vacant sites monomorphic states are absorbing, at least in the absence of mutations.
- Overrides:
isMonomorphic
in classIBSDPopulation
- Returns:
true
if population is monomorphic- See Also:
-
processEnvironmentalAsymmetryAt
private boolean processEnvironmentalAsymmetryAt(int me, boolean changed) Helper method to process environmental asymmetries. Ensures that only strategies can be adopted by offspring and processes environmental changes through feedback with strategic types.Important: This requires that strategies are not yet committed.
- Parameters:
me
- the index of the focal individualchanged
- the flag whether the focal individual changed strategy- Returns:
true
if strategy and/or patch type has changed
-