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, tsTraitsFields inherited from class IBSDPopulation
accuTypeScores, active, groupmodule, init, initCount, module, mutation, opponent, optimizeMoran, pairmodule, traitsCount, traitsNextFields 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 TypeMethodDescriptionbooleanCheck if population is monomorphic.private booleanprocessEnvironmentalAsymmetryAt(int me, boolean changed) Helper method to process environmental asymmetries.booleanupdatePlayerAt(int me) Perform a single update of the individual with indexme.Methods inherited from class TBT.IBSPop
check, getMeanFitness, getMeanTraits, getNMean, getStatus, getTraitNameAt, initKaleidoscopeMethods inherited from class IBSDPopulation
adjustGameScoresAt, adjustPairGameScoresAt, adjustScoreAt, adjustScoreAt, becomesVacantAt, checkConvergence, commitTraitAt, commitTraits, countTraits, debugMarkChange, doAdjustScores, encodeTraits, getFitnessAt, getFitnessHistogramData, getInit, getInitialTraits, getMonoScore, getPopulationSize, getScoreAt, getTraitAt, getTraitData, getTraits, getTraitsCount, haveSameTrait, init, initFrequency, initMono, initMono, initMono, initMutant, initStripes, initTemperature, initUniform, isConsistent, isSameTrait, isVacantAt, maybeMutateAt, maybeMutateMoran, mouseHitNode, mutateAt, playGroupGameAt, playPairGameAt, preferredPlayerBest, prepareTraits, reset, resetScoreAt, resetScores, resetTraits, restoreFitness, restoreTraits, setInit, setInitialTraits, setNextTraitAt, setOpponentPop, setScoreAt, setTraitAt, stripGroupVacancies, stripVacancies, swapTraits, updateFromModelAt, updateMixedMeanScores, updatePlayerBestResponse, updatePlayerEcologyAt, updatePlayerMoranBirthDeath, updatePlayerMoranDeathBirth, updatePlayerMoranDeathBirth, updatePlayerMoranImitate, updateScoreAt, updateScores, updateTraitCount, yalpGroupGameAtMethods 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, getSpeciesUpdateRate, 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, updatePlayerAt, 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×2games.- Parameters:
module- the module that defines the game
-
-
Method Details
-
updatePlayerAt
public boolean updatePlayerAt(int me) Description copied from class:IBSPopulationPerform a single update of the individual with indexme. Returnstrueif 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:
updatePlayerAtin classIBSPopulation- Parameters:
me- the index of the focal individual- Returns:
trueif trait of reference adopted- See Also:
-
isMonomorphic
public boolean isMonomorphic()Description copied from class:IBSPopulationCheck 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:
isMonomorphicin classIBSDPopulation- Returns:
trueif population is monomorphic- See Also:
-
processEnvironmentalAsymmetryAt
private boolean processEnvironmentalAsymmetryAt(int me, boolean changed) Helper method to process environmental asymmetries. Ensures that only traits can be adopted by offspring and processes environmental changes through feedback with trait types.Important: This requires that traits are not yet committed.
- Parameters:
me- the index of the focal individualchanged- the flag whether the focal individual changed trait- Returns:
trueif trait and/or patch type has changed
-