Class simTraits
- All Implemented Interfaces:
Runnable
,IBS.HasIBS
,IBS.HasIBS.DPairs
,MilestoneListener
,ODE.HasDE
,ODE.HasODE
,PDE.HasPDE
,SDE.HasSDE
,Features
,Features.Pairs
,HasHistogram
,HasHistogram.Degree
,HasHistogram.Fitness
,HasMean
,HasMean.Fitness
,HasMean.Strategy
,HasPop2D
,HasPop2D.Fitness
,HasPop2D.Strategy
,HasPop3D
,HasPop3D.Fitness
,HasPop3D.Strategy
,CLOProvider
d
strategic traits.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Features
Features.Groups, Features.Pairs, Features.Static
Nested classes/interfaces inherited from interface HasHistogram
HasHistogram.Degree, HasHistogram.Fitness, HasHistogram.StatisticsProbability, HasHistogram.StatisticsStationary, HasHistogram.StatisticsTime, HasHistogram.Strategy
Nested classes/interfaces inherited from interface HasMean
HasMean.Fitness, HasMean.Strategy
Nested classes/interfaces inherited from interface HasPop2D
HasPop2D.Fitness, HasPop2D.Strategy
Nested classes/interfaces inherited from interface HasPop3D
HasPop3D.Fitness, HasPop3D.Strategy
Nested classes/interfaces inherited from interface IBS.HasIBS
IBS.HasIBS.CGroups, IBS.HasIBS.CPairs, IBS.HasIBS.DGroups, IBS.HasIBS.DPairs, IBS.HasIBS.MCGroups, IBS.HasIBS.MCPairs
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal CLOption
Command line option to set the minimal measurement time.final CLOption
Command line option to specify the population sizes.final CLOption
Command line option to show the simulation progress.(package private) IBSD
The IBS model.(package private) long
The minimal measurement time in nanoseconds.(package private) OperatingSystemMXBean
The operating system management bean to measure the CPU time.(package private) PrintStream
The output stream.(package private) IBSDPopulation
The population.(package private) int[]
The population sizes to be tested.(package private) boolean
The flag to indicate whether to show progress.Fields inherited from class Traits
cloPayoff, cloTraits, PAYOFF_CONST, PAYOFF_MATRIX, PAYOFF_RANDOM, PAYOFF_UNITY
Fields inherited from class Discrete
cloMonoStop, monoStop, mutation
Fields inherited from class Module
cloDeathRate, cloGeometry, cloNGroup, cloNPopulation, cloPhase2DAxis, cloSpeciesUpdateRate, cloTraitColors, cloTraitDisable, cloTraitNames, competition, deathRate, defaultColor, engine, interaction, logger, map2fitness, markers, model, nActive, name, nGroup, nPopulation, nTraits, playerUpdate, speciesUpdateRate, structure, traitColor, trajectoryColor, VACANT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
collectCLO
(CLOParser parser) All providers of command line options must implement this method to collect their options.static void
Main method to run the simulation.void
run()
Methods inherited from class Traits
avgScores, check, createSDE, getAuthors, getKey, getMaxGameScore, getMinGameScore, getMonoGameScore, getPayoffs, getTitle, initPayoffs, load, mixedScores, pairScores, setPayoffs, unload
Methods inherited from class Discrete
add, getMaxMonoGameScore, getMinMonoGameScore, getMonoStop, getMutation, setMonoStop
Methods inherited from class Module
createGeometry, createIBSPop, getActiveTraits, getCompetitionGeometry, getDeathRate, getDependent, getGeometry, getIBSPopulation, getID, getInteractionGeometry, getMapToFitness, getMarkers, getMeanColors, getModelTypes, getNActive, getName, getNGroup, getNPopulation, getNRoles, getNSpecies, getNTraits, getOpponent, getPlayerUpdate, getSpecies, getSpecies, getSpeciesUpdateRate, getTraitColor, getTraitColors, getTraitName, getTraitNames, getTrajectoryColor, getVacant, init, isNeutral, processColorMap, reset, setActiveTraits, setDeathRate, setGeometries, setIBSPopulation, setModel, setName, setNGroup, setNPopulation, setNTraits, setOpponent, setSpeciesUpdateRate, setTraitColors, setTraitNames, setTrajectoryColor
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface CLOProvider
adjustCLO
Methods inherited from interface Features.Pairs
isPairwise
Methods inherited from interface HasHistogram
getCustomLevels, getNTraits, getTraitColors
Methods inherited from interface IBS.HasIBS
createIBS
Methods inherited from interface MilestoneListener
modelDidInit, modelDidReset, modelLoaded, modelRelaxed, modelRunning, modelSettings, modelStopped, modelUnloaded, moduleLoaded, moduleRestored, moduleUnloaded
Methods inherited from interface ODE.HasDE
avgScores, getDependent
Methods inherited from interface ODE.HasODE
createODE
Methods inherited from interface PDE.HasPDE
createPDE
-
Field Details
-
osMBean
OperatingSystemMXBean osMBeanThe operating system management bean to measure the CPU time. -
mintime
long mintimeThe minimal measurement time in nanoseconds. Defaults to 60 seconds. -
progress
boolean progressThe flag to indicate whether to show progress. -
popsizes
int[] popsizesThe population sizes to be tested. -
ibs
IBSD ibsThe IBS model. -
pop
IBSDPopulation popThe population. -
out
PrintStream outThe output stream. Defaults toSystem.out
. -
cloNPopulations
Command line option to specify the population sizes. -
cloProgress
Command line option to show the simulation progress. -
cloMinTime
Command line option to set the minimal measurement time.
-
-
Constructor Details
-
simTraits
Create a new simulation to compare the performance of individual based simulations versus stochastic differential equations.- Parameters:
engine
- the pacemaker for running the model
-
-
Method Details
-
run
public void run()Description copied from class:Module
Default run-loop for modules. Opportunity to override in subclasses for running customized simulations. Currently only called from
EvoLudoJRE.simulation()
if custom simulation class is specified injar
file. -
collectCLO
Description copied from interface:CLOProvider
All providers of command line options must implement this method to collect their options.Each command line option is (uniquely) identified by it's name (see
CLOption.getName()
), which corresponds to the long version of the option. If an attempt is made to add an option with a name that already exists, theparser
issues a warning and ignores the option. Thus, in general, implementing subclasses should first register their options and callsuper.collectCLO(CLOParser)
at the end such that subclasses are able to override command line options specified in a parental class.Override this method in subclasses to add further command line options. Subclasses must make sure that they include a call to super.
- Specified by:
collectCLO
in interfaceCLOProvider
- Overrides:
collectCLO
in classTraits
- Parameters:
parser
- the reference to parser that manages command line options- See Also:
-
main
Main method to run the simulation.- Parameters:
args
- the array of command line arguments
-