Class simTraits

Object
Module
Discrete
Traits
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

public class simTraits extends Traits
Simulations to investigate individual based simulations versus stochastic differential equations for modelling the evolutionary dynamics of populations with pairwise interactions and d strategic traits.
See Also:
  • "Traulsen, A., Claussen, J. C., & Hauert, C. (2012). <em>Stochastic differential equations for evolutionary dynamics with demographic noise and mutations</em>. Physical Review E, 71(2), 025106. <a href='http://dx.doi.org/10.1103/PhysRevE.71.025106'>doi: 10.1103/PhysRevE.71.025106</a>"
  • Field Details

    • osMBean

      The operating system management bean to measure the CPU time.
    • mintime

      long mintime
      The minimal measurement time in nanoseconds. Defaults to 60 seconds.
    • progress

      boolean progress
      The flag to indicate whether to show progress.
    • popsizes

      int[] popsizes
      The population sizes to be tested.
    • ibs

      IBSD ibs
      The IBS model.
    • pop

      The population.
    • out

      The output stream. Defaults to System.out.
    • cloNPopulations

      public final CLOption cloNPopulations
      Command line option to specify the population sizes.
    • cloProgress

      public final CLOption cloProgress
      Command line option to show the simulation progress.
    • cloMinTime

      public final CLOption cloMinTime
      Command line option to set the minimal measurement time.
  • Constructor Details

    • simTraits

      public simTraits(EvoLudo engine)
      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 in jar file.

      Specified by:
      run in interface Runnable
      Overrides:
      run in class Module
    • collectCLO

      public void collectCLO(CLOParser parser)
      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, the parser issues a warning and ignores the option. Thus, in general, implementing subclasses should first register their options and call super.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 interface CLOProvider
      Overrides:
      collectCLO in class Traits
      Parameters:
      parser - the reference to parser that manages command line options
      See Also:
    • main

      public static void main(String[] args)
      Main method to run the simulation.
      Parameters:
      args - the array of command line arguments